Expand description
Code search — graph-aware querying of CodeNodes and CodeEdges.
Extends mcp_tools::codegraph_query_objects with graph-traversal capabilities:
- Edge-based search: find callers of, callees of, importers of, tests for
- Pattern search: case-insensitive substring match on name, signature, docstring
- Dependency search: find all transitive dependencies (callers N levels deep)
- Composite search: combine structural + graph criteria
Structs§
- Code
Search - A search query that combines structural and graph criteria.
- Search
Result - Result of a code search.
Functions§
- callees
- Find all callees of a function/method (convenience wrapper).
- callers
- Find all callers of a function/method (convenience wrapper).
- children_
of - Find all children (contained nodes) of a given node.
- find_
sources - Find all nodes that have an edge of
predicatetype pointing TOtarget_id. - find_
targets - Find all nodes that
source_idhas an edge ofpredicatetype pointing TO. - search_
nodes - Find nodes matching a
CodeSearchquery. - tests_
for - Find tests that cover a node (convenience wrapper).
- transitive_
callers - Reverse transitive search — find all nodes that can reach
target_idfollowing edges of typepredicatein reverse, up tomax_depthhops. - transitive_
deps - Transitive dependency search — find all nodes reachable from
start_idfollowing edges of typepredicate, up tomax_depthhops.