| name | explore-code |
| description | Explore code structure and relationships using the OpenTrace knowledge graph.
Triggers on: "how does X work", "what calls X", "what's in X", "find X",
"show me the architecture", "where is X defined", "list the files in X"
|
| allowed-tools | mcp__opentrace_oss__search_graph, mcp__opentrace_oss__get_node, mcp__opentrace_oss__traverse_graph, mcp__opentrace_oss__list_nodes, mcp__opentrace_oss__get_stats, Read, Grep, Glob |
Use the OpenTrace knowledge graph to answer the user's codebase question.
Query
$ARGUMENTS
Instructions
- Orient —
get_stats to see indexed node types and counts
- Search —
search_graph with nodeTypes filter:
- Code → "Class,Function"
- Files → "File,Directory"
- Dependencies → "Package"
- Inspect —
get_node for full details + neighbors
- Trace —
traverse_graph:
- "What calls X?" → incoming
- "What does X depend on?" → outgoing
- "What's in X?" → outgoing (CONTAINS)
- List —
list_nodes for "all X" queries
- Read source —
Read when nodes have a path property
Lead with a clear answer. Show relationships as A --CALLS--> B. Fall back to Glob/Grep if graph doesn't cover it.