Expand description
MCP tool implementations for CodeGraph query and update operations.
Provides 4 CRUD-style tools that agents use instead of file reads/writes:
codegraph_query_objects— filter by kind, name, parent, metrics, semantic similaritycodegraph_update_object— modify CodeNode fields (signature, docstring, body_hash)codegraph_add_edge— create a relationship between CodeNodescodegraph_remove_edge— logical delete of an edge
These operate directly on Arrow RecordBatches — no file materialization.
Structs§
- Node
Update - Fields that can be updated on a CodeNode.
- Query
Filter - Filter criteria for querying code objects.
- Query
Result - Result of a query — matching CodeNodes extracted from RecordBatches.
Enums§
- McpTool
Error - Errors from MCP tool operations.
Functions§
- codegraph_
add_ edge - Add a new edge to the edges batch. Returns a new batch with the edge appended.
- codegraph_
query_ objects - Query code objects from the nodes batch with optional filters.
- codegraph_
remove_ edge - Remove an edge (by setting weight to -1 as a tombstone marker).
- codegraph_
update_ object - Update a CodeNode’s fields in-place. Returns the updated batch.