generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The package fails to start due to BearerAuthProvider being removed in fastmcp 2.14.0.
Error
ImportError: cannot import name 'BearerAuthProvider' from 'fastmcp.server.auth'
Cause
pyproject.tomlspecifiesfastmcp>=2.7.1(no upper bound)- fastmcp 2.14.0 removed
BearerAuthProvider(see Remove deprecated BearerAuthProvider module PrefectHQ/fastmcp#2341) - Running with uvx pulls fastmcp 2.14.1, which breaks the import in
src/server.pyline 9
Suggested fix
Either:
- Pin
fastmcp<2.14.0in dependencies - Update code to use the new auth API (e.g.,
OAuthProviderorRemoteAuthProvider)
Environment
- macOS / Python 3.11
- uvx (uv 0.8.17)
- amq-mcp-server-rabbitmq 2.2.4
- fastmcp 2.14.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels