From 3d95914bc6b0ea19dd39672a6b086519ce9a4bb3 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Tue, 30 Dec 2025 17:03:36 -0800 Subject: [PATCH] Remove non-existent doc endpoints from public paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FastMCP doesn't expose /docs, /redoc, /openapi.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/middleware/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware/auth.py b/src/middleware/auth.py index c4a4bc3..2ac0c4c 100644 --- a/src/middleware/auth.py +++ b/src/middleware/auth.py @@ -20,8 +20,8 @@ class APIKeyAuthMiddleware(BaseHTTPMiddleware): if not self.api_key: return await call_next(request) - # Skip auth for health check and documentation endpoints - public_paths = ["/health", "/healthz", "/", "/docs", "/redoc", "/openapi.json"] + # Skip auth for health check endpoints + public_paths = ["/health", "/healthz", "/"] if request.url.path in public_paths: return await call_next(request)