关于 gate-mcp-openclaw-installer
用于安装和配置 Gate MCP 服务的技能,面向使用 OpenClaw 与 mcporter 的用户。支持一次安装全部服务或交互式选择,并提供本地与远程 CEX、DEX、信息和新闻服务的连接配置说明。
主要功能
- 01安装全部或选择 Gate 服务
- 02配置本地及远程服务连接
- 03提供 OAuth 与凭据设置说明
- 04包含连接故障排查指引
适用场景
- 01为 OpenClaw 配置 Gate MCP 服务
- 02通过 mcporter 选择性安装服务
- 03设置远程 CEX OAuth 授权
- 04排查服务连接或认证问题
MCP 相关
该技能使用 mcporter 安装和管理 Gate、Gate-Dex、Gate-Info 与 Gate-News 等 MCP 服务。它描述了本地和远程端点及相关认证方式。
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ gate/ gate-skills --skill gate-mcp-openclaw-installer安装后在 Claude Code 中输入/gate-mcp-openclaw-installer确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
CHANGELOG.mdREADME.mdreferences/mcp.mdscripts/install.shpackage.shscripts/mcp-fragments/openclaw/servers.manifest详细介绍
Gate MCP(OpenClaw / mcporter)
通用规则
⚠️ 停止——继续操作前,必须阅读并严格遵守共享运行时规则。 在阅读完所有规则之前,不要选择或调用任何工具。这些规则具有最高优先级。 → 阅读 gate-runtime-rules.md
- 只能调用此技能中明确列出的 MCP 工具。 此处未记录的工具一律不得调用,即使它们 存在于 MCP 服务中也是如此。
MCP 依赖项
必需的 MCP 服务
| MCP 服务 | 状态 |
|---|---|
| Gate(主服务) | ✅ 必需 |
| Gate-Dex | ✅ 必需 |
| Gate-Info | ✅ 必需 |
| Gate-News | ✅ 必需 |
身份验证
- 是否需要 API 密钥:否
安装检查
- 必需:Gate(主服务)、Gate-Dex、Gate-Info、Gate-News
- 安装:运行适用于你的 IDE 的安装器技能
- Cursor:
gate-mcp-cursor-installer - Codex:
gate-mcp-codex-installer - Claude:
gate-mcp-claude-installer - OpenClaw:
gate-mcp-openclaw-installer
- Cursor:
MCP 模式
阅读并严格遵守 references/mcp.md,然后执行此安装器工作流。
SKILL.md保留模式说明、快速入门语义和产品指导。references/mcp.md是 mcporter 安装顺序、身份验证关卡和回退策略的权威执行文档。
快速入门
# Install all Gate MCP servers (default)
./scripts/install.sh
# Selective installation
./scripts/install.sh --select
CEX MCP 模式
| 模式 | mcporter 名称 | 端点 | 身份验证 |
|---|---|---|---|
| 本地 CEX | gate | stdio npx -y gate-mcp | GATE_API_KEY / GATE_API_SECRET(仅使用公开数据时可选) |
| 远程 CEX — 公开 | gate-cex-pub | https://api.gatemcp.ai/mcp | 无 |
| 远程 CEX — 交易所 | gate-cex-ex | https://api.gatemcp.ai/mcp/exchange | Gate OAuth2——添加后运行 mcporter auth gate-cex-ex |
| DEX | gate-dex | https://api.gatemcp.ai/mcp/dex | x-api-key MCP_AK_8W2N7Q + Authorization: Bearer ${GATE_MCP_TOKEN} |
| 信息 | gate-info | https://api.gatemcp.ai/mcp/info | 无 |
| 新闻 | gate-news | https://api.gatemcp.ai/mcp/news | 无 |
详情:gate-mcp README。
MCP 服务(摘要)
| 服务 | 端点 | 身份验证 | 描述 |
|---|---|---|---|
gate | npx -y gate-mcp | API 密钥 + Secret | 本地 CEX(stdio) |
gate-cex-pub | https://api.gatemcp.ai/mcp | 无 | 远程公开市场数据 |
gate-cex-ex | https://api.gatemcp.ai/mcp/exchange | OAuth2(mcporter auth gate-cex-ex) | 远程私有 CEX |
gate-dex | https://api.gatemcp.ai/mcp/dex | x-api-key + Bearer | DEX |
gate-info | https://api.gatemcp.ai/mcp/info | 无 | 信息与分析 |
gate-news | https://api.gatemcp.ai/mcp/news | 无 | 新闻 |
安装模式
1. 安装全部(默认)
./scripts/install.sh
安装所有已配置的服务。添加 gate(本地)时,会提示输入 Gate API 凭据。
2. 选择性安装
./scripts/install.sh --select
# or
./scripts/install.sh -s
通过交互式菜单选择一个服务(1–6)。
常用命令
# Market / info (no auth)
mcporter call gate-info.list_tickers currency_pair=BTC_USDT
mcporter call gate-news.list_news
# Remote CEX public — list tools first, then call cex_* tools
mcporter list gate-cex-pub
# Local CEX trading (requires API keys in mcporter env)
mcporter call gate.list_spot_accounts
# Remote CEX exchange (OAuth2) — authorize first
mcporter auth gate-cex-ex
# DEX (wallet; may require web3 + OAuth)
mcporter call gate-dex.list_balances
API 配置
获取 API 密钥(本地 gate 服务)
- 访问 https://www.gate.com/myaccount/profile/api-key/manage
- 根据需要为 API 密钥设置权限(读取 / 交易 / 提现)。
Gate-Dex 授权
当 gate-dex 查询返回“need authorization”时:(1)如有需要,打开 https://web3.gate.com/ 创建或绑定钱包;(2)通过助手提供的链接完成 OAuth。
远程 CEX 交易所(OAuth2)
安装后,运行 mcporter auth gate-cex-ex,并在浏览器中完成 Gate OAuth2 流程。
凭据存储
安装器会在适用时将凭据存储到 mcporter 配置中。
故障排除
找不到 mcporter
npm install -g mcporter
连接失败
- 检查 API 密钥是否正确(对于
gate) - 对于
gate-cex-ex,运行mcporter auth gate-cex-ex - 检查网络:使用守护进程时运行
mcporter daemon status
References
评论
支持 Markdown