After deploying, run these checks to confirm the Worker compiled correctly, the R2 bucket is reachable, and the MCP endpoint exposes the expected tools. Each check targets a different layer — static analysis, runtime bucket access, and MCP protocol registration — so all three should pass before you connect a client.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/cloudflare-r2-remote-mcp-worker/llms.txt
Use this file to discover all available pages before exploring further.
Static Checks
Static checks confirm the TypeScript project compiles without errors and that the repository contains the expected source files andpackage.json scripts.
type-checkexits with code0and no TypeScript errors.smokeprintssmoke ok.
dev, deploy, smoke, and type-check scripts exist in package.json.
Health Endpoint
The/healthz endpoint confirms that the Worker can load its configuration and reach the bound R2 bucket. Test it locally before deploying, and again against the deployed Worker after wrangler deploy.
authMode, accountToolsEnabled, presignToolsEnabled, and rootPrefix reflect your wrangler.jsonc configuration and may differ from the example above.
Error response (bucket unreachable):
ok is false, the R2 bucket binding is missing from wrangler.jsonc or the bucket name is wrong. Check that R2_BUCKET is bound and that the bucket was created before deployment. The /healthz endpoint returns HTTP 503 when the bucket is unreachable.
MCP tools/list via MCP Inspector
tools/list verifies that the MCP endpoint is reachable and that the Worker registered its tools successfully at startup.
AUTH_MODE=github:
- OAuth opens in a browser tab.
- GitHub login completes.
- The GitHub login must be listed in
ALLOWED_GITHUB_LOGINS. tools/listreturns the enabled tool set.
Expected Default Tool Names
With default feature flags (ENABLE_ACCOUNT_TOOLS and ENABLE_PRESIGN_TOOLS both unset or false), tools/list should return exactly these twelve tools:
Setting
ENABLE_ACCOUNT_TOOLS=true in wrangler.jsonc adds read-only admin tools to the list. Setting ENABLE_PRESIGN_TOOLS=true adds presigned URL tools. Both sets appear alongside the default twelve tools.SDK tools/list Smoke (Local, AUTH_MODE=none)
For local development withAUTH_MODE=none, you can verify the tool list programmatically using the MCP SDK without a browser OAuth flow. Start the Worker first, then run the inline script: