Skip to content

0004: Cloudflare Tunnel and Access ​

Context ​

The server runs on a NAS and must be reachable by Claude without opening router ports. The old repo changed auth system three times in five weeks.

Decision ​

Expose the app through an outbound Cloudflare Tunnel. Put Cloudflare Access with Managed OAuth in front. The app validates the Access token on every request and contains no authorization server.

Consequences ​

Unverified until the slice 0 spike proves Claude web, desktop and mobile can connect. Fallback is the MCP SDK OAuth router for a single user. The MCP endpoint stays unmounted until one of these works.