improv for prod

This commit is contained in:
saidsurucu
2025-07-01 18:50:36 +03:00
parent 0f9f5da5b3
commit 1aaf1e1bd4
2 changed files with 7 additions and 6 deletions
+1 -3
View File
@@ -21,6 +21,7 @@ def create_app() -> FastMCP:
)
else:
# Production mode - OAuth authentication via middleware
app_config["instructions"] += " with OAuth authentication via Clerk."
app = FastMCP(
name="Yargı MCP PROD",
**app_config
@@ -28,8 +29,5 @@ def create_app() -> FastMCP:
# Add OAuth middleware instead of BearerAuthProvider
app.add_middleware(ClerkOAuthMiddleware())
# Update instructions to reflect OAuth
app.instructions += " with OAuth authentication via Clerk."
return app