From a778d28d7e22c917caeccfbf634b585e80bc1282 Mon Sep 17 00:00:00 2001 From: KAWAKAMI Moeki Date: Sat, 5 Apr 2025 17:55:30 +0900 Subject: [PATCH] Correct documentation of MCP client implementation --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 080532255..d96c59c21 100644 --- a/README.md +++ b/README.md @@ -471,15 +471,20 @@ await client.connect(transport); const prompts = await client.listPrompts(); // Get a prompt -const prompt = await client.getPrompt("example-prompt", { - arg1: "value" +const prompt = await client.getPrompt({ + name: "example-prompt", + arguments: { + arg1: "value", + }, }); // List resources const resources = await client.listResources(); // Read a resource -const resource = await client.readResource("file:///example.txt"); +const resource = await client.readResource({ + uri: "file:///example.txt" +}); // Call a tool const result = await client.callTool({