Remove mcp_auth_http_simple.py

This commit is contained in:
saidsurucu
2026-04-03 02:02:44 +03:00
parent 036e49a928
commit a4d9e2e53d
2 changed files with 1 additions and 530 deletions
+1 -8
View File
@@ -28,11 +28,7 @@ from mcp_server_main import create_app
_auth_check = os.getenv("ENABLE_AUTH", "false").lower() == "true"
if _auth_check:
# Import MCP Auth HTTP adapter (OAuth endpoints)
try:
from mcp_auth_http_simple import router as mcp_auth_router
except ImportError:
mcp_auth_router = None
mcp_auth_router = None
# Import Stripe webhook router
try:
@@ -156,9 +152,6 @@ app = FastAPI(
if stripe_router:
app.include_router(stripe_router, prefix="/api/stripe")
if mcp_auth_router:
app.include_router(mcp_auth_router)
# Custom 401 exception handler for MCP spec compliance
@app.exception_handler(401)
async def custom_401_handler(request: Request, exc: HTTPException):