inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Regression in OAuth metadata discovery in mcp-inspector 0.21.x against authorization servers that reject Content-Type: application/json

Open ensonik opened this issue 8 months ago • 1 comments

Inspector Version

0.21.1

Summary

When using mcp-inspector 0.21.1 against our MCP server, the OAuth flow fails while fetching authorization server metadata from /.well-known/oauth-authorization-server.

Our authorization server responds with 415 Unsupported Media Type when that request includes Content-Type: application/json.

This flow worked for us with mcp-inspector 0.19.0.

Regression range

  • Works: mcp-inspector 0.19.0
  • Fails: mcp-inspector 0.21.1
  • I did not test 0.20.0

Steps to reproduce

  1. Run mcp-inspector 0.21.1
  2. Connect to an MCP server whose OAuth flow uses an authorization server that rejects GET /.well-known/oauth-authorization-server when Content-Type: application/json is present
  3. Start the OAuth flow

Actual behavior

  • Inspector requests /.well-known/oauth-authorization-server
  • The authorization server returns 415
  • OAuth metadata discovery fails and the OAuth flow cannot continue

Expected behavior

  • mcp-inspector 0.21.x should remain compatible with setups that worked with 0.19.0
  • If the current request shape is intentional, it would still help to know what changed between 0.19.0 and 0.21.x and whether there is a compatibility workaround

ensonik avatar Mar 12 '26 19:03 ensonik

Closing: v1 is deprecated.

Thank you for reporting this, and apologies for the long wait for a response.

v1 will receive security fixes only — this issue describes a functionality, compatibility, or usability problem rather than a vulnerability, so it is being closed against v1. This is not a judgment on whether the problem is real — it's a consequence of the v1 line being frozen. This is happening as part of #1872.

If this still happens in v2, we'd genuinely like to know. v2 is a complete rewrite — three clients over a shared core — so many v1 behaviours no longer exist in the same form. Please open a fresh issue against v2 with steps to reproduce, and we'll look at it. Note that we accept external contributions as issues rather than pull requests; maintainers handle design and implementation through a prompt-driven workflow. See CONTRIBUTING.md.

Thanks for taking the time to report it.

cliffhall avatar Aug 01 '26 12:08 cliffhall