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
This commit is contained in:
parent
7ae2728c54
commit
feb224c9aa
1 changed files with 47 additions and 26 deletions
|
|
@ -1,36 +1,57 @@
|
||||||
# Quick Start With Claude Desktop
|
# Quick Start With Claude Desktop
|
||||||
|
|
||||||
1. **Build the Server (Counter Example)**
|
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` (Linux) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
```sh
|
||||||
```json
|
cargo build --release --example servers_std_io
|
||||||
{
|
```
|
||||||
"mcpServers": {
|
|
||||||
"counter": {
|
This builds a standard input/output MCP server binary.
|
||||||
"command": "PATH-TO/rust-sdk/target/release/examples/servers_std_io.exe",
|
|
||||||
"args": []
|
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": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
3. **Ensure that the MCP UI elements appear in Claude Desktop**
|
3. **Ensure that the MCP UI elements appear in Claude Desktop**
|
||||||
The MCP UI elements will only show up in Claude for Desktop if at least one server is properly configured.
|
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:**
|
4. **Once Claude Desktop is running, try chatting:**
|
||||||
```text
|
|
||||||
counter.say_hello
|
```text
|
||||||
```
|
counter.say_hello
|
||||||
Or test other tools like:
|
```
|
||||||
```text
|
|
||||||
counter.increment
|
Or test other tools like:
|
||||||
counter.get_value
|
|
||||||
counter.sum {"a": 3, "b": 4}
|
```texts
|
||||||
```
|
counter.increment
|
||||||
|
counter.get_value
|
||||||
|
counter.sum {"a": 3, "b": 4}
|
||||||
|
```
|
||||||
|
|
||||||
# Client Examples
|
# Client Examples
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue