import type { Readable, Writable } from "node:stream"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import type { KnownTargetOptions } from "../../contracts/index.js"; import { McpBindingRegistry, type McpBindingContext } from "../binding-registry.js"; import type { ToolBrokerApi } from "./broker-api.js"; export interface GroupXMcpStdioBridge { readonly binding: McpBindingContext; readonly server: McpServer; readonly transport: StdioServerTransport; close(): Promise; } export interface ConnectGroupXMcpStdioOptions extends KnownTargetOptions { readonly broker: ToolBrokerApi; readonly bindings: McpBindingRegistry; readonly bindingId: string; readonly input?: Readable; readonly output?: Writable; readonly maxBufferSize?: number; } /** * Optional process/session-scoped stdio bridge. * * Stdio has no HTTP header, so its binding is fixed by the Adapter when the * bridge is connected. The bindingId is still only a provenance association. */ export declare function connectGroupXMcpStdio(options: ConnectGroupXMcpStdioOptions): Promise; //# sourceMappingURL=stdio.d.ts.map