inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Fix failure to extract resource metadata url from WWW-authenticate header

Open cliffhall opened this issue 1 month ago • 0 comments

Summary

Include the authProvider param of transportOptions for sse and streamableHttp transports. This should help the transport code that handles a 401 extract the WWW-Authenticate header information and find the resource_metadata param if present.

Screenshot 2025-11-19 at 4 46 59 PM

Type of Change

  • [x] Bug fix (non-breaking change that fixes an issue)
  • [ ] New feature (non-breaking change that adds functionality)
  • [ ] Documentation update
  • [ ] Refactoring (no functional changes)
  • [ ] Test updates
  • [ ] Build/CI improvements

Changes Made

  • In useConnection.ts
    • in connect()
      • Pass authProvider in transport options

Related Issues

#576

Testing

  • [ ] Tested in UI mode
  • [ ] Tested in CLI mode
  • [ ] Tested with STDIO transport
  • [ ] Tested with SSE transport
  • [ ] Tested with Streamable HTTP transport
  • [ ] Added/updated automated tests
  • [ ] Manual testing performed

Test Results and/or Instructions

Screenshots are encouraged to share your testing results for this change.

Checklist

  • [ ] Code follows the style guidelines (ran npm run prettier-fix)
  • [ ] Self-review completed
  • [ ] Code is commented where necessary
  • [ ] Documentation updated (README, comments, etc.)

Breaking Changes

Additional Context

cliffhall avatar Nov 19 '25 21:11 cliffhall