bash-3.2$ MCP_BASE_URL=https://nuke-semi-recordings-keyword.trycloudflare.com/mcp uvx --from ha-mcp@6.3.1 ha-mcp-oauth
2026-01-21 20:52:32,651 ha_mcp.__main__ INFO: ✅ OAuth mode logging configured at INFO level
2026-01-21 20:52:32,652 ha_mcp.auth.provider WARNING: No OAUTH_ENCRYPTION_KEY set - generated temporary key. Tokens will be invalid after server restart. Set OAUTH_ENCRYPTION_KEY for persistence.
2026-01-21 20:52:32,652 ha_mcp.auth.provider INFO: HomeAssistantOAuthProvider initialized with base_url=https://old-words-removed.trycloudflare.com/mcp
2026-01-21 20:52:32,717 ha_mcp.tools.registry INFO: Auto-discovery registered tools from 33 modules
2026-01-21 20:52:32,717 ha_mcp.__main__ INFO: ✅ Server created with OAuthProxyClient
2026-01-21 20:52:32,717 ha_mcp.__main__ INFO: Starting OAuth-enabled MCP server with 100 tools on https://old-words-removed.trycloudflare.com/mcp/mcp
[01/21/26 20:52:32] INFO Starting MCP server 'ha-mcp' with server.py:2585
transport 'streamable-http' on
http://0.0.0.0:8086/mcp
INFO: Started server process [66008]
INFO: Waiting for application startup.
2026-01-21 20:52:32,762 docket.worker INFO: Starting worker 'Daniels-Mac-mini.local#66008' with the following tasks:
2026-01-21 20:52:32,763 docket.worker INFO: * trace(message: str, ...)
2026-01-21 20:52:32,763 docket.worker INFO: * fail(message: str, ...)
2026-01-21 20:52:32,763 docket.worker INFO: * sleep(seconds: float, ...)
2026-01-21 20:52:32,763 mcp.server.streamable_http_manager INFO: StreamableHTTP session manager started
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8086 (Press CTRL+C to quit)
📋 Bug Description
When trying to use the new OAUTH feature, FastMCP is responding with a "Not Found" error when clients try to go to https://url/mcp/authorize
🔄 Steps to Reproduce
✅ Expected vs ❌ Actual Behavior
Expected:
Oauth page loads to authorize access for MCP to HA
Actual:
"Not Found" returned in both Claude and ChatGPT
🔧 Environment
🚨 Error Messages
🚀 Startup Logs (if relevant)
Click to expand startup logs
💡 Additional Context
Privacy reminder: Please review and anonymize sensitive information (tokens, IPs, personal names) before submitting.