inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Allow a custom OAuth callback path in the web UI

Open Swampen opened this issue 1 week ago • 1 comments

Which client?

Web

The problem

I'm testing an OAuth-protected MCP server with an existing client whose Client ID Metadata Document lists /callback as its loopback redirect path. Inspector 2.13.0’s web UI sends /oauth/callback, so the redirect URI fails validation every time I try to sign in with that client.

Solution you have in mind (optional)

Add an optional same-origin callback path setting to the web UI. Use that path both when sending the authorization request and when handling the redirect. Default to /oauth/callback.

Alternatives or workarounds you have tried

Setting MCP_OAUTH_CALLBACK_URL had no effect in the web UI. OAuth worked end to end in the CLI with --callback-url http://127.0.0.1:6276/callback.

Already built it locally?

No response

Before you submit

  • [x] I searched existing issues and this is not a duplicate.
  • [x] This is a request for the Inspector itself, not for the MCP specification or an SDK.

Swampen avatar Nov 20 '26 11:11 Swampen

Triage: Priority Low (total 5)

  • Severity 3 — a client whose metadata registers a different loopback path cannot complete OAuth in the web UI; the CLI (--callback-url) is a workaround
  • Urgency 2 — wanted eventually, nothing blocked on it
  • Bonuses: none

Board: #28, Status Incoming (awaiting maintainer review — no milestone yet).

cliffhall avatar Nov 24 '26 03:11 cliffhall