We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b309e commit 4162b5bCopy full SHA for 4162b5b
1 file changed
src/transports/http.ts
@@ -65,10 +65,12 @@ const transports: Map<string, StreamableHTTPServerTransport> = new Map();
65
*/
66
function authMiddleware(requireAuth: boolean) {
67
return async (req: Request, res: Response, next: NextFunction): Promise<void> => {
68
- // Skip auth for health check, server info (GET only), and OAuth endpoints
+ // Skip auth for health check, server info (GET only), favicon, and OAuth endpoints
69
// POST/DELETE to "/" is the MCP endpoint and requires auth
70
if (
71
req.path === "/health" ||
72
+ req.path === "/favicon.svg" ||
73
+ req.path === "/favicon.ico" ||
74
(req.path === "/" && req.method === "GET") ||
75
req.path.startsWith("/.well-known/") ||
76
req.path.startsWith("/oauth/")
0 commit comments