Skip to content

Commit feb224c

Browse files
authored
Fix typo for Claude desktop config file path correction and add more example for Windows, Linux, and MacOS (#107)
* fix(typo): claude desktop config file path correction
1 parent 7ae2728 commit feb224c

File tree

1 file changed

+47
-26
lines changed

1 file changed

+47
-26
lines changed

examples/README.md

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,57 @@
11
# Quick Start With Claude Desktop
22

33
1. **Build the Server (Counter Example)**
4-
```sh
5-
cargo build --release --example servers_std_io
6-
```
7-
This builds a standard input/output MCP server binary.
8-
9-
2. **Add or update this section in your** `~/.config/claude-desktop/config.toml` (Linux) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
10-
```json
11-
{
12-
"mcpServers": {
13-
"counter": {
14-
"command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe",
15-
"args": []
16-
}
17-
}
18-
}
19-
```
4+
5+
```sh
6+
cargo build --release --example servers_std_io
7+
```
8+
9+
This builds a standard input/output MCP server binary.
10+
11+
2. **Add or update this section in your** `PATH-TO/claude_desktop_config.json`
12+
13+
Windows
14+
15+
```json
16+
{
17+
"mcpServers": {
18+
"counter": {
19+
"command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe",
20+
"args": []
21+
}
22+
}
23+
}
24+
```
25+
26+
McOS/Linux
27+
28+
```json
29+
{
30+
"mcpServers": {
31+
"counter": {
32+
"command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io",
33+
"args": []
34+
}
35+
}
36+
}
37+
```
2038

2139
3. **Ensure that the MCP UI elements appear in Claude Desktop**
22-
The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.
40+
The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.
2341

2442
4. **Once Claude Desktop is running, try chatting:**
25-
```text
26-
counter.say_hello
27-
```
28-
Or test other tools like:
29-
```text
30-
counter.increment
31-
counter.get_value
32-
counter.sum {"a": 3, "b": 4}
33-
```
43+
44+
```text
45+
counter.say_hello
46+
```
47+
48+
Or test other tools like:
49+
50+
```texts
51+
counter.increment
52+
counter.get_value
53+
counter.sum {"a": 3, "b": 4}
54+
```
3455

3556
# Client Examples
3657

0 commit comments

Comments
 (0)