import type { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js'; import { McpServerConfig, ToolSurface } from './types.js'; export interface LiveScanOptions { /** Milliseconds before giving up on the server. Default 15000. */ timeoutMs?: number; /** * OAuth provider supplying cached tokens for remote servers. Only consulted * when the server config has no static `headers`. Must never start an * interactive flow — a 401 with an unusable/expired token surfaces as an * auth error. */ authProvider?: OAuthClientProvider; } /** * Connect to an MCP server (stdio, or remote via Streamable HTTP with SSE * fallback), list its tools, and disconnect. */ export declare function fetchToolSurface(server: McpServerConfig, opts?: LiveScanOptions): Promise;