import { Client } from "./_chunks/client.mjs"; import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { CallToolResult, Tool } from "@modelcontextprotocol/sdk/types.js"; /** The `tools/list` entries shared by `registries mcp` and the MCP server of the docs site. */ export declare const toolListings: readonly Tool[]; /** * Runs one tool the way `tools/call` of `registries mcp` does, errors as results, never as a throw. * * @param {string} name - The tool's name, such as `registries_package`. * @param {Readonly>} args - The arguments the client sent. * @param {AbortSignal} [signal] - The request's signal, which stops the registry requests. * @param {Client} [client] - HTTP client for the registry requests, the default one when absent. * @returns {Promise} The tool's text, or the sanitized error. */ export declare function callTool(name: string, args: Readonly>, signal?: AbortSignal, client?: Client): Promise; export declare function createMcpServer(): Server; //# sourceMappingURL=mcp.d.mts.map