本指南将详细介绍Claude桌面版的使用方法,包括服务器配置的添加以及Claude Code的使用,同时提供相关示例供您参考。
您需要在指定路径添加服务器配置文件,具体路径如下:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json添加以下内容到配置文件中:
{
"mcpServers": {
"stellar-mcp": {
"command": "npx",
"args": ["deno", "run", "--allow-read", "https://github.com/leighmcculloch/stellar-mcp-xdr-json/raw/refs/heads/main/stellar-mcp-xdr-json.ts"]
}
}
}
完成上述操作后,重启 Claude 桌面版。
claude mcp add \
--transport stdio \
--scope user \
stellar-mcp-xdr-json \
-- \
npx deno run --allow-read https://github.com/leighmcculloch/stellar-mcp-xdr-json/raw/refs/heads/main/stellar-mcp-xdr-json.ts
示例链接:GitHub 资源
示例链接:GitHub 资源