Expand description
trusty-analyzer-mcp — MCP tool definitions for the analysis daemon.
Why: parity with trusty-search-mcp. Exposes analysis tools backed by the
analyzer’s HTTP daemon. The JSON-RPC stdio loop and HTTP/SSE transports
land in a follow-up; for now this crate publishes the tool schemas so
both the daemon and external clients (Claude Code, MCP debuggers) can
reference a single authoritative list.
What: a tool_definitions() function returning the static tool catalogue
(name, description, input_schema, upstream HTTP route). Three
analysis tools are exposed today: cluster_concepts, ner_extract,
ingest_scip. Plus the existing complexity / smells / quality tools the
analyzer already serves (added so the catalogue is complete).
Test: see #[cfg(test)] — round-trips the catalogue through serde_json
and asserts the expected tool names are present.
Structs§
- Tool
Definition - A single MCP tool definition. Mirrors the shape used by
trusty-search-mcpso future transport code can ship the catalogue verbatim.
Functions§
- placeholder
- Marker for downstream callers that the MCP transport layer is reserved but
not yet wired up. Replace with
McpServer+ transports when implementing. - tool_
definitions - Static catalogue of MCP tools served by the analyzer daemon.