gate-mcp-claude-installer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGate One-Click Installer (Claude Code: MCP + Skills)
Gate一键安装器(Claude Code:MCP + 技能)
Use this skill when the user says "one-click install Gate", "install Gate MCP and skills", "Claude install gate-mcp", etc., and is using Claude Code (Claude CLI).
当用户提及“一键安装Gate”、“安装Gate MCP和技能”、“Claude安装gate-mcp”等需求,且正在使用**Claude Code(Claude CLI)**时,使用本技能。
Resources
资源
| Type | Name | Endpoint / Config |
|---|---|---|
| MCP | Gate (main) | |
| MCP | Gate Dex | https://api.gatemcp.ai/mcp/dex, fixed x-api-key |
| MCP | Gate Info | https://api.gatemcp.ai/mcp/info |
| MCP | Gate News | https://api.gatemcp.ai/mcp/news |
| Skills | gate-skills | https://github.com/gate/gate-skills (installs all under skills/) |
| 类型 | 名称 | 端点 / 配置 |
|---|---|---|
| MCP | Gate(主网) | |
| MCP | Gate Dex | https://api.gatemcp.ai/mcp/dex,固定x-api-key |
| MCP | Gate Info | https://api.gatemcp.ai/mcp/info |
| MCP | Gate News | https://api.gatemcp.ai/mcp/news |
| 技能 | gate-skills | https://github.com/gate/gate-skills(安装skills/目录下所有内容) |
Behavior Rules
行为规则
- Default: When the user does not specify which MCPs to install, install all MCPs (main, dex, info, news) + all gate-skills.
- Selectable MCPs: Users can choose to install only specific MCPs (e.g. main only, dex only, etc.); follow the user's selection.
- Skills: Unless is passed, always install all skills from the gate-skills repository's skills/ directory.
--no-skills
- 默认配置:当用户未指定要安装的MCP时,安装所有MCP(主网、dex、资讯、新闻) + 所有gate-skills。
- MCP可自选:用户可以选择仅安装特定MCP(例如仅主网、仅dex等),遵循用户选择执行。
- 技能安装:除非传入参数,否则始终安装gate-skills仓库skills/目录下的所有技能。
--no-skills
Installation Steps
安装步骤
1. Confirm User Selection (MCPs)
1. 确认用户选择(MCP部分)
- If the user does not specify which MCPs -> install all: main, dex, info, news.
- If the user specifies "only install xxx" -> install only the specified MCPs.
- 若用户未指定要安装的MCP -> 全量安装:主网、dex、资讯、新闻。
- 若用户指定“仅安装xxx” -> 仅安装指定的MCP。
2. Write Claude Code MCP Config
2. 编写Claude Code MCP配置
- User-level config: (Windows:
~/.claude.json). If using directory format, use the corresponding config under%USERPROFILE%\.claude.json.~/.claude/ - If it already exists, merge into the existing ; do not overwrite other MCPs.
mcpServers - Config details:
- Gate (main): stdio, ,
command: npxargs: ["-y", "gate-mcp"] - Gate-Dex: http, +
urlfixed as MCP_AK_8W2N7Q +headers["x-api-key"]=headers["Authorization"]Bearer ${GATE_MCP_TOKEN} - Gate-Info / Gate-News: http,
url
- Gate (main): stdio,
- 用户级配置路径:(Windows:
~/.claude.json)。如果使用目录格式配置,请使用%USERPROFILE%\.claude.json下的对应配置文件。~/.claude/ - 如果配置已存在,合并到现有中;不要覆盖其他MCP配置。
mcpServers - 配置详情:
- Gate(主网):stdio模式,,
command: npxargs: ["-y", "gate-mcp"] - Gate-Dex:http模式,+
url固定为MCP_AK_8W2N7Q +headers["x-api-key"]=headers["Authorization"]Bearer ${GATE_MCP_TOKEN} - Gate-Info / Gate-News:http模式,
url
- Gate(主网):stdio模式,
3. Install gate-skills (all)
3. 安装gate-skills(全量)
- Pull all subdirectories under skills/ from https://github.com/gate/gate-skills and copy them to (or the corresponding directory for the current environment).
~/.claude/skills/ - Add when using the script to install MCP only without skills.
--no-skills
- 拉取https://github.com/gate/gate-skills仓库中**skills/**目录下的所有子目录,复制到`~/.claude/skills/`(或当前环境对应的目录)。
- 运行脚本时添加参数可仅安装MCP,不安装技能。
--no-skills
4. Post-Installation Prompt
4. 安装后提示
- Inform the user of the installed MCP list and "all gate-skills have been installed" (unless --no-skills was used).
- Prompt to reopen Claude Code or start a new session to load the MCPs.
- Getting API Key: If the user uses Gate (main) for spot/futures trading, prompt them to visit https://www.gate.com/myaccount/profile/api-key/manage to create an API Key and set and
GATE_API_KEY.GATE_API_SECRET - Gate-Dex Authorization: If Gate-Dex was installed and a query returns an authorization required message, prompt the user to first open https://web3.gate.com/ to create or bind a wallet, then the assistant will return a clickable Google authorization link for the user to complete OAuth.
- 告知用户已安装的MCP列表,以及“所有gate-skills已安装完成”(除非使用了--no-skills参数)。
- 提示用户重启Claude Code或开启新会话以加载MCP。
- 获取API Key:如果用户使用Gate(主网)进行现货/合约交易,提示用户访问https://www.gate.com/myaccount/profile/api-key/manage 创建API Key,并设置和
GATE_API_KEY环境变量。GATE_API_SECRET - Gate-Dex授权:如果安装了Gate-Dex且查询返回需要授权的消息,提示用户先打开https://web3.gate.com/ 创建或绑定钱包,随后助手会返回可点击的Google授权链接,供用户完成OAuth验证。
Script
脚本
Use the scripts/install.sh in this skill directory for one-click installation.
- Usage:
./scripts/install.sh [--mcp main|dex|info|news] ... [--no-skills]
Installs all MCPs when nois passed; pass multiple--mcpto install only specified ones;--mcpinstalls MCP only.--no-skills - The DEX x-api-key is fixed as and written to the config.
MCP_AK_8W2N7Q
After downloading this skill from GitHub, run from the repository root:
Or (MCP only):
bash skills/gate-mcp-claude-installer/scripts/install.shOr (MCP only):
bash skills/gate-mcp-claude-installer/scripts/install.sh --no-skills使用本技能目录下的scripts/install.sh进行一键安装。
- 使用方法:
./scripts/install.sh [--mcp main|dex|info|news] ... [--no-skills]
未传入参数时安装所有MCP;传入多个--mcp参数可仅安装指定MCP;--mcp参数表示仅安装MCP。--no-skills - DEX的x-api-key固定为,会自动写入配置。
MCP_AK_8W2N7Q
从GitHub下载本技能后,在仓库根目录运行:
或(仅安装MCP):
bash skills/gate-mcp-claude-installer/scripts/install.sh或(仅安装MCP):
bash skills/gate-mcp-claude-installer/scripts/install.sh --no-skills