From 56ef4c862acf840448c011b43c736a9f9feaf682 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4GPR761\\HashTable" Date: Tue, 8 Apr 2025 19:11:04 +0700 Subject: [PATCH 1/4] fix(typo): claude desktop config file path correction --- examples/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index edc9cc2e..6c798403 100644 --- a/examples/README.md +++ b/examples/README.md @@ -6,7 +6,9 @@ ``` This builds a standard input/output MCP server binary. -2. **Add or update this section in your** `~/.config/claude-desktop/config.toml` +2. **Add or update this section in your** `PATH-TO/claude_desktop_config.json` + + **Windows** ```json { "mcpServers": { @@ -18,6 +20,18 @@ } ``` + **McOS/Linux** + ```json + { + "mcpServers": { + "counter": { + "command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io", + "args": [] + } + } + } + ``` + 3. **Once Claude Desktop is running, try chatting:** ```text counter.say_hello From 982f15e15a69e958b243128cf949518d16632ce3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4GPR761\\HashTable" Date: Tue, 8 Apr 2025 19:22:01 +0700 Subject: [PATCH 2/4] fix(format): edit doc format --- examples/README.md | 76 ++++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/examples/README.md b/examples/README.md index 6c798403..daefc3ef 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,47 +1,51 @@ # Quick Start With Claude Desktop 1. **Build the Server (Counter Example)** - ```sh - cargo build --release --example servers_std_io - ``` - This builds a standard input/output MCP server binary. + + ```sh + cargo build --release --example servers_std_io + ``` + + This builds a standard input/output MCP server binary. 2. **Add or update this section in your** `PATH-TO/claude_desktop_config.json` - **Windows** - ```json - { - "mcpServers": { - "counter": { - "command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe", - "args": [] - } - } - } - ``` - - **McOS/Linux** - ```json - { - "mcpServers": { - "counter": { - "command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io", - "args": [] - } - } - } - ``` + **Windows** + + ```json + { + "mcpServers": { + "counter": { + "command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe", + "args": [] + } + } + } + ``` + + **McOS/Linux** + + ```json + { + "mcpServers": { + "counter": { + "command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io", + "args": [] + } + } + } + ``` 3. **Once Claude Desktop is running, try chatting:** - ```text - counter.say_hello - ``` - Or test other tools like: - ```text - counter.increment - counter.get_value - counter.sum {"a": 3, "b": 4} - ``` + ```text + counter.say_hello + ``` + Or test other tools like: + ```text + counter.increment + counter.get_value + counter.sum {"a": 3, "b": 4} + ``` # Client Examples From 602459e9e4cc1f1b223226620a3eb1fadd589507 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4GPR761\\HashTable" Date: Wed, 9 Apr 2025 09:38:26 +0700 Subject: [PATCH 3/4] fix(typo): fix doc formatting --- examples/README.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/examples/README.md b/examples/README.md index 1d74988d..33d08766 100644 --- a/examples/README.md +++ b/examples/README.md @@ -6,11 +6,11 @@ cargo build --release --example servers_std_io ``` - This builds a standard input/output MCP server binary. + This builds a standard input/output MCP server binary. 2. **Add or update this section in your** `PATH-TO/claude_desktop_config.json` - Windows + Windows ```json { @@ -40,15 +40,18 @@ The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured. 4. **Once Claude Desktop is running, try chatting:** - `text -counter.say_hello -` + + ```text + counter.say_hello + ``` + Or test other tools like: - `text -counter.increment -counter.get_value -counter.sum {"a": 3, "b": 4} -` + + ```texts + counter.increment + counter.get_value + counter.sum {"a": 3, "b": 4} + ``` # Client Examples @@ -82,3 +85,7 @@ counter.sum {"a": 3, "b": 4} ```sh npx @modelcontextprotocol/inspector ``` + +``` + +``` From b2ff77b5acbd64e4f9f428bd7e58cd5a029e3fb6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4GPR761\\HashTable" Date: Wed, 9 Apr 2025 09:45:34 +0700 Subject: [PATCH 4/4] fix(typo): remove empty section --- examples/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/README.md b/examples/README.md index 33d08766..7498243f 100644 --- a/examples/README.md +++ b/examples/README.md @@ -85,7 +85,3 @@ ```sh npx @modelcontextprotocol/inspector ``` - -``` - -```