Skip to main content
Glama
Zetrix-Chain

z2-trade-trust-mcp

Official
by Zetrix-Chain

z2-trade-trust-mcp

MCP(模型上下文协议)服务器,将 Zetrix L2 上的 TradeTrust 文档/电子提单操作暴露为 MCP 工具——一个基于 core-engine REST API 的轻量级、HMAC 签名的客户端。读取工具(验证、状态、最终性查询)仅需 baseUrl 即可工作;写入/工作流工具(签发、铸造、转让、签名)为可选加入,需要调用者身份。

安装

npm install

同时以 zetrix-tradetrust-mcp 发布在 npm 上。

Related MCP server: Mina MCP Server

配置

export Z2TT_ENV="z2-testnet"       # or "z2-mainnet" -- shortcut for the known core-engine deployments
# export Z2TT_BASE_URL="https://core-engine.example/api/z2-core-engine"  # custom deployment instead
export Z2TT_CALLER_ID="z2-trade-trust-mcp"
export Z2TT_HMAC_SECRET="…"        # issued out-of-band by whoever operates the deployment
export Z2TT_ALLOW_WRITES="true"    # omit/false to register read-only tools

或者将 Z2TT_PROFILE 指向一个 JSON 文件:

{
  "baseUrl": "https://core-engine.example/api/z2-core-engine",
  "callerId": "z2-trade-trust-mcp",
  "hmacSecret": "…"
}

运行

npm run build
node dist/index.js

或者直接从源码运行 npm run dev(无需构建步骤)。无论哪种方式,进程都会监听标准输入/输出——成功时不会打印任何内容,因为 MCP 客户端会启动它并通过 stdin/stdout 进行协议通信,而不是通过人类终端会话。

注册到 MCP 客户端

{
  "mcpServers": {
    "z2-trade-trust-mcp": {
      "command": "node",
      "args": ["/abs/path/dist/index.js"],
      "env": {
        "Z2TT_BASE_URL": "https://core-engine.example/api/z2-core-engine",
        "Z2TT_CALLER_ID": "z2-trade-trust-mcp",
        "Z2TT_HMAC_SECRET": "…",
        "Z2TT_ALLOW_WRITES": "false"
      }
    }
  }
}

OpenClaw

如果客户端是 OpenClaw,请跳过手动配置 mcpServers,而是安装 openclaw-plugin/——openclaw plugins install ./openclaw-plugin 会自动注册此服务器,并将相同的配置暴露为插件设置(network/baseUrl/callerId/hmacSecret/allowWrites)。

许可证

MIT — 参见 LICENSE

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Exposes Mina blockchain data and operations through 40+ MCP tools, supporting live public networks, a local tutorial lightnet, and archive snapshot analysis.
    5
    112
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for TracePass — the EU Digital Product Passport platform. Create products, build and audit DPPs, set economic-operator parties, and read/capture GS1 EPCIS 2.0 supply-chain events.
    6
    542
    1
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zetrix-Chain/zetrix-tradetrust-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server