import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { ITransport } from './base.js'; /** * STDIO transport implementation for MCP server. * This transport uses standard input/output streams for communication. */ export declare class StdioTransport implements ITransport { private readonly transport; constructor(); /** * Connect the STDIO transport to the MCP server. * * @param server The MCP server instance to connect to * @returns Promise that resolves when the connection is established */ connect(server: Server): Promise; /** * Get the name of this transport. * * @returns 'stdio' */ getName(): string; /** * Get the underlying StdioServerTransport instance. * This is useful for backward compatibility and testing. * * @returns The underlying STDIO transport */ getUnderlyingTransport(): StdioServerTransport; }