import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { type MCPResponse } from "../handlers/shared/responseTrimmer"; /** A tool the server no longer lists, and what a call to it is told instead (ADR 0010). */ export interface RetiredTool { /** The last release that listed the tool. */ lastRelease: string; /** The listed tools that do its job now; empty when none does. */ replacedBy: readonly string[]; /** What the caller reads: the tools to call instead and how its inputs map, or why none does. */ message: string; } /** Every tool name a release listed that the server no longer registers. */ export declare const RETIRED_TOOLS: ReadonlyMap; /** * The error result for a call to a retired tool. A replacement missing from `listed`, the tools * this client is offered, is dropped from `replacedBy` and named as not offered. */ export declare function retiredToolError(name: string, retired: RetiredTool, listed: ReadonlySet): MCPResponse; /** * Answers a call to a retired tool, or a call that uses a previous contract of a tool that kept * its name, and passes every other call to the MCP SDK's tools/call handler. Call it after * registering the tools: the SDK installs its handler with the first one. */ export declare function answerRetiredTools(server: McpServer): void; //# sourceMappingURL=retiredTools.d.ts.map