import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import type { HostBridgeToolRegistry } from "./host-bridge-tools.js"; export declare const HOST_BRIDGE_MCP_SERVER_NAME = "agent-knock-knock-host-bridge"; export interface CreateHostBridgeMcpServerOptions { readonly registry: HostBridgeToolRegistry; readonly version: string; /** Test seam; production callers receive a fresh identity per Bridge. */ readonly instanceId?: string; } /** * Expose the established AKK semantic tool registry over MCP. * * The low-level SDK server intentionally does not infer validation from the * schemas returned by tools/list, so every schema is compiled once here and * enforced again before any semantic tool can execute. */ export declare function createHostBridgeMcpServer(options: CreateHostBridgeMcpServerOptions): Server; export declare function getHostBridgeMcpActiveCallCount(server: Server): number; /** Preserve both JSON-RPC request-id type and value inside one Bridge. */ export declare function hostBridgeToolCallId(instanceId: string, requestId: string | number): string; /** Wait until every already accepted MCP tool call has produced a result. */ export declare function drainHostBridgeMcpCalls(server: Server): Promise;