Root-caused the Windows connection failures from the client logs:
1. mcp-remote OAuth 404'd because the 401 from /mcp/ advertised only
`WWW-Authenticate: Bearer realm="FUSION MCP"` with no resource_metadata
pointer. Clients couldn't discover the auth server, so they guessed
wrong registration paths → 404. Now the 401 includes
resource_metadata="<base>/.well-known/oauth-protected-resource"
(derived from x-forwarded-* so it's correct on any deploy).
2. Newer clients try the path-aware well-known URL first
(/.well-known/oauth-protected-resource/mcp) which 404'd. Added that
variant plus /.well-known/oauth-authorization-server/mcp (and trailing
-slash forms) returning the same metadata.
3. mcp_proxy.py was silent on failure. Added stderr diagnostics (startup
banner, explicit 401/429/network messages, missing/malformed key
warning) that surface in Claude Desktop's MCP log — so the next setup
problem is self-explaining instead of a blank disconnect.
The pr…
fix: replace mcp-remote Windows workaround with Python stdio proxy
mcp-remote has two unfixable issues on Windows: (1) path-with-spaces breaks
npx.cmd resolution through cmd.exe, (2) the --header quoting is garbled so
auth is ignored and mcp-remote falls through to OAuth discovery which 404s.
Replace with a 40-line Python stdlib proxy (scripts/mcp_proxy.py) that POSTs
JSON-RPC directly to /mcp/ with Bearer token — no OAuth, no path issues,
works on any OS with Python installed. Settings Windows tab now shows a
download link + step-by-step config.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>