- Disable issuer validation in BearerAuthProvider (issuer=None) - Simplify authentication condition (remove auth_enabled check) - Revert CORS middleware to simple configuration - Fix OAuth metadata endpoint to match v0.1.6 - Apply conditional auth only to MCP server creation Critical fixes for Claude AI tools discovery
28 lines
654 B
Python
28 lines
654 B
Python
"""
|
|
MCP Auth Toolkit - OAuth 2.1 + Authorization for Model Context Protocol Servers
|
|
Integrated with Clerk Authentication
|
|
"""
|
|
|
|
from .middleware import (
|
|
AuthContext,
|
|
FastMCPAuthWrapper,
|
|
MCPAuthMiddleware,
|
|
auth_required,
|
|
)
|
|
from .oauth import OAuthConfig, OAuthProvider
|
|
from .policy import PolicyEngine, ToolPolicy, create_default_policies
|
|
from .storage import PersistentStorage
|
|
|
|
__version__ = "0.1.0"
|
|
__all__ = [
|
|
"OAuthProvider",
|
|
"OAuthConfig",
|
|
"AuthContext",
|
|
"auth_required",
|
|
"create_default_policies",
|
|
"MCPAuthMiddleware",
|
|
"FastMCPAuthWrapper",
|
|
"PolicyEngine",
|
|
"ToolPolicy",
|
|
"PersistentStorage",
|
|
] |