Token导航 LogoToken导航TokenDH.com
Py Stellar MCP logo
金融服务stdio官方级别未说明来源级核验

Py Stellar MCP

MCP Server

一个为AI代理和LLM提供Stellar区块链操作的MCP服务器,支持测试网交易、账户管理和智能合约交互。

工具数

6

提示词数

0

GitHub Stars

0

资源数

0
PythonClaude金融数据Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

yusefmosiah

提供方

yusefmosiah

最后核验

2026/5/17 20:21

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run server.py

详细介绍

星际Python MCP服务器

A. 模型上下文协议(MCP) 该服务器将Stellar区块链操作作为直观的复合工具提供给AI代理和大型语言模型(LLMs)。它采用FastMCP和Stellar SDK构建,用于测试网交易、账户管理和智能合约交互。

主要特点:

  • 🎯 目标/瞄准(根据上下文可具体翻译为“目标”或“瞄准”等) 直观的买卖语义 大型语言模型的自然语言API
  • 🚀 表情符号“🚀”在中文中通常被翻译为“火箭”或“🚀”(直接保留原样,因为它是通用表情符号)。所以,这个表达可以理解为“🚀(火箭)”或者直接使用“🚀”这个符号。 复合工具 - 6个综合工具,而非众多单独操作
  • 🔮 神秘符号(通常代表魔法、占卜或未知的力量) Soroban 智能合约 - 全面支持合约调用、模拟和事件处理
  • 🔒(锁形符号,常用于表示安全、保密或锁定状态) 持久密钥存储 - 基于文件的密钥对管理,重启后数据持久保留
  • ⚡(闪电符号,常用于表示快速、活力、电能等概念,在中文中无直接对应词汇,可保留原样或根据上下文具体含义进行意译) 单次调用操作 - 内置自动签名功能降低复杂性

______________________________________________________________________

特点/功能

  • 账户管理创建、资助和查询Stellar测试网账户
  • 持久密钥存储基于文件的安全密钥对管理
  • SDEX交易直观易用的买入/卖出API,具有明确的资产语义
  • 信任链管理为发行的资产建立和解除信任线(或信任连接)
  • Soroban 智能合约调用、模拟和查询合同操作,支持16+种参数类型
  • 复合工具合并运营使MCP(可能指某种管理或控制平台/系统)的开销减少了约70%
  • 符合MCP标准/规范全面的工具注册和发现支持
  • 生产就绪95%的测试覆盖率,在测试网上进行了广泛验证(见SOROBAN_TEST_REPORT.md)

______________________________________________________________________

快速入门

0. 配置MCP客户端

添加到您的MCP客户端配置中(例如,Claude桌面版) ~/Library/Application Support/Claude/claude_desktop_config.json):

选项A:使用 uv (自动依赖管理)

