Skip to main content

Crate trusty_analyzer_mcp

Crate trusty_analyzer_mcp 

Source
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§

ToolDefinition
A single MCP tool definition. Mirrors the shape used by trusty-search-mcp so 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.