diff --git a/mcp-client-typescript/index.ts b/mcp-client-typescript/index.ts index a0c5c89..30fd0be 100644 --- a/mcp-client-typescript/index.ts +++ b/mcp-client-typescript/index.ts @@ -56,7 +56,7 @@ class MCPClient { command, args: [serverScriptPath], }); - this.mcp.connect(this.transport); + await this.mcp.connect(this.transport); // List available tools const toolsResult = await this.mcp.listTools();