{
  "mcpServers": {
    "stellar": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/py-stellar-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

选项B:直接使用Python(显式控制)

{
  "mcpServers": {
    "stellar": {
      "command": "/ABSOLUTE/PATH/TO/py-stellar-mcp/.venv/bin/python",
      "args": [
        "/ABSOLUTE/PATH/TO/py-stellar-mcp/server.py"
      ]
    }
  }
}

重要提示: 替换 /ABSOLUTE/PATH/TO/py-stellar-mcp 使用您实际的项目路径。

1. 安装依赖项

# Create virtual environment
uv venv
source .venv/bin/activate  # macOS/Linux

# Install packages
uv pip install -r requirements.txt

2. 配置环境(可选)

创建 .env 文件:

STELLAR_NETWORK=testnet
HORIZON_URL=https://horizon-testnet.stellar.org
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org

# Note: SSL certificates are now handled automatically via stellar_ssl.py
# No manual SSL configuration needed!

3. 在本地测试服务器(可选)

在使用MCP客户端之前,您可以直接测试服务器:

选项A:使用 uv

uv run server.py

选项B:直接使用Python

source .venv/bin/activate
python server.py

MCP服务器将启动并暴露5个组合的Stellar工具。如需在生产环境中使用,请重启您的MCP客户端(例如,Claude Desktop)以加载服务器。

______________________________________________________________________

复合工具参考

1. 客户经理(account_manager_tool)

1个工具完成7项操作: 创建、资助、获取、交易、列出、导出、导入

# Create new account
account_manager_tool(action="create")
# → {"account_id": "G...", "public_key": "G..."}

# Fund account (testnet only)
account_manager_tool(action="fund", account_id="G...")
# → {"success": true, "balance": "10000.0000000"}

# Get account details
account_manager_tool(action="get", account_id="G...")
# → {"balances": [...], "sequence": "123", ...}

# Get transactions
account_manager_tool(action="transactions", account_id="G...", limit=10)

# List all managed accounts
account_manager_tool(action="list")

# Export keypair (⚠️ dangerous!)
account_manager_tool(action="export", account_id="G...")

# Import existing keypair
account_manager_tool(action="import", secret_key="S...")

2. 交易(trading_tool

1件工具完成6项操作: 买入(市价/限价),卖出(市价/限价),取消订单,获取订单

关键设计: 与用户意图相匹配的明确买卖语义

# Market buy: Buy 4 USDC by spending XLM
trading_tool(
    action="buy",
    order_type="market",
    account_id="G...",
    buying_asset="USDC",
    selling_asset="XLM",
    buying_issuer="GBBD...",
    amount="4"  # Buy 4 USDC at market price
)

# Limit buy: Buy 4 USDC, willing to pay 15 XLM per USDC
trading_tool(
    action="buy",
    order_type="limit",
    account_id="G...",
    buying_asset="USDC",
    selling_asset="XLM",
    buying_issuer="GBBD...",
    amount="4",    # Buy 4 USDC
    price="15"     # Pay 15 XLM per USDC
)

# Sell: Sell 100 XLM for USDC, want 0.01 USDC per XLM
trading_tool(
    action="sell",
    order_type="limit",
    account_id="G...",
    selling_asset="XLM",
    buying_asset="USDC",
    buying_issuer="GBBD...",
    amount="100",  # Sell 100 XLM
    price="0.01"   # Get 0.01 USDC per XLM
)

# Cancel order
trading_tool(action="cancel_order", account_id="G...", offer_id="12345")

# Get open orders
trading_tool(action="get_orders", account_id="G...")

3. Trustline 管理员(trustline_manager_tool)

一工具完成两项操作: 建立,移除

# Establish USDC trustline
trustline_manager_tool(
    action="establish",
    account_id="G...",
    asset_code="USDC",
    asset_issuer="GBBD...",
    limit=None  # Optional trust limit
)

# Remove trustline (requires 0 balance)
trustline_manager_tool(
    action="remove",
    account_id="G...",
    asset_code="USDC",
    asset_issuer="GBBD..."
)

4. 市场数据(market_data_tool

1工具完成2种操作: 订单簿查询

# Get USDC/XLM orderbook
market_data_tool(
    action="orderbook",
    base_asset="XLM",       # Default base
    quote_asset="USDC",
    quote_issuer="GBBD...",
    limit=20                # Orders per side
)
# → {"bids": [...], "asks": [...]}

5. 公用事业(utilities_tool)

1个工具完成2项操作: 状态,费用

# Get Horizon server status
utilities_tool(action="status")

# Get network fee estimate
utilities_tool(action="fee")

6. 珠算智能合约(Soroban Smart Contracts)soroban_tool

1工具完成4种操作: 获取数据,模拟,调用,获取事件

# Read contract storage data
soroban_tool(
    action="get_data",
    contract_id="CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
    key="counter",
    durability="persistent"
)

# Simulate contract call (read-only, no fees)
soroban_tool(
    action="simulate",
    contract_id="CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
    function_name="get_balance",
    parameters='[{"type": "address", "value": "GABC..."}]',
    source_account="GABC..."
)

# Execute contract function (write to blockchain)
soroban_tool(
    action="invoke",
    contract_id="CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
    function_name="transfer",
    parameters='[
        {"type": "address", "value": "GFROM..."},
        {"type": "address", "value": "GTO..."},
        {"type": "int128", "value": 1000000}
    ]',
    source_account="GFROM...",
    auto_sign=True
)

# Query contract events
soroban_tool(
    action="get_events",
    contract_id="CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM",
    start_ledger=1000000,
    limit=50
)

参数格式: Soroban 参数使用带有显式类型标签的 JSON:

[
    {"type": "address", "value": "GABC..."},
    {"type": "uint32", "value": 1000},
    {"type": "string", "value": "hello"},
    {"type": "symbol", "value": "token_name"},
    {"type": "vec", "value": [
        {"type": "uint32", "value": 1},
        {"type": "uint32", "value": 2}
    ]}
]

支持的类型:

  • 基本元素/原始类型(根据上下文,"Primitives" 可以翻译为“基本元素”或“原始类型”,具体取决于其在计算机科学或编程领域的具体含义)地址,布尔值,字节,持续时间,32位整数,64位整数,128位整数,256位整数,无符号32位整数,无符号64位整数,无符号128位整数,无符号256位整数
  • 文本字符串,符号
  • 特别时间点,空值,本地(的)
  • 复杂的vec(数组)、map(字典)、struct(结构体)、tuple_struct(元组结构体)、enum(枚举)

______________________________________________________________________

使用示例

示例1:创建并资助交易账户

# 1. Create account
result = account_manager_tool(action="create")
account_id = result["account_id"]

# 2. Fund with testnet XLM
account_manager_tool(action="fund", account_id=account_id)
# → 10,000 XLM from Friendbot

# 3. Establish USDC trustline
usdc_issuer = "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5"
trustline_manager_tool(
    action="establish",
    account_id=account_id,
    asset_code="USDC",
    asset_issuer=usdc_issuer
)

# 4. Ready to trade!

示例2:在市场中下达买入订单

# Buy 0.5 USDC at current market price using XLM
result = trading_tool(
    action="buy",
    order_type="market",
    account_id=account_id,
    buying_asset="USDC",
    selling_asset="XLM",
    buying_issuer=usdc_issuer,
    amount="0.5"
)
# → {"success": true, "hash": "...", "market_execution": {...}}

示例3:下达限价单

# Place buy limit: Buy 10 USDC, willing to pay up to 50 XLM per USDC
trading_tool(
    action="buy",
    order_type="limit",
    account_id=account_id,
    buying_asset="USDC",
    selling_asset="XLM",
    buying_issuer=usdc_issuer,
    amount="10",
    price="50"
)

# Place sell limit: Sell 100 XLM, want at least 0.02 USDC per XLM
trading_tool(
    action="sell",
    order_type="limit",
    account_id=account_id,
    selling_asset="XLM",
    buying_asset="USDC",
    buying_issuer=usdc_issuer,
    amount="100",
    price="0.02"
)

示例4:管理订单

# Check orderbook
orderbook = market_data_tool(
    action="orderbook",
    quote_asset="USDC",
    quote_issuer=usdc_issuer,
    limit=10
)
print(orderbook["bids"])  # People buying XLM (selling USDC)
print(orderbook["asks"])  # People selling XLM (buying USDC)

# Get your open orders
orders = trading_tool(action="get_orders", account_id=account_id)
print(orders["offers"])

# Cancel specific order
if orders["offers"]:
    offer_id = orders["offers"][0]["id"]
    trading_tool(action="cancel_order", account_id=account_id, offer_id=offer_id)

示例5:珠算智能合约交互

# Simulate a contract call (read-only, no fees)
result = soroban_tool(
    action="simulate",
    contract_id="CBGTG3KGTGQ3IVHJVRILHLJITP3VX5DSYKHPZKLZARKJ6E5TGZO5IUEU",
    function_name="hello",
    parameters='[{"type": "symbol", "value": "world"}]',
    source_account=account_id
)
print(f"Contract returned: {result['result']}")

# Invoke a contract function (write operation)
result = soroban_tool(
    action="invoke",
    contract_id="CBGTG3KGTGQ3IVHJVRILHLJITP3VX5DSYKHPZKLZARKJ6E5TGZO5IUEU",
    function_name="increment",
    parameters='[{"type": "address", "value": "' + account_id + '"}]',
    source_account=account_id,
    auto_sign=True
)
print(f"Transaction hash: {result['hash']}")
print(f"Status: {result['status']}")

# Read contract storage
data = soroban_tool(
    action="get_data",
    contract_id="CBGTG3KGTGQ3IVHJVRILHLJITP3VX5DSYKHPZKLZARKJ6E5TGZO5IUEU",
    key="counter",
    durability="persistent"
)
print(f"Counter value: {data['value']}")

# Query contract events
events = soroban_tool(
    action="get_events",
    contract_id="CBGTG3KGTGQ3IVHJVRILHLJITP3VX5DSYKHPZKLZARKJ6E5TGZO5IUEU",
    start_ledger=1000000,
    limit=10
)
print(f"Found {events['count']} events")
for event in events['events']:
    print(f"  Ledger {event['ledger']}: {event['topics']}")

______________________________________________________________________

建筑学

┌──────────────────────┐
│  AI Agent / LLM      │ ← Strategy, decision-making
└──────────┬───────────┘
           │ MCP Protocol
           ↓
┌──────────────────────┐
│  FastMCP Server      │ ← Tool registration
│  (server.py)         │
└──────────┬───────────┘
           │
┌──────────┴───────────────────────┐
│  Composite Tools                 │ ← Consolidated operations
│  (stellar_tools, stellar_soroban)│
└──────────┬───────────────────────┘
           │
┌──────────┴───────────┐
│  KeyManager          │ ← Persistent file storage
│  (.stellar_keystore) │
└──────────┬───────────┘
           │
┌──────────┴───────────┐
│  Stellar SDK         │ ← Blockchain operations
└──────────┬───────────┘
           │
      ┌────┴────┐
      ↓         ↓
┌──────────┐ ┌────────────────┐
│ Horizon  │ │  Soroban RPC   │
│   API    │ │  (Contracts)   │
│ (Testnet)│ │   (Testnet)    │
└──────────┘ └────────────────┘

设计原则

  1. 直观语义学购买/出售API符合用户的思维模式
  2. 复合工具合并运营减少了MCP(管理控制点/多点控制单元)呼叫开销
  3. 安全密钥管理基于文件的持久化,权限为600
  4. 单次调用操作内置自动签名功能简化工作流程
  5. 仅限测试网适用于黑客马拉松和开发活动的安全性

______________________________________________________________________

API语义

购买/销售意向

交易API使用 明确的买卖语义 这与人类思考交易的方式相契合:

# ✅ Clear: "I want to buy 4 USDC by spending XLM"
trading_tool(
    action="buy",
    buying_asset="USDC",   # What I want
    selling_asset="XLM",   # What I'm spending
    amount="4",            # 4 USDC
    price="15"             # Willing to pay 15 XLM per USDC
)

# ✅ Clear: "I want to sell 100 XLM to get USDC"
trading_tool(
    action="sell",
    selling_asset="XLM",   # What I'm giving up
    buying_asset="USDC",   # What I want
    amount="100",          # 100 XLM
    price="0.01"           # Want 0.01 USDC per XLM
)

金额解释

  • 对于 action="buy"amount = 数量为 buying_asset 获取;获得
  • 对于 action="sell"amount = 数量的 selling_asset 放弃

价格解释

  • 为了 action="buy"price = selling_asset per(在英语中常作为前缀,表示“每”或“按”的意思,如“per cent”表示“百分之一”) buying_asset
  • 对于 action="sell"price = buying_asset per(介词,表示“每”) selling_asset

设计原理/设计思路

  1. 匹配Stellar SDK使用与原生应用相同的买卖概念 manage_buy_offermanage_sell_offer
  2. 对大型语言模型(LLMs)而言直观易懂自然语言表达如“用XLM购买4个USDC”
  3. 无需了解订单簿知识内部翻译处理基础货币/报价货币的方向
  4. 无歧义每个API调用都应明确意图

______________________________________________________________________

常见测试网资产

USDC(测试网)

Code: USDC
Issuer: GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5
Faucet: https://stellar.org/faucet (web-based, rate-limited)

注:测试网上的USDC(美元稳定币)较为稀缺。使用网页水龙头获取少量用于测试。

______________________________________________________________________

错误处理

所有工具都返回结构化的响应:

成功:

{
  "success": true,
  "hash": "abc123...",
  "ledger": 12345,
  "message": "Operation completed"
}

失败:

{
  "success": false,
  "error": "Account not found in key storage"
}

______________________________________________________________________

安全考虑事项

当前实施情况

  • ✅ 基于文件的密钥对存储(.stellar_keystore.json)
  • ✅ 设置安全权限(600 - 仅所有者可读/写)
  • ✅ 仅限测试网(无真实资金风险)
  • ✅ 秘密密钥从不暴露给代理(导出操作除外)
  • ✅ 密钥对在重启后仍然存在

生产建议

  • 使用加密文件存储或HSM(硬件安全模块)来管理密钥对
  • 添加身份验证和速率限制
  • 实施审计日志记录
  • 考虑使用多重签名账户
  • 使用主网时,请做好密钥备份

______________________________________________________________________

发展

项目结构

py-stellar-mcp/
├── server.py                 # FastMCP entry point
├── stellar_tools.py          # Horizon API composite tools
├── stellar_soroban.py        # Soroban RPC async operations
├── stellar_ssl.py            # SSL certificate handling (NEW)
├── key_manager.py            # Persistent keypair storage
├── test_basic.py             # Basic integration tests
├── test_sdex_trading.py      # SDEX trading tests (15/15 passing)
├── test_soroban.py           # Soroban integration tests
├── test_soroban_basic.py     # Soroban validation tests
├── requirements.txt          # Dependencies (includes certifi)
├── .env                      # Configuration (git-ignored)
├── .stellar_keystore.json    # Keypair storage (git-ignored)
├── .gitignore               # Excludes secrets
├── CHANGELOG.md             # Version history
├── SOROBAN_TEST_REPORT.md   # Comprehensive test results
├── SOROBAN_TEST_SUMMARY.md  # Quick test overview
└── README.md                # This file

添加新操作

扩展现有复合工具:

# In stellar_tools.py
def trading(action, account_id, ...):
    if action == "my_new_action":
        # Your implementation
        return {"success": True, "data": result}
    # ... existing actions

无需注册新的MCP工具,只需扩展组合函数即可!

______________________________________________________________________

测试

运行集成测试

# Activate virtual environment
source .venv/bin/activate

# Run SDEX trading tests (15 tests)
python test_sdex_trading.py

# Run basic tests
python test_basic.py

# Run Soroban validation tests (no network required)
python test_soroban_basic.py

# Run Soroban integration tests (requires network)
python test_soroban.py

测试报告

所有测试套件都会生成带有时间戳的Markdown报告 test_reports/

SDEX交易测试 (test_sdex_trading.py):

  • 账户创建与充值
  • 建立信任线
  • 订单簿查询
  • 限价单的下达与撤销
  • 实际市场交易执行
  • 报告: sdex_trading_report_YYYYMMDD_HHMMSS.md

珠算验证测试 (test_soroban_basic.py):

  • 模块导入和结构验证
  • 参数解析(简单类型和复杂类型)
  • stellar-sdk 的异步依赖项
  • 配置文件验证
  • 报告: soroban_validation_report_YYYYMMDD_HHMMSS.md

算盘(Soroban)集成测试 (test_soroban.py):

  • 服务器健康检查
  • 账户资金充值
  • 错误处理验证
  • 合同调用(当提供CONTRACT_ID时)
  • 报告: soroban_integration_report_YYYYMMDD_HHMMSS.md

运行测试:

# Run individual test suites (SSL automatically configured)
python test_sdex_trading.py
python test_soroban_basic.py
python test_soroban.py

# All tests now work without manual SSL configuration!

______________________________________________________________________

故障排除

“在密钥存储中未找到账户”

  • 使用 account_manager_tool(action="create") 或者 action="import" 首先
  • 检查 action="list" 查看托管账户

“Friendbot请求失败”

  • Friendbot 可能受到速率限制或已宕机
  • 几秒钟后再试一次

“没有资产的信任线”

  • 使用 trustline_manager_tool(action="establish", ...) 在接收发行资产之前
  • 检查 account_manager_tool(action="get", ...) 验证信任线(或信用额度)

交易失败

  • 检查账户是否拥有足够的XLM余额(用于支付费用)
  • 验证资产信托线是否已建立
  • 检查价格格式(使用小数字符串,如“15”或“0.01”)
  • 查看响应中的错误信息

配置问题

  • 确保 .env 文件已存在,且包含正确的Horizon URL
  • 验证是否已安装 Python 3.9 或更高版本
  • 检查虚拟环境是否已激活

SSL 证书错误(macOS + Python 3.6+)

状态:固定的 - SSL证书现在已自动处理!

已修复的问题: 在 macOS 上,Python 3.6+ 版本自带了一个不包含证书的 OpenSSL 库,这会导致 Soroban RPC 连接时出现 SSL 验证错误。此问题已通过编程方式解决 stellar_ssl.py 模块。

其工作原理: 服务器现在使用 StellarAiohttpClient 它会自动使用 certifi 的 CA 证书包配置 SSL 上下文。无需手动配置或设置环境变量!

如果您仍然遇到SSL错误:

# Ensure certifi is installed (should be automatic from requirements.txt)
pip install --upgrade certifi

# Verify the fix is active
python -c "from stellar_ssl import create_ssl_context; print('✅ SSL configured')"

技术细节:

  • stellar_ssl.py 延伸;扩展 AiohttpClient 带有自动SSL上下文配置
  • 使用 certifi 维护的 CA 证书包进行证书验证
  • 在所有平台(macOS、Linux、Windows、Docker)上均可运行
  • 无需环境变量或手动指定路径

珠算合约测试

生产验证完成 ✅ Soroban工具套件已在测试网上经过全面测试:

  • 95%的功能覆盖率 在所有业务中
  • 20多种参数类型组合 经过验证的
  • 3个真实的Blend协议合约 成功测试
  • 所有交易操作 已验证(买入、卖出、取消)
  • 总分:9.5/10 为生产就绪做好准备

SOROBAN_TEST_REPORT.md 以获取全面的测试结果以及 SOROBAN_TEST_SUMMARY.md 以便快速概览。

使用您自己的合约进行测试:

  1. 使用Stellar CLI将Soroban合约部署到测试网
  2. 更新 CONTRACT_IDtest_soroban.py:126
  3. 在测试中更新函数名以匹配您的合约

______________________________________________________________________

资源

星际网络

  • 星际开发者https://developers.stellar.org(译为中文可保持原样,因为网址本身不需要翻译,但若要说明其意义,可表述为:“恒星协议开发者网站”)
  • Stellar SDK 文档https://stellar-sdk.readthedocs.io 的中文翻译可以是:“https://stellar-sdk 官方文档(或类似表述,根据具体语境调整)”。不过,通常我们会直接保留网址不变,仅在需要解释或说明时提供中文描述。所以,如果需要简洁表达,可以直接说“stellar-sdk 官方文档网址”
  • 地平线APIhttps://developers.stellar.org/docs/data/horizon 翻译为中文是:https://stellar开发者官网/数据/地平线(注:这里的“地平线”是“Horizon”的直译,但在实际应用中,可能根据上下文或官方中文名称有所调整,若“Horizon”在该项目中有特定的中文名称,应使用该名称。)
  • 算盘文档(Soroban Docs)https://developers.stellar.org/docs/smart-contracts 翻译为中文是:https://stellar开发者官网/文档/智能合约
  • 测试网浏览器https://stellar.expert/explorer/testnet 翻译为中文是:“星币专家(Stellar)测试网浏览器”
  • USDC水龙头(或USDC发放器,指用于分发USDC代币的网站或工具)https://stellar.org/faucet 翻译为中文是:“https://stellar.org/水龙头(或‘资金发放点’)”。不过,这里的“faucet”在加密货币或区块链的语境下,通常指的是提供免费代币以供测试或使用的服务,所以更贴切的翻译可能是“免费代币发放点”或“测试代币获取处”

MCP与工具

  • FastMCPhttps://github.com/jlowin/fastmcp(可译为):GitHub上的fastmcp项目(或“jlowin的fastmcp仓库”)
  • MCP协议https://modelcontextprotocol.io 翻译为中文是:“模型上下文协议(Model Context Protocol)官方网站”

算盘RPC(注:Soroban在这里可能指的是与算盘相关的某种技术或系统,但直接翻译为“算盘”可能因上下文而异,若Soroban有特定含义,请根据实际情况调整翻译)

  • 测试网RPC(远程过程调用)https://soroban-testnet.stellar.org(译文:星币(Stellar)Soroban测试网网址)
  • 主网RPC(远程过程调用)https://soroban-mainnet.stellar.org 翻译为中文是:“https://stellar.org 的 Soroban 主网(或 主网络)”。不过,通常网址在中文语境下直接保留原样,不进行翻译,所以完整的表述可以是:“网址:https://soroban-mainnet.stellar.org(即 Stellar 的 Soroban 主网)”
  • Soroban CLI(注:Soroban可能指某种特定的软件或工具,CLI代表命令行界面)https://developers.stellar.org/docs/tools/developer-tools 翻译为中文是:https://stellar.org开发者文档/工具/开发者工具

______________________________________________________________________

做出贡献

这是一个正逐步发展为生产用的黑客马拉松项目。关于改进:

  1. ✅ 持久化密钥对存储(已实现)
  2. 添加全面的错误代码
  3. 实施速率限制
  4. 添加认证
  5. 增强日志记录和监控功能
  6. 考虑在主网上支持并附上适当的警告

______________________________________________________________________

许可证

MIT 许可证 - 详情请参见 LICENSE 文件

______________________________________________________________________

致谢

构建于:

  • FastMCP - MCP服务器框架
  • Stellar SDK(Stellar软件开发工具包) - 区块链操作
  • 恒星网络 - 去中心化交易所

交易API设计灵感来源于Stellar原生SDK模式。

______________________________________________________________________

支持

对于问题或疑问:

  1. 检查 Stellar 开发者 Discord
  2. 评论 星际堆栈交换(或译为:星际知识共享问答平台)
  3. 阅读 FastMCP 文档

______________________________________________________________________

准备构建基于人工智能的Stellar交易代理! 🚀 这个表情符号通常表示火箭、快速进展或加速,也可以象征着冲向目标、追求梦想等积极向上的意义。在没有具体上下文的情况下,可以简单翻译为“🚀(火箭/快速进展)”或者根据语境灵活翻译为“冲向目标”、“加速前进”等。

目录标签

目录标签

PythonClaude金融数据区块链服务本地部署智能合约AI代理测试网交易账户管理

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP