Skip to content
Esc
↑↓navigate↵open⌘Jpreview

MCP transport (end session)

The Streamable HTTP session-teardown call. The transport is stateless — every request stands alone — so there is no server-side session to release and this acknowledges with an empty 200.

DELETE/mcp
Authorization
AuthorizationOAuth2 access token · headerrequired

OAuth 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.

or
AuthorizationBearer token (varsafe API token) · headerrequired

A 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.

Responses
200

Acknowledged, with an empty body.

400

The body is not a valid JSON-RPC message, or names an unsupported MCP protocol version.

jsonrpcstringrequired
errorobjectrequired
Show properties
codeintegerrequired
min -9007199254740991 · max 9007199254740991
messagestringrequired
dataany
idstring | number | nullrequired
401

No bearer token, or it is invalid, expired or revoked. The WWW-Authenticate header names the protected-resource metadata.

statusCodeintegerrequired

HTTP status code, repeated in the body.

min -9007199254740991 · max 9007199254740991
errorstringrequired

RFC 6750 error code, e.g. invalid_token or insufficient_scope.

error_descriptionstring

Human-readable explanation.

403

The token lacks the grant the transport requires.

statusCodeintegerrequired

HTTP status code, repeated in the body.

min -9007199254740991 · max 9007199254740991
errorstringrequired

RFC 6750 error code, e.g. invalid_token or insufficient_scope.

error_descriptionstring

Human-readable explanation.

429

Too many rejected authentication attempts.

statusCodeintegerrequired

HTTP status code, repeated in the body.

min -9007199254740991 · max 9007199254740991
errorstringrequired

RFC 6750 error code, e.g. invalid_token or insufficient_scope.

error_descriptionstring

Human-readable explanation.

500

Unexpected server error. The body never carries internal detail.

statusCodeintegerrequired

HTTP status code, repeated in the body.

min -9007199254740991 · max 9007199254740991
codestringrequired

Stable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.

messagestringrequired

Human-readable explanation. Wording may change.

fieldstring

The offending request field, present on validation failures.

503

Token verification is temporarily unavailable. Retry later.

statusCodeintegerrequired

HTTP status code, repeated in the body.

min -9007199254740991 · max 9007199254740991
errorstringrequired

RFC 6750 error code, e.g. invalid_token or insufficient_scope.

error_descriptionstring

Human-readable explanation.

Try it
Server
Authorization
Request
curl -X DELETE 'https://api.varsafe.dev/mcp' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
Response
Acknowledged, with an empty body.