Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add symbol_definition MCP tool for symbol lookup

2 months ago

6accf5b
Authored
JoeJoeflyn8/15/2026, 8:45:00 PM
Agents frequently need targeted definitions of specific functions or
classes without running broad, token-heavy full-text queries.

This commit adds the symbol_definition MCP tool to perform exact
Go to Definition lookups against indexed AST symbols and graph nodes.
It returns the symbol kind, declaration chunk, line ranges, export
status, and caller/callee counts in <2ms.

Parent6e08ac1

10 files changed
  • README.md+10−9
  • apps/cli/README.md+10−9
  • apps/mcp/src/mcp-core.ts+80−0
  • docs/superpowers/plans/2026-08-16-mcp-symbol-definition.md+39−0
  • docs/superpowers/specs/2026-08-16-mcp-symbol-definition-design.md+92−0
  • landing/src/app/layout.tsx+1−1
  • packages/db/src/sqlite/index.ts+1−0
  • packages/db/src/sqlite/types.ts+15−0
packages/db/src/sqlite/workspace-repository.ts
+136
−1
  • tests/symbol-definition.test.ts+64−0