gate-mcp-installer について
gate-mcp-installerは、Cursor、Claude Code、Codex、OpenClaw向けにGate MCPサーバーと関連スキルを導入・設定するスキルです。MCPサーバーを選択でき、DEXの導入時にはGate Verifyも設定します。
主な機能
- 014つのクライアント向けMCP設定
- 02導入するMCPサーバーの選択
- 03Gate Pay MCPの任意導入
- 04関連スキルの導入またはMCPのみ設定
- 05DEX導入時にGate Verifyを追加
活用シーン
- 01CursorやClaude CodeでGate MCPを設定
- 02Codex向けにGate MCPサーバーを設定
- 03OpenClawに指定したGate MCPを導入
- 04トランザクション確認付きのDEXツールを導入
MCP 対応
対応クライアントにローカルstdioおよびリモートHTTPのGate MCPサーバーを設定します。CEX、DEX、情報、ニュース、および任意のGate Payサービスを導入できます。
インストール
コマンドをコピーしてターミナルで実行します。
npx skills add https:/ / github.com/ gate/ gate-skills --skill gate-mcp-installerインストール後、Claude Code で/gate-mcp-installerを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
CHANGELOG.mdREADME.mdreferences/mcp.mdscripts/install.shscripts/mcp-fragments/claude/gate-cex-ex.jsongate-cex-pub.jsongate-dex.jsongate-info.jsongate-main-gate-mcp.jsongate-main-npx.jsongate-news.jsongate-verify.jsongatepay-local-mcp.jsongatepay-merchant-discovery.jsonscripts/mcp-fragments/codex/gate-cex-ex.tomlgate-cex-pub.tomlgate-dex.tomlgate-info.tomlgate-main-gate-mcp-placeholder.tomlgate-main-npx-placeholder.tomlgate-news.tomlgate-verify.tomlgatepay-local-mcp.tomlgatepay-merchant-discovery.tomlscripts/mcp-fragments/cursor/gate-cex-ex.jsongate-cex-pub.jsongate-dex.jsongate-info.jsongate-main-gate-mcp.jsongate-main-npx.json詳細
Gate MCP インストーラー(統合版:Cursor / Claude Code / Codex / OpenClaw)
一般ルール
⚠️ 停止 — 続行する前に、共有ランタイムルールを必ず読み、厳密に遵守してください。 すべてのルールを読むまで、ツールを選択したり呼び出したりしないでください。これらのルールは最優先です。 → gate-runtime-rules.md をお読みください。
- このスキルに明示的に記載されている MCP ツールのみを呼び出してください。 ここに記載されていないツールは、MCP サーバーに存在していても呼び出してはいけません。
MCP 依存関係
必須の MCP サーバー(インストール後)
| MCP サーバー | ステータス |
|---|---|
| Gate(メイン) | ✅ ローカル CEX(stdio)用 |
| gate-cex-pub | ✅ リモート公開 |
| gate-cex-ex | ✅ リモート非公開(OAuth2) |
| gate-dex | ✅ DEX |
| gate-info | ✅ 情報 |
| gate-news | ✅ ニュース |
| gatepay-local-mcp | ➕ オプション(Gate Pay x402 stdio;--mcp gatepay-local) |
| gatepay-merchant-discovery | ➕ オプション(HTTP 加盟店カタログ/discoveryResource;--mcp gatepay-discovery) |
| Gate Verify(tx check-in) | ✅ HTTP MCP https://api.gatemcp.ai/mcp/dex/sec — dex がインストールされている場合は常に gate-dex-sec として統合(Cursor / Claude / Codex / mcporter);gate-dex-wallet に従い tx_checkin//v1/tx/checkin を呼び出します |
インストールの確認
- このスキルのインストーラースクリプトを実行するか、ユーザーに実行するよう案内してください。
- 1 台のマシンに複数の開発環境(例:Cursor と Claude Code)がある場合、スクリプトで
--platformが必要です。
MCP モード
references/mcp.md を読み、厳密に遵守してから、このインストーラーワークフローを実行してください。
SKILL.md— 製品の対象範囲、トリガー、ユーザー向けガイダンス。references/mcp.md— 各プラットフォームの実行手順、検証、安全ルール。
プラットフォーム一覧
| プラットフォーム | MCP/トランスポート設定 | スキルディレクトリ |
|---|---|---|
| Cursor | ~/.cursor/mcp.json(Windows:%APPDATA%\Cursor\mcp.json) | ~/.cursor/skills/ |
| Claude Code | ~/.claude.json(mcpServers) | ~/.claude/skills/ |
| Codex | ~/.codex/config.toml([mcp_servers.*]) | ~/.codex/skills/ |
| OpenClaw | mcporter CLI(単一の JSON ファイルはありません) | ~/.openclaw/skills/(デフォルト) |
CEX MCP モード
gate-mcp を参照してください。
| モード | 内容 | 認証 |
|---|---|---|
| ローカル CEX | stdio npx -y gate-mcp(またはグローバルの gate-mcp) | GATE_API_KEY/GATE_API_SECRET(任意) |
| リモート公開 | https://api.gatemcp.ai/mcp | なし |
| リモート取引所 | https://api.gatemcp.ai/mcp/exchange | クライアント内の Gate OAuth2/mcporter auth gate-cex-ex |
CEX 以外(同一ホスト):Dex(/mcp/dex)、Info(/mcp/info)、News(/mcp/news)。Dex では、固定の x-api-key MCP_AK_8W2N7Q と、該当する場合は Bearer ${GATE_MCP_TOKEN} を使用します。
Tx check-in(Gate Verify/GV)
Gate Verify はリモート DEX と同一ホスト上の2 つ目の HTTP MCPで、署名の check-in 専用に使用します。
| 役割 | インストール先 |
|---|---|
| ウォレット/DEX ツール | gate-dex → https://api.gatemcp.ai/mcp/dex(フラグメントに従ったヘッダー) |
| Gate Verify | gate-dex-sec → https://api.gatemcp.ai/mcp/dex/sec(URL のみ/streamable-http;このエントリーにはウォレット用 HTTP ヘッダーはありません) |
このインストーラーは、--mcp dex が含まれている場合は常に Verify MCP を追加します(デフォルトのフルインストールにも含まれます)。エージェントは、ウォレット MCP ツールの引数と同じ mcp_token を authorization に設定し、Verify サーバーで tx_checkin または /v1/tx/checkin を呼び出します。詳しくは gate-dex-wallet references/tx-checkin.md を参照してください。段階的スワップの詳細:gate-dex-trade スキル。
リソース
| 種類 | 名前 | 備考 |
|---|---|---|
| MCP | Gate (main) | stdio。インストール済みの場合はグローバルの gate-mcp を優先します |
| MCP | gate-cex-pub | HTTP リモートパブリック |
| MCP | gate-cex-ex | HTTP リモートプライベート + OAuth2 |
| MCP | gate-dex | HTTP + ヘッダー |
| MCP | gate-dex-sec | HTTP https://api.gatemcp.ai/mcp/dex/sec。署名の前に tx_checkin を実行してください — dex のインストールに含まれます |
| MCP | gate-info / gate-news | HTTP |
| MCP | gatepay-local-mcp | stdio npx -y gatepay-local-mcp。ウォレットの env は gate-pay-x402 に従って設定します |
| MCP | gatepay-merchant-discovery | HTTP http://dev.halftrust.xyz/pay-mcp-server/mcp。カタログのみ (gate-pay-x402) |
| スキル | gate-dex-wallet | Verify MCP + ウォレットのフローへのルーティング — references/tx-checkin.md |
| スキル | gate-skills | https://github.com/gate/gate-skills |
動作ルール
- デフォルト: ユーザーがオプトアウトしない限り、取引関連の MCP サーフェス 6 つすべて + Gate Verify(
dexに含まれます)+ gate-skills をすべてインストールします。Gate Pay MCP はデフォルトでは含まれません。必要に応じて--mcp gatepay-local(x402 stdio)および/または--mcp gatepay-discovery(リモートの加盟店カタログ)を追加してください。dexを省略すると、Verify MCP の項目も省略されます。 - 選択可能:
--mcp main|cex-public|cex-exchange|dex|info|news|gatepay-local|gatepay-discovery(複数回指定できます)。 - スキル:
--no-skillsを指定すると、MCP 設定のみをインストールします。 - OpenClaw:
--select/-sを指定すると、対話式の単一サーバーメニューが維持されます(mcporter の従来の UX)。
インストーラースクリプト
パス: skills/gate-mcp-installer/scripts/install.sh
# Auto-detect when only one environment matches
bash skills/gate-mcp-installer/scripts/install.sh
# Force platform (required if multiple clients detected)
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor
bash skills/gate-mcp-installer/scripts/install.sh --platform claude
bash skills/gate-mcp-installer/scripts/install.sh --platform codex
bash skills/gate-mcp-installer/scripts/install.sh --platform openclaw
# Subset of MCPs
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor --mcp main --mcp dex
# Gate Pay x402 (stdio) alongside trading MCPs
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor --mcp gatepay-local
# With --mcp main, the script prompts for GATE_API_KEY (CEX local MCP only); gatepay-local-mcp env is separate (gate-pay-x402).
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor --mcp main --mcp gatepay-local
# Gate Pay merchant discovery (HTTP; discoveryResource) — often paired with gatepay-local
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor --mcp gatepay-discovery
bash skills/gate-mcp-installer/scripts/install.sh --platform cursor --mcp gatepay-local --mcp gatepay-discovery --no-skills
# MCP only
bash skills/gate-mcp-installer/scripts/install.sh --no-skills
# OpenClaw interactive pick
bash skills/gate-mcp-installer/scripts/install.sh --platform openclaw --select
OpenClaw クイックコマンド (mcporter)
mcporter list gate-cex-pub
mcporter call gate-info.list_tickers currency_pair=BTC_USDT
mcporter call gate-news.list_news
mcporter call gate.list_spot_accounts
mcporter auth gate-cex-ex
mcporter call gate-dex.list_balances
インストール後(すべてのプラットフォーム)
- MCP の一覧を再読み込みするため、IDE/クライアントを再起動するか、新しいセッションを開始してください。
- API Key: ローカルの取引
Gate (main)用。https://www.gate.com/myaccount/profile/api-key/manage - gate-cex-ex: クライアントのプロンプトに従って OAuth2 を設定します。OpenClaw の場合:
mcporter auth gate-cex-ex。 - gate-dex: ウォレット用の https://web3.gate.com/。ツールで求められた場合は OAuth を完了してください。
- Gate Verify (
gate-dex-sec):dexと統合されています。署名またはdex_tx_x402_fetchの前に、この MCP でauthorization= ウォレットのmcp_tokenを指定してtx_checkin//v1/tx/checkinを呼び出してください(ツール引数で指定し、HTTP ヘッダーをコピーしないでください)— gate-dex-walletreferences/tx-checkin.md。 - gatepay-local-mcp: stdio の Gate Pay x402。クライアント設定の
envプレースホルダーには、ローカルでのみ実際の値を設定してください — gate-pay-x402 を参照(PLUGIN_WALLET_TOKEN、EVM_PRIVATE_KEY、SVM_PRIVATE_KEY、任意のPAYMENT_METHOD_PRIORITY)。 - gatepay-merchant-discovery: リモート URL のみ(インストーラーにシークレットはありません)。支払い可能なリソースを一覧表示します — ライブのツール一覧でツール名(
discoveryResource)を確認してください(gate-pay-x402)。接続に失敗する場合は、ホストに合わせて JSON のtransportを調整してください(この例では、他の Gate HTTP MCP と同様にstreamable-httpを使用しています)。
このスキルに置き換えられるもの
このスキルは、次のものに置き換わります: gate-mcp-cursor-installer、gate-mcp-claude-installer、gate-mcp-codex-installer、gate-mcp-openclaw-installer。後方互換性のため、これらのディレクトリには短いリダイレクト用スタブが残されている場合があります。