import { McpServer } from '@modelcontextprotocol/server'; import type { McpToolCallback, McpToolContext } from '../types.js'; import type { KvService } from '@redocly/config'; export declare function createMcpServer(name: string, instructions?: string): McpServer; export type ToolDispatchDeps = { getClientCapabilities: () => { elicitation?: { form?: unknown; url?: unknown; }; } | undefined; getKv: () => Promise; }; /** Build the tool callback that ships a tool call to the worker pool. */ export declare function createToolDispatch(serializableContext: McpToolContext, deps?: ToolDispatchDeps): (toolName: string) => McpToolCallback; export declare function extractSerializableContext(context: McpToolContext): McpToolContext; //# sourceMappingURL=mcp-server.d.ts.map