File tree 3 files changed +38
-7
lines changed
3 files changed +38
-7
lines changed Original file line number Diff line number Diff line change
1
+ # Quick Start With Claude Desktop
2
+
3
+ 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`
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
+ ` ` `
20
+
21
+ 3. ** Once Claude Desktop is running, try chatting:**
22
+ ` ` ` text
23
+ counter.say_hello
24
+ ` ` `
25
+ Or test other tools like:
26
+ ` ` ` text
27
+ counter.increment
28
+ counter.get_value
29
+ counter.sum {" a" : 3, " b" : 4}
30
+ ` ` `
31
+
1
32
# Client Examples
2
33
3
34
- [Client SSE](clients/src/sse.rs), using reqwest and eventsource-client.
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ anyhow = "1.0"
25
25
tower = " 0.5"
26
26
27
27
[[example ]]
28
- name = " sse "
28
+ name = " clients_sse "
29
29
path = " src/sse.rs"
30
30
31
31
[[example ]]
32
- name = " std_io "
32
+ name = " clients_std_io "
33
33
path = " src/std_io.rs"
34
34
35
35
[[example ]]
36
- name = " everything_stdio "
36
+ name = " clients_everything_stdio "
37
37
path = " src/everything_stdio.rs"
38
38
39
39
[[example ]]
40
- name = " collection "
40
+ name = " clients_collection "
41
41
path = " src/collection.rs"
42
42
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ tokio-stream = { version = "0.1" }
30
30
tokio-util = { version = " 0.7" , features = [" codec" ] }
31
31
32
32
[[example ]]
33
- name = " std_io "
33
+ name = " servers_std_io "
34
34
path = " src/std_io.rs"
35
35
36
36
[[example ]]
37
- name = " axum "
37
+ name = " servers_axum "
38
38
path = " src/axum.rs"
39
39
40
40
[[example ]]
41
- name = " axum_router "
41
+ name = " servers_axum_router "
42
42
path = " src/axum_router.rs"
You can’t perform that action at this time.
0 commit comments