railguey-mcp-cloudflare
railguey-mcp-cloudflare
Railguey クラウド版。Grok と Railway GraphQL を橋渡しする Cloudflare Worker MCP サーバー。
CLI は eidos-agi/railguey にあります。このリポジトリは、Grok が実際にコネクタとして追加できるホスト型 Streamable HTTP MCP です。Railway 純正の MCP(mcp.railway.com)は OAuth/CLI 型で、Grok に直接追加できません。
ライブ Worker: railguey.eidos-agi.workers.dev
MCP: https://railguey.eidos-agi.workers.dev/mcp
プロダクトページ: eidosagi.com/tools/railguey
なぜ別リポジトリなのか
Repo | 説明 |
プロジェクト単位の Railway CLI (Go)。ローカルシェル、GitHub Actions、ワークスペースパスを持つエージェント。 | |
| ホスト型 MCP サーバー (この Worker)。Grok はここで HTTP 通信し、Worker は Railway GraphQL と通信します。 |
Worker スクリプトは Cloudflare 上では引き続き railguey という名前です。この名前は workers.dev のホストであり、wrangler.toml の name と一致する必要があります。GitHub リポジトリは、その内容に応じた名前になっています。
Related MCP server: @crisog/railway-mcp-server
ペアリング(クレームコード)
Railway トークンが Grok チャットを通過することはありません。ペアリングはデバイスコードフローです:
Grok が
account_pair_beginを呼び出します(またはここでコードが発行されます)。この Worker で
/pair/<CODE>を開きます。Railway トークンを貼り付け、アカウントに slug(
eidos、personal、client-acme)を付けます。Worker は Railway に対してトークンを検証し、KV に保存します。Grok は
account_listでそれを確認できます。
コードは10分で期限切れになり、一度きりの使用で、貼り付けに8回失敗すると破棄されます。
アカウントトークン(railway.com/account/tokens)、ワークスペーストークン、プロジェクトトークン(プロジェクト → 設定 → トークン)はすべて受け付けられます。種別が記録されるため、Grok はスコープを把握できます。
複数アカウント
各ペアは名前付きスロットです。Railway ツールはオプションの account slug を受け取ります。1つのスロットがデフォルトになります。
これは CLI のモデル(~/.railguey/accounts.json)と同じです。名前付きアカウント、デフォルト1つという構成を、ホームディレクトリの代わりに Workers KV に保存します。
エンドポイント
GET /— ステータスページGET /health— JSON ヘルス(機密情報なし。ペアリング済みアカウントのメタデータを含む)GET /pair— クレームコードを入力GET|POST /pair/:code— Railway トークンを貼り付けPOST /mcp— MCP Streamable HTTP(認証必須)
シークレットとバインディング
MCP_AUTH_TOKEN— Grok がAuthorization: Bearer …として送信するベアラートークンKV
ACCOUNTS(railguey-accounts)— ペアリング済み Railway トークン、クレームコード、デフォルトの slug
トークンをコミットしないでください。wrangler.toml には KV ネームスペース ID と Cloudflare アカウント ID しかありません。
Grok で接続
grok.com/connectors → コネクタを追加 → その他
サーバー URL:
https://railguey.eidos-agi.workers.dev/mcpヘッダー:
Authorization: Bearer <MCP_AUTH_TOKEN>Grok に Railway アカウントのペアリングを依頼し、返されたクレーム URL を開きます。
デプロイ
main への git push がデプロイです。 このリポジトリは恒久的にライブ Worker に接続されています:
eidos-agi/railguey-mcp-cloudflareのmainにプッシュします(特にindex.js)。Grok オートメーション
railguey-git-deployがそのプッシュで発火し、index.jsを Workerrailgueyにアップロードして、KV とMCP_AUTH_TOKENを維持します。プッシュイベントを取り逃した場合、毎時のバックアップが
mainを再デプロイします。
GitHub には Cloudflare API トークンはありません。Cloudflare GitHub App もありません。MCP の動作を変更するには index.js を編集してプッシュします。
loader.js は Dynamic Worker Loader(エッジでの git-pull)です。これはライブではありません — この Cloudflare アカウントは無料の Workers プラン(API 10195)にあります。wrangler.toml の main は index.js のままです。
name = "railguey" は変更してはいけません。Worker の名前を変更すると、ライブホストと Grok のコネクタ URL が壊れます。
ライセンス
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Host your MCP tool over streamable HTTP in one command.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of Railway infrastructure, including projects, services, variables, and deployments, directly through the Railway GraphQL API. It is designed to work as a remote service over HTTP, allowing seamless integration with cloud-based MCP clients like claude.ai.MIT
- AlicenseNot gradedqualityDmaintenanceUnofficial MCP server for Railway that enables managing Railway infrastructure through natural language, including projects, services, deployments, environments, variables, templates, domains, volumes, observability, integrations, networking, and workflows.64 npm2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes the Railway API as tools for Claude. Manage Railway projects, services, deployments, variables, environments, and domains directly from Claude.16 npmMIT
- FlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that gives Claude (and other MCP-compatible AI tools) full access to your Railway.app infrastructure. Deploy, manage services, check logs, configure environment variables — all through natural conversation.3010 npm-