The MCP test client's OAuth callback is hardcoded to http://localhost:8765/callback. When running inside a VM or container, the browser (often on the host) cannot reach this localhost address, so the authentication flow cannot complete.
Findings
packages/mcp-test-client/src/auth/oauth.ts hardcodes OAUTH_REDIRECT_URI = http://localhost:8765/callback and starts the callback server on 127.0.0.1:8765.
- There is no environment variable or CLI flag to override the redirect URI or callback port.
- Remote mode supports
SENTRY_ACCESS_TOKEN as a workaround, but the OAuth flow itself is unusable in non-local environments without manual port forwarding.
The MCP test client's OAuth callback is hardcoded to
http://localhost:8765/callback. When running inside a VM or container, the browser (often on the host) cannot reach this localhost address, so the authentication flow cannot complete.Findings
packages/mcp-test-client/src/auth/oauth.tshardcodesOAUTH_REDIRECT_URI = http://localhost:8765/callbackand starts the callback server on127.0.0.1:8765.SENTRY_ACCESS_TOKENas a workaround, but the OAuth flow itself is unusable in non-local environments without manual port forwarding.