import { StitchProxyConfig } from '../spec/proxy.js'; import type { Tool } from '@modelcontextprotocol/sdk/types.js'; /** * Shared state for proxy handlers. */ export interface ProxyContext { config: StitchProxyConfig; remoteTools: Tool[]; } /** * Forward a JSON-RPC request to Stitch. */ export declare function forwardToStitch(config: StitchProxyConfig, method: string, params?: unknown): Promise; /** * Initialize connection to Stitch and fetch tools. */ export declare function initializeStitchConnection(ctx: ProxyContext): Promise; /** * Refresh the cached tools list from Stitch. * * Applies schema repair to inject missing $defs before the tools are * re-served to MCP clients whose AJV validators would otherwise crash * on unresolved $ref targets. */ export declare function refreshTools(ctx: ProxyContext): Promise; //# sourceMappingURL=client.d.ts.map