ONLY-MY-AI-API-MCP-PLUGINS-PROJECT
Deploy directly from GitHub to Cloudflare Workers (Free)
- In Cloudflare dashboard go to Workers & Pages → Create → Import a repository / Connect to Git.
- Authorize the Cloudflare GitHub integration for this repository and select
luckysexyqueen/ONLY-MY-AI-API-MCP-PLUGINS-PROJECT, branchmain. - Configure root directory
/, build commandnpm run build, deploy commandnpm run deploy. Do not use a Pages/static output directory. - Under Worker settings, add an encrypted secret named
MCP_BEARER_TOKEN(generate a unique strong random token, do not commit it). - Deploy. Your MCP endpoint will be
https://<actual-worker-subdomain>.workers.dev/mcp; health check is/health. The actual URL is assigned by Cloudflare, not GitHub Pages. - Test MCP JSON-RPC
tools/listwithAuthorization: Bearer <your-token>andContent-Type: application/json. Keep the token private.
The repository's root npm run build installs Worker dependencies and generates cloudflare/src/specs.generated.mjs from specs/. npm run deploy uses cloudflare/wrangler.toml. This is intended for Cloudflare's Git integration; no GitHub Actions secrets are needed for this deployment path.
Limits: Workers Free has request/CPU quotas; 24/7 address availability does not guarantee uninterrupted service or unlimited requests. MCP_PUBLIC_URL is not needed for deploying the Worker, but can be configured separately if a client or dashboard needs a prefilled URL. The GitHub Pages dashboard is static and does not run the MCP Worker.