feat: accept Cloudflare Access assertions on the HTTP MCP server

Cloudflare Access (Managed OAuth) runs the OAuth flow for clients such as
ChatGPT; the origin verifies the signed Cf-Access-Jwt-Assertion itself --
RS256 in stdlib by construct-and-compare, issuer, AUD, expiry.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
lucioandClaude Mythos 5.2 committed 2026-11-21 15:35:05 -08:00
1 parent 3909c35565
commit 57bc05ea7c
6 files changed
+488 -8

No files matched your search

+11
View File
@@ -109,6 +109,17 @@ A bearer token is mandatory — it will not start without one of at least 32 cha
every request without it gets `401`. `prime` is not offered over HTTP. Put TLS in front
of it (a reverse proxy); the server itself speaks plain HTTP.
For OAuth clients (ChatGPT, Claude connectors), put the hostname behind a Cloudflare
Access application with Managed OAuth and tell the server to verify what Access forwards:
```bash
wodify mcp --http 127.0.0.1:8765 \
--access-team yourteam.cloudflareaccess.com --access-aud <application AUD tag>
```
Access runs the OAuth flow; the server checks the signed assertion on every request.
`--access-email` (repeatable) additionally pins which identities are accepted.
Tools run the CLI in-process, so the read-only allowlist and write guard apply unchanged
and the cache below is shared with the command line.