WWW-Authenticate headers should be passed through
Without this, you don't have the means to respond to specific HTTP 401 errors. Right now, on any token validation error that the server responds with 401 Unauthorized the client will just act as if it needs to re-authenticate with no context as to why.
@localden you're right, but can you provide an example with steps to repro? I'm not sure if this is a failing of the Inspector or the SDK.
Without this, you don't have the means to respond to specific
HTTP 401errors. Right now, on any token validation error that the server responds with401 Unauthorizedthe client will just act as if it needs to re-authenticate with no context as to why.
Are you saying that WWW-Authenticate response headers are not making it to the client from the MCP Inspector's backing server?
Closing as not planned and labeling with v2 in case we want to review for next version.