Architecture
Architecture
Einstein MCP is a lightweight MCP server built on the official mcp-go library and served over stdio.
Key Components
cmd/mcp/main.go- Entry point, flag parsing, and server bootstrap.internal/tools/knowledge- KnowledgeManager and MCP tools for memory operations.internal/prompts- Thememorize-projectsetup prompt.
Data Flow
- An MCP client sends a tool call over stdio.
- The MCP server routes the request to a knowledge tool.
- The tool reads or writes
.mdkfiles in.ai-knowledge. - The response is returned to the client.