401-no-www-authenticate · Auth & OAuth
Client gets 401 but can't start OAuth — it has nowhere to discover the auth server.
Server requires auth but omits the WWW-Authenticate header the MCP auth spec relies on.
Return WWW-Authenticate: Bearer with a resource_metadata pointer on 401.
curl -sS -X POST \
https://chaos-mcp.thomascdnns.com/s/401-no-www-authenticate/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "curl", "version": "1"}
}
}'