article
README
🚀 星辰 MCP 服务器用于 XDR-JSON 转换
这是一个 Claude 模型上下文协议 (MCP) 服务器,提供星辰 XDR-JSON 转换工具,能够让 Claude 理解 XDR 的含义,为相关应用提供了强大的支持。
🚀 快速开始
📦 安装指南
本项目无需传统意义上的安装步骤,而是需要在不同使用场景下添加服务器配置。
💻 使用示例
基础用法(Claude 桌面版)
要与 Claude 桌面版一起使用,可按以下步骤操作:
- 添加服务器配置:
- 在 macOS 上,配置文件路径为:
~/Library/Application Support/Claude/claude_desktop_config.json - 在 Windows 上,配置文件路径为:%APPDATA%/Claude/claude_desktop_config.json%
{ "mcpServers": { "mcp-stellar-xdr-json": { "command": "npx", "args": ["deno", "run", "--allow-read", "https://github.com/leighmcculloch/mcp-stellar-xdr-json/raw/refs/heads/main/mcp-stellar-xdr-json.ts"] } } } - 在 macOS 上,配置文件路径为:
- 重新打开 Claude 桌面版。
高级用法(Claude 代码)
- 添加服务器配置:
claude mcp add \ --transport stdio \ --scope user \ mcp-stellar-xdr-json \ -- \ npx deno run --allow-read https://github.com/leighmcculloch/mcp-stellar-xdr-json/raw/refs/heads/main/mcp-stellar-xdr-json.ts - 重新打开 Claude 代码。
示例展示
理解事务
可参考此链接查看示例:https://github.com/user-attachments/assets/8c4eef81-9109-432d-8be6-8e24ead74eef
理解合同事件
可参考此链接查看示例:https://github.com/user-attachments/assets/91523c7e-652e-46f8-92af-2315f408e32d
微信扫一扫