
lilium360/mybrain
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
myBrAInは、言語モデル(Google Antigravityなど)に永続的かつ文脈的なメモリを提供するように設計されたMCP(Model Context Protocol)サーバーです.
概要
mCP(Model Context Protocol)サーバーは、言語モデル(Google Antigravityなど)に永続的かつコンテキスト的なメモリを提供するよう設計されています。 開発環境の「第二脳」として機能し、AIがさまざまなチャットセッションでプロジェクトのルール、アーキテクチャの決定、技術的なインサイトを記憶できるようにします。 システムは3つの主要なコンポーネントに分けられます: * : 永続性(db.py)と分析インテリジェンス(analyzer.py)を管理し、コードからインサイトを抽出します。 *:アンチグラビティが脳と相互作用することを可能にする標準的なMCPインターフェイス(server.py)。 * : Streamlitをベースにしたプレミアムダッシュボード(admin.py)は、保存したメモリを視覚化、管理、およびダッシュボードなどの高度な機能でデバッグします。 * : リアルタイムでコードベースドリフトを監視する背景デーモンスレッド(observer.py)。 実行する最も簡単な方法は、Docker Compose を使用します。 1. : 2. : * Windows: python -m venv venv && .\venv\Scripts\activate * Unix: python3 -m venv && ソース venv/bin/activate 3.
概要(AI 翻訳)
GoogleのAntigravityのための決定的、Idempotent、Context-Aware秒脳。
お問い合わせ
紹介
myBrAInは、言語モデル(Google Antigravityなど)に永続的かつコンテキストメモリを提供するように設計されたMCP(Model Context Protocol)サーバーです。 開発環境の「第二脳」として機能し、AIがさまざまなチャットセッションでプロジェクトのルール、アーキテクチャの決定、技術的なインサイトを記憶できるようにします。
お問い合わせ
システムアーキテクチャ
システムは3つの主要なコンポーネントに分けられます:
*Core: 永続性(db.py)と分析インテリジェンス([analyzer.py)を管理し、コードからインサイトを抽出します。
*Server: Antigravityが脳と相互作用することを可能にする標準的なMCPインターフェイス([[[T2])。
*管理者 UI: Streamlitに基づいてプレミアムダッシュボード([admin.py)は、Knowledge Graphs、Memory Export、Silent Observerダッシュボードなどの高度な機能を備えた保存されたメモリを視覚化、管理、およびデバッグします。
*Observer: リアルタイムでコードベースドリフトを監視するバックグラウンドデーモンスレッド([[[T4])。
お問い合わせ
🏗 インストール
A. Docker デプロイメント (推奨)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
🧠 myBrAIn — MCP Ecosystem
Deterministic, Idempotent, Context-Aware Second Brain for Google Antigravity.
Introduction
myBrAIn is an MCP (Model Context Protocol) server designed to provide persistent and contextual memory to language models (like Google Antigravity). It acts as a “second brain” for your development environment, allowing the AI to remember project rules, architectural decisions, and technical insights across different chat sessions.
System Architecture
The system is divided into three main components:
- Core: Manages persistence (
db.py) and analytical intelligence (analyzer.py) for extracting insights from code. - Server: The standard MCP interface (
server.py) that allows Antigravity to interact with the brain. - Admin UI: A premium dashboard (
admin.py) based on Streamlit to visualize, manage, and debug stored memories with advanced features like Knowledge Graphs, Memory Export, and the Silent Observer dashboard. - Observer: A background daemon thread (
observer.py) that monitors codebase drift in real-time.
🏗 Installation
A. Docker Deployment (Recommended)
The easiest way to run myBrAIn is using Docker Compose.
# Clone & Prepare
git clone https://github.com/lilium360/myBrAIn.git
cd myBrAIn
cp .env.example .env
# Spin up
docker compose up -d
The Admin UI will be available at: http://localhost:8501
B. Local Installation (Native Python)
- Clone & Enter:
git clone https://github.com/lilium360/myBrAIn.git cd myBrAIn - Setup Environment:
- Windows:
python -m venv venv && .\venv\Scripts\activate - Unix:
python3 -m venv venv && source venv/bin/activate
- Windows:
- Install:
pip install -r requirements.txt
🚀 Usage Guide
1. Launching the Admin Dashboard
To graphically manage the database and visualize insights:
- Via Docker: Already running after
docker compose up. Open http://localhost:8501. - Via Python: Run
streamlit run admin.py(orpython -m streamlit run admin.py).
2. Integration in IDEs (Cursor, VS Code + Antigravity)
Add this to your mcpServers configuration JSON:
Option A: Via Docker
{
"mcpServers": {
"mybrain": {
"command": "docker",
"args": ["exec", "-i", "mybrain-admin", "python", "server.py"],
"env": {
"MYBRAIN_DATA_DIR": "/data/mybrain"
}
}
}
}
Option B: Via Python (Local)
{
インストール
docker exec -i mybrain-admin python server.py設定
{
"mcpServers": {
"mybrain": {
"command": "docker",
"args": ["exec", "-i", "mybrain-admin", "python", "server.py"],
"env": {
"MYBRAIN_DATA_DIR": "/data/mybrain"
}
}
}
}