mcpField
G
gate-mcp-installer

gate-mcp-installer

github.com/gateエージェントワークフロー48144 回インストール18 週間前に更新
リポジトリ

gate-mcp-installer について

gate-mcp-installerは、Cursor、Claude Code、Codex、OpenClaw向けにGate MCPサーバーと関連スキルを導入・設定するスキルです。MCPサーバーを選択でき、DEXの導入時にはGate Verifyも設定します。

主な機能

  1. 014つのクライアント向けMCP設定
  2. 02導入するMCPサーバーの選択
  3. 03Gate Pay MCPの任意導入
  4. 04関連スキルの導入またはMCPのみ設定
  5. 05DEX導入時にGate Verifyを追加

活用シーン

  1. 01CursorやClaude CodeでGate MCPを設定
  2. 02Codex向けにGate MCPサーバーを設定
  3. 03OpenClawに指定したGate MCPを導入
  4. 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.md
README.md
references/
mcp.md
scripts/
install.sh
scripts/mcp-fragments/claude/
gate-cex-ex.json
gate-cex-pub.json
gate-dex.json
gate-info.json
gate-main-gate-mcp.json
gate-main-npx.json
gate-news.json
gate-verify.json
gatepay-local-mcp.json
gatepay-merchant-discovery.json
scripts/mcp-fragments/codex/
gate-cex-ex.toml
gate-cex-pub.toml
gate-dex.toml
gate-info.toml
gate-main-gate-mcp-placeholder.toml
gate-main-npx-placeholder.toml
gate-news.toml
gate-verify.toml
gatepay-local-mcp.toml
gatepay-merchant-discovery.toml
scripts/mcp-fragments/cursor/
gate-cex-ex.json
gate-cex-pub.json
gate-dex.json
gate-info.json
gate-main-gate-mcp.json
gate-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/
OpenClawmcporter CLI(単一の JSON ファイルはありません)~/.openclaw/skills/(デフォルト)

CEX MCP モード

gate-mcp を参照してください。

モード内容認証
ローカル CEXstdio 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 Verifygate-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 スキル。


リソース

種類名前備考
MCPGate (main)stdio。インストール済みの場合はグローバルの gate-mcp を優先します
MCPgate-cex-pubHTTP リモートパブリック
MCPgate-cex-exHTTP リモートプライベート + OAuth2
MCPgate-dexHTTP + ヘッダー
MCPgate-dex-secHTTP https://api.gatemcp.ai/mcp/dex/sec。署名の前に tx_checkin を実行してください — dex のインストールに含まれます
MCPgate-info / gate-newsHTTP
MCPgatepay-local-mcpstdio npx -y gatepay-local-mcp。ウォレットの env は gate-pay-x402 に従って設定します
MCPgatepay-merchant-discoveryHTTP http://dev.halftrust.xyz/pay-mcp-server/mcp。カタログのみ (gate-pay-x402)
スキルgate-dex-walletVerify MCP + ウォレットのフローへのルーティング — references/tx-checkin.md
スキルgate-skillshttps://github.com/gate/gate-skills

動作ルール

  1. デフォルト: ユーザーがオプトアウトしない限り、取引関連の MCP サーフェス 6 つすべて + Gate Verify(dex に含まれます)+ gate-skills をすべてインストールします。Gate Pay MCP はデフォルトでは含まれません。必要に応じて --mcp gatepay-local(x402 stdio)および/または --mcp gatepay-discovery(リモートの加盟店カタログ)を追加してください。dex を省略すると、Verify MCP の項目も省略されます。
  2. 選択可能: --mcp main|cex-public|cex-exchange|dex|info|news|gatepay-local|gatepay-discovery(複数回指定できます)。
  3. スキル: --no-skills を指定すると、MCP 設定のみをインストールします。
  4. 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-wallet references/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。後方互換性のため、これらのディレクトリには短いリダイレクト用スタブが残されている場合があります。

コメント