返回 MCP 目录
public公开dns本地运行

Stellar XDR-JSON

一个为Claude提供Stellar XDR-JSON转换工具的MCP服务器

article

README

🚀 星辰 MCP 服务器用于 XDR-JSON 转换

这是一个 Claude 模型上下文协议 (MCP) 服务器,提供星辰 XDR-JSON 转换工具,能够让 Claude 理解 XDR 的含义,为相关应用提供了强大的支持。

🚀 快速开始

📦 安装指南

本项目无需传统意义上的安装步骤,而是需要在不同使用场景下添加服务器配置。

💻 使用示例

基础用法(Claude 桌面版)

要与 Claude 桌面版一起使用,可按以下步骤操作:

  1. 添加服务器配置:
    • 在 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"]
        }
      }
    }
    
  2. 重新打开 Claude 桌面版。

高级用法(Claude 代码)

  1. 添加服务器配置:
    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
    
  2. 重新打开 Claude 代码。

示例展示

理解事务

可参考此链接查看示例:https://github.com/user-attachments/assets/8c4eef81-9109-432d-8be6-8e24ead74eef

理解合同事件

可参考此链接查看示例:https://github.com/user-attachments/assets/91523c7e-652e-46f8-92af-2315f408e32d

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端