Gate Claude Code One-Click Installer (MCP + Skills)
简介
Gate Claude Code One-Click Installer (MCP + Skills)
原始描述
Gate MCP and Gate skills installer for Claude Code (CLI). Use when the user asks to install Gate tools in Claude Code. Triggers on 'install Gate MCP Claude',...
通过你的 Agent 添加
安装目录:gate-claude-code-one-click-installer-mcp-skills/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: gate-mcp-claude-installer
description: One-click installer for Gate MCP and all Gate Skills in Claude Code (Claude CLI). Installs Gate MCP servers (main/dex/info/news, selectable) and all skills from the gate-skills repository. Installs all MCPs + all skills by default; skills are always fully installed.
Gate One-Click Installer (Claude Code: MCP + Skills)
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).
Resources
Type
Name
Endpoint / Config
MCP
Gate (main)
npx -y gate-mcp, see gate-mcp
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/)
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
--no-skills is passed, always install all skills from the gate-skills repository's skills/ directory.
Installation Steps
1. Confirm User Selection (MCPs)
- 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.
2. Write Claude Code MCP Config
- User-level config:
~/.claude.json (Windows: %USERPROFILE%\.claude.json). If using directory format, use the corresponding config under ~/.claude/.
- If it already exists, merge into the existing
mcpServers; do not overwrite other MCPs.
- Config details:
- Gate (main): stdio,
command: npx, args: ["-y", "gate-mcp"]
- Gate-Dex: http,
url + headers["x-api-key"] fixed as MCP_AK_8W2N7Q + headers["Authorization"] = Bearer ${GATE_MCP_TOKEN}
- Gate-Info / Gate-News: http,
url
3. Install gate-skills (all)
| Type | Name | Endpoint / Config |
|---|---|---|
| MCP | Gate (main) | npx -y gate-mcp, see gate-mcp |
| 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/) |
- 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
--no-skillsis passed, always install all skills from the gate-skills repository's skills/ directory.
Installation Steps
1. Confirm User Selection (MCPs)
- 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.
2. Write Claude Code MCP Config
~/.claude.json (Windows: %USERPROFILE%\.claude.json). If using directory format, use the corresponding config under ~/.claude/.mcpServers; do not overwrite other MCPs.- Gate (main): stdio,
command: npx,args: ["-y", "gate-mcp"] - Gate-Dex: http,
url+headers["x-api-key"]fixed as MCP_AK_8W2N7Q +headers["Authorization"]=Bearer ${GATE_MCP_TOKEN} - Gate-Info / Gate-News: http,
url
- Pull all subdirectories under skills/ from https://github.com/gate/gate-skills and copy them to
~/.claude/skills/(or the corresponding directory for the current environment). - Add
--no-skillswhen using the script to install MCP only without skills.
4. Post-Installation Prompt
- 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
GATE_API_KEY and 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.
Script
GATE_API_KEY and GATE_API_SECRET.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 no--mcpis passed; pass multiple--mcpto install only specified ones;--no-skillsinstalls MCP only. - The DEX x-api-key is fixed as
MCP_AK_8W2N7Qand written to the config.
After downloading this skill from GitHub, run from the repository root:
bash skills/gate-mcp-claude-installer/scripts/install.sh
Or (MCP only):
bash skills/gate-mcp-claude-installer/scripts/install.sh --no-skills
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。