v0.3.1 - Authorization
🚀 FastApiMCP now supports MCP Authorization!
You can now add MCP-compliant OAuth configuration in a FastAPI-native way, using your existing FastAPI Depends()
that we all know and love.
Added
- 🎉 Support for Authentication / Authorization compliant to MCP 2025-03-26 Specification, using OAuth 2.1. (#10)
- 🎉 Support passing http headers to tool calls (#82)
PRs
- Documentation updates by @shira-ayal in #84
- Fix examples links by @ArielRotem1 in #87
- fix: make sure items etc. is passed to mcp tools by @MagnusS0 in #86
- Add Authorization by @shahar4499 in #91
New Contributors
- @ArielRotem1 made their first contribution in #87
- @MagnusS0 made their first contribution in #86
Test Coverage Note
Adding authorization reduced tests coverage significantly, since a lot of auth-related code is not covered by tests at the moment.
This will be fixed, but note that the rest of the API isn't affected by it.
Auth is still in "alpha" stage in FastAPI-MCP.
Full Changelog: v0.3.0...v0.3.1