ADK for TypeScript: API Reference
    Preparing search index...

    Interface StdioConnectionParams

    该函数定义了用于通过标准输入/输出(stdio)与 MCP 服务器建立连接的参数。这种方法通常用于将 MCP 服务器作为本地子进程来运行。

    interface StdioConnectionParams {
        serverParams: StdioServerParameters;
        timeout?: number;
        type: "StdioConnectionParams";
    }
    serverParams: StdioServerParameters
    timeout?: number

    标准 I/O(stdio MCP)操作的请求超时时间(以秒为单位)。如果该超时时间未被设置,则 MCP SDK 会使用其自身的默认超时设置。

    type: "StdioConnectionParams"