Skip to content

fix(mcp): reject delegated redirects using supported Worker mode - #6

Merged
mrgoonie merged 1 commit into
mainfrom
codex/mcp-worker-redirect-fix
Sep 12, 2026
Merged

mrgoonie merged 1 commit into
mainfrom
codex/mcp-worker-redirect-fix

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

OAuth-authenticated API calls fail on Cloudflare Workers because that runtime rejects fetch requests configured with redirect: error. Use its supported manual mode and explicitly reject every 3xx response before any second request, retaining the existing credential isolation contract.

The regression test passes through to the real local HTTP server, verifies manual mode, and confirms no redirect target is contacted.

Validation:

  • Nine OAuth tests pass on Node 18.20.8 and Node 24.
  • All 22 OAuth/Worker tests and typecheck pass.
  • The fix was deployed during live staging and production rollout after the runtime failure was observed.
  • The existing nine-job repository compatibility matrix must pass before merge.

@mrgoonie
mrgoonie merged commit 68a44e7 into main Sep 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant