Which version line?
v2 — current (@modelcontextprotocol/inspector@latest)
Which client?
Web
Inspector version
latest
Node version
v26.4.0
Operating system (and browser, for the web client)
No response
Transport
Streamable HTTP
MCP server under inspection
Not tested with an MCP Server on my end. I visually analyzed the code.
Steps to reproduce
- Run MCP Inspector
- Get your MCP Server to respond with a 401 error
- Notice that the output does not show the responseBody.
Expected behavior
The responseBody should be printed in the logs so that one can see the OAuth Protected Resource Metadata in the WWW-Authenticate header, and the optional scope parameter.
Actual behavior
ResponseBody is not printed when the client receives a 401 status from the server.
Logs, errors, or screenshots
No response
Already prototyped a fix?
No response
Before you submit
Which version line?
v2 — current (
@modelcontextprotocol/inspector@latest)Which client?
Web
Inspector version
latest
Node version
v26.4.0
Operating system (and browser, for the web client)
No response
Transport
Streamable HTTP
MCP server under inspection
Not tested with an MCP Server on my end. I visually analyzed the code.
Steps to reproduce
Expected behavior
The responseBody should be printed in the logs so that one can see the OAuth Protected Resource Metadata in the WWW-Authenticate header, and the optional scope parameter.
Actual behavior
ResponseBody is not printed when the client receives a 401 status from the server.
Logs, errors, or screenshots
No response
Already prototyped a fix?
No response
Before you submit