CodeGraph indexes this repo into a local SQLite code graph (symbols, callers, callees, imports). Cursor connects via MCP so agents can query structure in one call instead of repeated grep/read loops.
Scope: editing oe_mcp in Cursor. This is separate from OvalEdge MCP docs://ovaledge/* resources (runtime tool routing for catalog/governance clients).
You already need CodeGraph installed (codegraph --version). Wire MCP into Cursor once (if not done):
codegraph installRestart Cursor after install.
From the repo root:
codegraph init -i- Creates
.codegraph/codegraph.db(local only; not committed — see.codegraph/.gitignore). - File watcher keeps the index updated as you edit.
Re-index manually if needed:
codegraph sync- Enable the CodeGraph MCP server in Cursor Settings → MCP (added by
codegraph install). - Open this repo as the workspace root.
- Project rule:
.cursor/rules/codegraph.mdcapplies when you editserver/,tests/,evals/, orentrypoints/Python — agents should callcodegraph_explorebefore Grep/Read for structural work. - Prefer
codegraph_explorewhen you need:- Who calls
verify_write_confirmationorregisterin a domain package - Impact before changing
server/constants.pyormcp_surface.py - The path from
helpers._DESC_*→register.py→ tests
- Who calls
Still use for oe_mcp work:
| Need | Use |
|---|---|
| MCP tool contract / new tool | @oe-mcp-tool-design skill |
| OvalEdge routing (RDAM vs catalog ACL) | server/docs/mcp_workflows.md, rdam_source_access.md |
| Runtime agent docs | docs://ovaledge/* on the running MCP server |
CodeGraph does not encode which MCP tool answers a user question — use static docs and workflow prompts for that.
| Area | Path |
|---|---|
| Tool registration | server/tools/<domain>/register.py |
| Descriptions | server/tools/<domain>/helpers.py (_DESC_*) |
| HTTP paths / allow-lists | server/constants.py |
| Canonical tool names | server/mcp_surface.py |
| Governed-write tokens | server/tools/common/confirm_gate.py |
| Static agent docs | server/docs/*.md → docs://ovaledge/{stem} |
| Eval goldens | evals/golden_cases.py, evals/golden_cases_coverage.py |
CodeGraph may collect anonymous usage stats. Disable locally:
codegraph telemetry off
# or: export CODEGRAPH_TELEMETRY=0| Issue | Fix |
|---|---|
| CodeGraph tools missing in Cursor | codegraph install, restart Cursor |
| Stale symbol results | codegraph sync from repo root |
| Empty graph | Run codegraph init -i from repo root (not a parent folder) |