import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { CallToolResult, ToolAnnotations } from "@modelcontextprotocol/sdk/types.js"; import type { z, ZodRawShape } from "zod"; import type { Config } from "./config.js"; import type { OnyxClient } from "./client.js"; export interface ToolContext { server: McpServer; client: OnyxClient; config: Config; } export declare function addTool(server: McpServer, name: string, description: string, schema: T, handler: (args: z.infer>) => Promise, annotations?: ToolAnnotations): void;