gate-mcp-cursor-installer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate One-Click Installer (MCP + Skills)

Gate一键安装工具(MCP + 技能)

Use this skill when the user says "one-click install Gate", "install Gate MCP and skills", "install gate-mcp", etc.
当用户说出「一键安装Gate」、「安装Gate MCP和技能」、「安装gate-mcp」等内容时使用本技能。

Resources

资源

TypeNameEndpoint / Config
MCPGate (main)
npx -y gate-mcp
, see gate-mcp
MCPGate Dexhttps://api.gatemcp.ai/mcp/dex, fixed x-api-key
MCPGate Infohttps://api.gatemcp.ai/mcp/info
MCPGate Newshttps://api.gatemcp.ai/mcp/news
Skillsgate-skillshttps://github.com/gate/gate-skills (installs all under skills/)

Behavior Rules

行为规则

  1. Default: When the user does not specify which MCPs to install, install all MCPs (main, dex, info, news) + all gate-skills.
  2. Selectable MCPs: Users can choose to install only specific MCPs (e.g. main only, dex only, etc.); follow the user's selection.
  3. Skills: Unless
    --no-skills
    is passed, always install all skills from the gate-skills repository's skills/ directory.
  1. 默认配置:当用户未指定要安装的MCP时,安装全部MCP(main、dex、info、news)+ 所有gate-skills
  2. MCP可自定义选择:用户可以选择仅安装特定的MCP(例如仅main、仅dex等);请遵循用户的选择执行。
  3. 技能安装规则:除非传入
    --no-skills
    参数,否则始终完整安装gate-skills仓库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 -> 安装全部:main、dex、info、news。
  • 如果用户指定「仅安装xxx」 -> 仅安装指定的MCP。

2. Write Cursor MCP Config

2. 写入Cursor MCP配置

  • Config file:
    ~/.cursor/mcp.json
    (Windows:
    %APPDATA%\Cursor\mcp.json
    ).
  • If it already exists, merge into the existing
    mcpServers
    ; do not overwrite other MCPs.
  • Config details:
    • Gate (main):
      command: npx
      ,
      args: ["-y", "gate-mcp"]
    • Gate-Dex:
      url
      +
      transport: streamable-http
      +
      headers["x-api-key"]
      fixed as MCP_AK_8W2N7Q +
      headers["Authorization"]
      =
      Bearer ${GATE_MCP_TOKEN}
    • Gate-Info / Gate-News:
      url
      +
      transport: streamable-http
  • 配置文件路径:
    ~/.cursor/mcp.json
    (Windows系统:
    %APPDATA%\Cursor\mcp.json
    )。
  • 如果配置文件已存在,将配置合并到已有的
    mcpServers
    中;不要覆盖其他MCP的配置。
  • 配置详情:
    • Gate (main)
      command: npx
      args: ["-y", "gate-mcp"]
    • Gate-Dex
      url
      +
      transport: streamable-http
      +
      headers["x-api-key"]
      固定为MCP_AK_8W2N7Q +
      headers["Authorization"]
      =
      Bearer ${GATE_MCP_TOKEN}
    • Gate-Info / Gate-News
      url
      +
      transport: streamable-http

3. Install gate-skills (all)

3. 安装全部gate-skills

  • Pull all subdirectories under skills/ from https://github.com/gate/gate-skills and copy them to
    ~/.cursor/skills/
    (or the corresponding directory for the current environment).
  • Add
    --no-skills
    when using the script to install MCP only without 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 restart Cursor.
  • 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

脚本

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
    --mcp
    is passed; pass multiple
    --mcp
    to install only specified ones;
    --no-skills
    installs MCP only.
  • The DEX x-api-key is fixed as
    MCP_AK_8W2N7Q
    and written to mcp.json.
After downloading this skill from GitHub, run from the repository root:
bash scripts/install.sh

Or (MCP only):
bash scripts/install.sh --no-skills
使用本技能目录下的scripts/install.sh进行一键安装。
  • 用法:
    ./scripts/install.sh [--mcp main|dex|info|news] ... [--no-skills]

    未传入
    --mcp
    参数时安装全部MCP;传入多个
    --mcp
    参数可仅安装指定的MCP;
    --no-skills
    参数表示仅安装MCP。
  • DEX的x-api-key固定为
    MCP_AK_8W2N7Q
    ,会自动写入mcp.json文件。
从GitHub下载本技能后,在仓库根目录执行:
bash scripts/install.sh

或(仅安装MCP):
bash scripts/install.sh --no-skills