File tree Expand file tree Collapse file tree 1 file changed +40
-36
lines changed Expand file tree Collapse file tree 1 file changed +40
-36
lines changed Original file line number Diff line number Diff line change 11# Quick Start With Claude Desktop
22
331 . ** 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.
4+
5+ ``` sh
6+ cargo build --release --example servers_std_io
7+ ```
8+
9+ This builds a standard input/output MCP server binary.
810
9112 . ** Add or update this section in your** ` PATH-TO/claude_desktop_config.json `
1012
11- ** Windows**
12- ` ` ` json
13- {
14- " mcpServers" : {
15- " counter" : {
16- " command" : " PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe" ,
17- " args" : []
18- }
19- }
20- }
21- ` ` `
22-
23- ** McOS/Linux**
24- ` ` ` json
25- {
26- " mcpServers" : {
27- " counter" : {
28- " command" : " PATH-TO/rust-sdk/target/release/examples/servers_std_io" ,
29- " args" : []
30- }
31- }
32- }
33- ` ` `
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+ ```
3438
35393 . ** Once Claude Desktop is running, try chatting:**
36- ` ` ` text
37- counter.say_hello
38- ` ` `
39- Or test other tools like:
40- ` ` ` text
41- counter.increment
42- counter.get_value
43- counter.sum {" a" : 3, " b" : 4}
44- ` ` `
40+ ``` text
41+ counter.say_hello
42+ ```
43+ Or test other tools like:
44+ ``` text
45+ counter.increment
46+ counter.get_value
47+ counter.sum {"a": 3, "b": 4}
48+ ```
4549
4650# Client Examples
4751
You can’t perform that action at this time.
0 commit comments