You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use multiple approaches to access HTTP headers in middleware
- Try FastMCP's get_http_headers() function first
- Fallback to context.request.headers and context.headers
- Handle both 'Bearer' and 'bearer' token formats
- Gracefully handle stdio mode where no HTTP context exists
- Properly re-raise authentication errors while skipping other errors
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments