await mcp.connect

This commit is contained in:
Masashi Tomooka 2025-03-26 22:22:06 +09:00 • committed by GitHub
commit b5f0935306
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();