import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import type { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js'; /** The slice of `@modelcontextprotocol/sdk` this server uses, loaded only when `mcp` runs. */ export type McpSdk = { McpServer: typeof McpServer; StdioServerTransport: typeof StdioServerTransport; CallToolRequestSchema: typeof CallToolRequestSchema; ListToolsRequestSchema: typeof ListToolsRequestSchema; }; export type SdkImporter = (specifier: string) => Promise; /** * The directory the server was installed into: the parent of the outermost `node_modules` above * `from`, which is where `pnpm add` must run so the peers resolve from this package. Outside any * `node_modules` (a source checkout) it is the module's own directory. */ export declare function installDirectory(from?: string | URL): string; export declare function missingSdkMessage(directory: string): string; /** * Imports the SDK lazily. A static import would make every `vouchington` command fail on a * consumer that never installed the optional peer. */ export declare function loadMcpSdk(importSdk?: SdkImporter, directory?: string): Promise; export declare function missingBlackboardMessage(directory: string): string; /** Fails fast at startup when `agent-blackboard` cannot be resolved from this package's install. */ export declare function assertBlackboardInstalled(resolveFrom?: string | URL): void;