From 35a89946d6ff1e9fbc88110547fd0c17798e87ba Mon Sep 17 00:00:00 2001 From: KelvinQiu <61877651+KelvinQiu802@users.noreply.github.com> Date: Sun, 6 Apr 2025 13:12:26 +0800 Subject: [PATCH] fix: await and param key name 1. Add await for this.mcp.connect since it returns a Promise. 2. use inputSchema instead of input_schema (fix type) --- quickstart/client.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstart/client.mdx b/quickstart/client.mdx index c98984b..8f0b3a4 100644 --- a/quickstart/client.mdx +++ b/quickstart/client.mdx @@ -565,14 +565,14 @@ async connectToServer(serverScriptPath: string) { command, args: [serverScriptPath], }); - this.mcp.connect(this.transport); + await this.mcp.connect(this.transport); const toolsResult = await this.mcp.listTools(); this.tools = toolsResult.tools.map((tool) => { return { name: tool.name, description: tool.description, - input_schema: tool.inputSchema, + inputSchema: tool.inputSchema, }; }); console.log(