import { ZodTypeAny, z } from "zod"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { ToolAnnotations } from "@modelcontextprotocol/sdk/types.js"; //#region ../shared/dist/constants.d.ts interface BaseToolArguments { prompt?: string; message?: string; [key: string]: string | boolean | number | string[] | undefined; } //#endregion //#region ../shared/dist/providers.d.ts /** * Single source of truth for the provider list (ADR-128). * * Every provider-name enum, type union, or user-facing provider list in the * monorepo must derive from this tuple — hand-maintained copies drifted when * antigravity was added (see BUGS.md 2026-07-02 audit entry). */ declare const PROVIDERS: readonly ["gemini", "codex", "claude", "ollama", "antigravity"]; type ProviderName = (typeof PROVIDERS)[number]; //#endregion //#region ../shared/dist/usage.d.ts interface UsageStats { provider: ProviderName; model: string; inputTokens: number | undefined; outputTokens: number | undefined; cachedTokens: number | undefined; thinkingTokens: number | undefined; durationMs: number; fellBack: boolean; } //#endregion //#region ../shared/dist/registry.d.ts interface StructuredToolResult { text: string; structuredContent: Record; } type ToolResult = string | StructuredToolResult; interface UnifiedTool { name: string; description: string; zodSchema: ZodTypeAny; outputSchema?: ZodTypeAny; annotations?: ToolAnnotations; prompt?: { description: string; arguments?: Array<{ name: string; description: string; required: boolean; }>; }; execute: (args: BaseToolArguments, onProgress?: (newOutput: string) => void, onUsage?: (stats: UsageStats) => void) => Promise; category?: "simple" | ProviderName | "utility"; } declare const toolRegistry: UnifiedTool[]; declare function executeTool$1(toolName: string, args: BaseToolArguments, onProgress?: (newOutput: string) => void, onUsage?: (stats: UsageStats) => void): Promise; declare function getPromptMessage$1(toolName: string, args: Record): string; //#endregion export { executeTool$1 as executeTool, getPromptMessage$1 as getPromptMessage, toolRegistry }; //# sourceMappingURL=register.d.ts.map