AI agents & MCP

Role of MCP

Codegenome runs a local MCP server that exposes graph queries as tools. Agents call these tools instead of guessing structure from partial file reads.

Setup flow

  1. Build the graphcodegenome analyze .
  2. Start MCPcodegenome mcp-start or HTTP via legacy CLI
  3. Install client configpython -m codegenome.installer …
  4. Generate rulescodegenome rules --client cursor .
  5. Restart your editor

Example tools

Full list: MCP tools reference.

Agent rules

Templates in the repository extensions/templates/ teach agents when to call MCP tools. Install with:

codegenome rules --client cursor --port 7331 .
codegenome rules --client all --dry-run .

Guides