Add Claude desktop quick start and update Cargo.toml of examples/servers, examples/clients (#94)

* feat(readme): add Claude Desktop quick start guide

* fix(readme): correct typo in Claude Desktop instructions
This commit is contained in:
Ruangyot Nanchiang 2025-04-05 12:07:31 +07:00 • committed by GitHub
commit 57f2ba265f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,34 @@
# 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.
2. **Add or update this section in your** `~/.config/claude-desktop/config.toml`
```json
{
"mcpServers": {
"counter": {
"command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe",
"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}
```
# Client Examples
- [Client SSE](clients/src/sse.rs), using reqwest and eventsource-client.