Repository navigation
Channel Creator MCP Auth
roto31 edited this page Nov 22, 2026
·
1 revision
Streamable HTTP MCP listens on :8411 (never tunnel StreamTV :8410).
Also on this wiki: Platform overview · Host wiring
| Mode | What it is | When to use |
|---|---|---|
oauth |
“Sign in with …” — Auth0 or Cloudflare Access JWT; Mac only checks the ticket (JWKS) | Many remote users; you do not build login screens |
dual |
Cloudflare Access (email OTP / IdP) in front of the tunnel + STREAMTV_MCP_TOKEN on the Mac |
Recommended remote path if you already use Cloudflare — two locks |
bearer |
Shared secret only (STREAMTV_MCP_TOKEN ≥32 chars) |
Header-capable LAN clients |
none |
No auth | Loopback only |
-
OAuth: resource-server mode with Auth0 or Cloudflare Access as the IdP. Mac validates issuer + audience + JWKS. Scopes:
streamtv.read→planner,streamtv.write→guided. -
Dual (Access + secret): put Cloudflare Access on the tunnel hostname; Mac still requires
Authorization: Bearer <STREAMTV_MCP_TOKEN>and validatesCf-Access-Jwt-Assertionagainst the Access AUD tag.
Profile for ChatGPT / Claude web: prefer guided when write scope / dual secret is issued; use planner for read-only connectors.
# Shared
export STREAMTV_MCP_AUTH=dual # or oauth | bearer
export STREAMTV_MCP_TOKEN="$(openssl rand -hex 32)"
# dual — Cloudflare Access
export STREAMTV_MCP_ACCESS_TEAM=myteam # → https://myteam.cloudflareaccess.com
export STREAMTV_MCP_ACCESS_AUDIENCE="<AUD tag from Access application>"
# oauth — Auth0 example
export STREAMTV_MCP_AUTH=oauth
export STREAMTV_MCP_OAUTH_PROVIDER=auth0
export STREAMTV_MCP_OAUTH_DOMAIN=dev-xxx.us.auth0.com
export STREAMTV_MCP_OAUTH_AUDIENCE=streamtv-mcp
# oauth — Cloudflare Access as IdP (JWT in Authorization: Bearer)
export STREAMTV_MCP_OAUTH_PROVIDER=cloudflare_access
export STREAMTV_MCP_OAUTH_DOMAIN=myteam
export STREAMTV_MCP_OAUTH_AUDIENCE="<AUD tag>"./venv/bin/python -m mcp_streamtv.main \
--transport http --host 127.0.0.1 --port 8411 \
--auth dual --profile guidedTunnel checklist: zsh scripts/channel_creator_mcp_remote.zsh
| Lock | Who sets it | Header |
|---|---|---|
| 1 Access | Cloudflare edge after email/IdP login | Cf-Access-Jwt-Assertion |
| 2 MCP secret | ChatGPT / Claude / curl | Authorization: Bearer <STREAMTV_MCP_TOKEN> |
Unauthenticated public initialize must get 401 (Mac) or 302 (Access login). Never expose StreamTV :8410 through the tunnel.
flowchart TD
Client["ChatGPT / Claude web"] -->|"HTTPS /mcp"| Tunnel["Cloudflare Tunnel"]
Tunnel --> Access{"Access Lock 1"}
Access -->|ok| JWT["Cf-Access-Jwt-Assertion"]
JWT --> Mac["mcp_streamtv :8411"]
Client -->|"Bearer STREAMTV_MCP_TOKEN Lock 2"| Mac
Mac --> API["StreamTV :8410 loopback only"]