Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add code_outline MCP tool for AST hierarchy

2 months ago

6fb8a8c
Authored
JoeJoeflyn8/15/2026, 8:43:17 PM
Reading entire large files to understand their structure wastes thousands
of tokens for AI coding agents.

This commit introduces the code_outline MCP tool that retrieves a
compact AST symbol hierarchy (functions, classes, methods, and types)
with line numbers and export flags in <2ms. This reduces token consumption
by ~95% compared to full file reads.

Parent6e08ac1

11 files changed
  • README.md+1−0
  • apps/cli/README.md+1−0
  • apps/mcp/src/mcp-core.ts+55−0
  • docs/superpowers/plans/2026-08-16-mcp-code-outline.md+44−0
  • docs/superpowers/specs/2026-08-16-mcp-code-outline-design.md+96−0
  • landing/src/app/layout.tsx+1−1
  • packages/db/src/sqlite/document-repository.ts+102−0
  • packages/db/src/sqlite/index.ts+2−0
  • packages/db/src/sqlite/types.ts
+21
−0
  • packages/db/src/sqlite/workspace-repository.ts+7−0
  • tests/code-outline.test.ts+134−0