inspector/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
olaservo d1fcbd2c93 fix: detect 401 errors from StreamableHTTP transport for OAuth flow
The server-side error handling only checked for SseError instances
when detecting 401 responses from MCP servers. StreamableHTTPClientTransport
throws a different error type (generic Error with "HTTP 401" message)
when there's no authProvider configured.

This caused the proxy to return 500 instead of 401 to the client,
preventing the OAuth discovery and redirect flow from triggering.

Added is401Error() helper that checks for:
- SseError with code 401
- StreamableHTTPError with code 401
- Generic Error with "HTTP 401" or "(401)" in message

Fixes #960

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 07:22:29 -07:00
..
src fix: detect 401 errors from StreamableHTTP transport for OAuth flow 2025-12-08 07:22:29 -07:00
package.json Bump version to 0.17.5 2025-12-04 09:46:13 -05:00
tsconfig.json init server 2024-10-07 16:27:49 -07:00