/** * Server assembly: which tool domains exist, and how a selection of them gets * registered. * * Kept apart from index.ts so transports and tool composition can change * independently, and so tests can build a server without touching stdio or * Express. */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { JsmClient } from "./services/client.js"; import type { Selection } from "./toolsets.js"; import type { AnyToolDefinition } from "./tools/define.js"; /** * Every tool this server knows how to register, in catalogue order. * * This is the full catalogue, not what any one process exposes — resolveSelection * cuts it down. The drift guard and the docs generator both want the whole thing, * so it stays exported unfiltered. */ export declare const allTools: AnyToolDefinition[]; /** * Every tool this process registers: the selection, code mode's dispatchers * when it is on, and jsm_list_capabilities either way. * * The last two are built here rather than resolved into the selection because * their descriptions report what THIS install can reach — the capabilities * tool explains a family that is off, and jsm_call embeds the list of * operations it can dispatch. A static description would be wrong on every * install but one. * * Exported so the wire snapshot and the TOOLS.md coverage test can read the * composed list rather than `allTools`, which does not contain either. */ export declare function composeTools(client: JsmClient, selection: Selection): AnyToolDefinition[]; /** * Builds a server exposing exactly `selection`, plus jsm_list_capabilities. * * The capabilities tool is added here rather than in the selection because it * is registered regardless: a selection that hides a family should still be * able to say so. */ export declare function buildServer(client: JsmClient, selection: Selection): McpServer; //# sourceMappingURL=server.d.ts.map