How to Connect Aletheia MCP Server to Coding Agents

Question

How do Claude Code, Codex, OpenCode, Cursor, or Windsurf connect to Aletheia without installing external SDK dependencies?

Answer

  • EXTRACTED: aletheia mcp --root /path/to/repo (src/aletheia/mcp_server.py) implements a pure standard-library JSON-RPC 2.0 server over stdio, auto-detecting both newline-delimited JSON-RPC (MCP 2024-11-05+) and Content-Length framed transports.
  • EXTRACTED: Register the server in .mcp.json, claude_desktop_config.json, .codex/config.toml, or Cursor MCP settings pointing to aletheia (or python3 -m aletheia) with arguments ["mcp", "--root", "."].
  • EXTRACTED: Agents immediately gain 8 deterministic tools (aletheia_status, aletheia_search, aletheia_context_pack, aletheia_verify, aletheia_compile_plan, aletheia_graph_neighbors, aletheia_crystallize, aletheia_scrub) and 4 Markdown resources (aletheia://overview, aletheia://index, aletheia://schema, aletheia://page/{page_id}).

See aletheia and aletheia-architecture.