-
-# Configure CORS for browser-based clients
-middleware = [
- Middleware(
- CORSMiddleware,
- allow_origins=["*"], # Allow all origins; use specific origins for security
- allow_methods=["GET", "POST", "DELETE", "OPTIONS"],
- allow_headers=[
- "mcp-protocol-version",
- "mcp-session-id",
- "Authorization",
- "Content-Type",
- ],
- expose_headers=["mcp-session-id"],
- )
-]
-
-# if __name__ == "__main__":
-
-