[Feature] AST-Based Call Graph Traversal & Relationship Tracing (trace_path MCP Tool) - #7
Conversation
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
spelech
left a comment
There was a problem hiding this comment.
Code Review: AST Call Graph Traversal & Relationship Tracing (PR #7)
✅ Verification & Findings:
- AST Relationship Extraction: Extracts
CALLS,IMPORTS,INHERITS, andIMPLEMENTSedges across Python, JS/TS, Go, Rust, C#, and Java into indexed SQLiteast_relationshipstable. - Cycle-Protected BFS Traversal:
trace_symbol_pathhandles recursive and mutually recursive calls cleanly, with direction filtering (callers,callees,both), depth clamping (1-5), limit truncation, and markdown tree rendering. - FastMCP Tool: Registered
trace_pathon FastMCP server. - Test Suite Verification: All 264 unit, integration, and regression tests passing.
Ready for merge once CI checks finish.
This change extends ContextCortex with AST-based call graph relationship extraction and the trace_path MCP tool for BFS call graph traversal.
Key additions:
Fixes #1
PR created automatically by Jules for task 14592028422703187058 started by @spelech