MCP discovery page
const url = 'https://example.com/api/mcp-bot';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/mcp-botReturns the JSON discovery document (server name, version, POST endpoint, and — when unauthenticated — the authorization-server metadata URL) so an agent that lands here learns how to connect instead of seeing a bare 401. Requesting Accept: text/event-stream asks for the 2025-era standalone notification stream, which stateless serving does not provide: that is answered 405.
Responses
Section titled “ Responses ”Discovery document
object
object
object
Present only on the unauthenticated response.
Not authenticated
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
True if re-linking GitHub may fix the issue
No standalone notification stream. Stateless serving has no session to attach one to; modern clients receive notifications on the subscriptions/listen response instead.