c56bef871b
Sync docs with Docusaurus / sync (push) Waiting to run
Tests / Check if changed (push) Waiting to run
Tests / format (push) Blocked by required conditions
Tests / check-imports (push) Blocked by required conditions
Tests / Unit / macos-latest (push) Blocked by required conditions
Tests / Unit / ubuntu-latest (push) Blocked by required conditions
Tests / Unit / windows-latest (push) Blocked by required conditions
Tests / mypy (push) Blocked by required conditions
Tests / Integration / ubuntu-latest (push) Blocked by required conditions
Tests / Integration / macos-latest (push) Blocked by required conditions
Tests / Integration / windows-latest (push) Blocked by required conditions
Tests / notify-slack-on-failure (push) Blocked by required conditions
Tests / Mark tests as completed (push) Blocked by required conditions
Docker image release / Build base image (push) Waiting to run
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
14 lines
714 B
TypeScript
14 lines
714 B
TypeScript
// Returns a JSON 404 for OAuth discovery probes (e.g.
|
|
// `/.well-known/oauth-protected-resource`, `/.well-known/oauth-authorization-server`).
|
|
// Per RFC 9728 / the MCP authorization spec a 404 here means "this resource
|
|
// doesn't require OAuth — connect anonymously." Without this handler the
|
|
// Docusaurus catch-all serves an HTML 404, which trips MCP clients that try to
|
|
// JSON-parse the body to extract an OAuth error.
|
|
import { VercelRequest, VercelResponse } from "@vercel/node";
|
|
|
|
export default function handler(_req: VercelRequest, res: VercelResponse) {
|
|
res.setHeader("Content-Type", "application/json");
|
|
res.setHeader("Cache-Control", "public, max-age=3600");
|
|
return res.status(404).end("{}");
|
|
}
|