From b5f09353067949887469a30f08c5cf13b45df080 Mon Sep 17 00:00:00 2001 From: Masashi Tomooka Date: Wed, 26 Mar 2025 22:22:06 +0900 Subject: [PATCH] await mcp.connect --- mcp-client-typescript/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();