Expand description
CodeGraph NATS service — exposes code graph tools via NatsServiceBuilder.
Provides 8 handlers over the codegraph.cmd subject prefix, making the
code graph queryable and modifiable via NATS request/reply:
| Command | Description |
|---|---|
search | Search nodes by name/body pattern |
read | Read a specific node by ID |
deps | Callers/callees for a node |
replace | Update a node’s body (requires rationale) |
query | Structured filter query |
build | Run cargo build |
test | Run cargo test |
tools | Return tool schemas for MCP bridge discovery |
Subject prefix: codegraph.cmd
Binary: nusy-codegraph-service
Structs§
- Build
Request - Build
Response - Code
Graph State - Mutable state for the CodeGraph NATS service.
- Code
Node Full - Deps
Request - Deps
Response - Node
Summary - Query
Request - Query
Response - Read
Request - Read
Response - Replace
Request - Replace
Response - Search
Request - Search
Response - Test
Request - Test
Response - Tool
Schema - MCP tool schema for bridge discovery.
- Tools
Response
Functions§
- handle_
build - handle_
deps - handle_
query - handle_
read - handle_
replace - handle_
search - handle_
test - handle_
tools - Return MCP tool schemas — called by the MCP bridge on
tools/list. - resolve_
cargo_ path - Resolve the cargo binary path, checking common locations.