diff --git a/mcp-client-typescript/index.ts b/mcp-client-typescript/index.ts index be89f65..627c8e3 100644 --- a/mcp-client-typescript/index.ts +++ b/mcp-client-typescript/index.ts @@ -55,7 +55,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();