Skip to content

Commit b5f0935

Browse files
authored
await mcp.connect
1 parent dfc9247 commit b5f0935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp-client-typescript/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MCPClient {
5555
command,
5656
args: [serverScriptPath],
5757
});
58-
this.mcp.connect(this.transport);
58+
await this.mcp.connect(this.transport);
5959

6060
// List available tools
6161
const toolsResult = await this.mcp.listTools();

0 commit comments

Comments
 (0)