inspector
inspector copied to clipboard
Fix failure to extract resource metadata url from WWW-authenticate header
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.
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
- in connect()
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.)