Skip to content

Commit c775464

Browse files
committed
docs(typescript-quickstart): ensure proper async handling in Node.js MCP client demo
1 parent c255349 commit c775464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quickstart/client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ async connectToServer(serverScriptPath: string) {
568568
command,
569569
args: [serverScriptPath],
570570
});
571-
this.mcp.connect(this.transport);
571+
await this.mcp.connect(this.transport);
572572

573573
const toolsResult = await this.mcp.listTools();
574574
this.tools = toolsResult.tools.map((tool) => {

0 commit comments

Comments
 (0)