loading…
Search for a command to run...
loading…
Enables managing Firefox Relay masks (random and domain) via MCP tools, including listing, creating, updating, and disabling masks.
Enables managing Firefox Relay masks (random and domain) via MCP tools, including listing, creating, updating, and disabling masks.
Stateless Streamable HTTP MCP gateway for Firefox Relay, built for Cloudflare Workers.
S256) for MCP clients/mcpMCP Server URL: https://your-worker.example.com/mcp
Authorization server base URL: https://your-worker.example.com
Resource: https://your-worker.example.com/mcp
/mcpUsers can find the Firefox Relay API key in Firefox Relay under profile icon → Settings.
relay_list_random_masksrelay_create_random_maskrelay_update_random_maskrelay_disable_random_maskrelay_list_domain_masksnpm install
wrangler.toml or via deploy-time environment overrides.npm run dev for local testing.npm test and npm run typecheck.npm run deploy.Update wrangler.toml or your deployment environment with:
OAUTH_ISSUERMCP_RESOURCEMCP_AUDIENCEOAUTH_REDIRECT_HTTPS_HOSTSRELAY_DEFAULT_BASE_URLACCESS_TOKEN_DEFAULT_TTL_DAYSACCESS_TOKEN_MAX_TTL_DAYSAUTH_CODE_TTL_SECONDSFor public release, wrangler.toml intentionally uses placeholder URLs. Set these to your real deployment values before production deploys:
OAUTH_ISSUER=https://your-worker.example.comMCP_RESOURCE=https://your-worker.example.com/mcpMCP_AUDIENCE=https://your-worker.example.com/mcpGenerate and pipe each secret directly into Wrangler:
openssl rand -base64 48 | tr -d '\n' | wrangler secret put OAUTH_JWT_SIGNING_KEY_B64
openssl rand -base64 32 | tr -d '\n' | wrangler secret put UPSTREAM_CONFIG_ENC_KEY_B64
openssl rand -base64 48 | tr -d '\n' | wrangler secret put CSRF_SIGNING_KEY_B64
If you do not know the final public Worker URL yet, use this order:
workers.dev URL.OAUTH_ISSUER, MCP_RESOURCE, and MCP_AUDIENCE values.npm run dev
npm test
npm run typecheck
npm run deploy
After deployment, configure remote MCP clients with:
MCP Server URL: https://your-worker.example.com/mcp
Authorization server base URL: https://your-worker.example.com
Resource: https://your-worker.example.com/mcp
/register issues deterministic public client_id values for allowlisted redirect URIs/authorize validates PKCE S256, renders consent, validates the Firefox Relay API key, and issues a short-lived signed auth-code JWT/token exchanges the auth code for bearer access and refresh JWTs/mcp verifies the access token, decrypts the Relay config, creates a fresh Worker-safe MCP server and transport, and serves the request/authorize with a Firefox Relay API key./token./mcp with the returned bearer token.docs/PRODUCT_REQUIREMENTS.mddocs/IMPLEMENTATION_PLAN.mddocs/PROJECT_STATE.mddocs/DECISIONS.mddocs/RUNBOOK.mdSee CONTRIBUTING.md.
See SECURITY.md.
MIT
Выполни в терминале:
claude mcp add firefox-relay-mcp -- npx