MCP transport (no event stream)
The transport is stateless — every request gets its own server — so nothing is ever pushed to a client. A request for the server-to-client event stream is declined with 405 and an Allow: POST, DELETE header, which MCP clients read as “no stream offered”.
/mcpAuthorizationOAuth2 access token · headerrequiredOAuth 2.1 authorization code flow with PKCE, used by MCP clients against https://api.varsafe.dev/mcp. Clients may register dynamically (RFC 7591). The granted scopes are the intersection of what the client requests and what the approving user may delegate.
AuthorizationBearer token (varsafe API token) · headerrequiredA team-scoped API token, created self-serve in the dashboard and presented as Authorization: Bearer <token>. A token can be restricted to specific projects and environments and to read-only access. Intended for CI pipelines and unattended automation.
The body is not a valid JSON-RPC message, or names an unsupported MCP protocol version.
jsonrpcstringrequirederrorobjectrequiredShow propertiesHide properties
codeintegerrequiredmessagestringrequireddataanyidstring | number | nullrequiredNo bearer token, or it is invalid, expired or revoked. The WWW-Authenticate header names the protected-resource metadata.
statusCodeintegerrequiredHTTP status code, repeated in the body.
errorstringrequiredRFC 6750 error code, e.g. invalid_token or insufficient_scope.
error_descriptionstringHuman-readable explanation.
The token lacks the grant the transport requires.
statusCodeintegerrequiredHTTP status code, repeated in the body.
errorstringrequiredRFC 6750 error code, e.g. invalid_token or insufficient_scope.
error_descriptionstringHuman-readable explanation.
No event stream is offered; the Allow header lists POST and DELETE.
The Accept header must allow both application/json and text/event-stream (GET needs text/event-stream).
jsonrpcstringrequirederrorobjectrequiredShow propertiesHide properties
codeintegerrequiredmessagestringrequireddataanyidstring | number | nullrequiredToo many rejected authentication attempts.
statusCodeintegerrequiredHTTP status code, repeated in the body.
errorstringrequiredRFC 6750 error code, e.g. invalid_token or insufficient_scope.
error_descriptionstringHuman-readable explanation.
Unexpected server error. The body never carries internal detail.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
Token verification is temporarily unavailable. Retry later.
statusCodeintegerrequiredHTTP status code, repeated in the body.
errorstringrequiredRFC 6750 error code, e.g. invalid_token or insufficient_scope.
error_descriptionstringHuman-readable explanation.