[Feature]: Support remote MCP OAuth for ChatGPT Dots behind Cloudflare Tunnel
Problem / motivation
Run MCPProxy Personal Edition in Kubernetes and connect it as a custom MCP plugin in ChatGPT, so a Dot can call a small set of approved tools from the mobile app while the desktop is offline. The cluster already has Cloudflare Tunnel. The goal is to use that tunnel without deploying a separate OAuth gateway.
The local browser-login flow from #1971 / Spec 132 deliberately accepts only direct loopback requests. A tunnel can reach a loopback listener in the same pod, but the OAuth routes reject proxied requests and non-loopback Host values. That is the expected local security boundary.
Proposed solution
Add an opt-in remote OAuth mode with an explicit public HTTPS origin. Keep the existing loopback-only mode and defaults unchanged.
- Use the public origin consistently for the MCP endpoint, OAuth discovery and authorization. Support the OAuth client registration and PKCE flow required by ChatGPT.
- Require explicit approval and a scoped profile for remote clients. Do not require exposing the admin UI publicly.
- Document and validate a read-only tool call from a mobile Dot with the desktop offline, or document any ChatGPT-side limitation.
This could be a focused first slice of Spec 089, Remote access tunnel: bring your own tunnel, without building tunnel management.
Alternatives considered
No response
Which edition?
Personal
Pre-submission checklist
- [x] I searched existing issues and discussions for a similar request