Delete an MCP server of one's own, and forget its credential
Deletes the caller's server (ADR 0046). Needs no tools.user.add: a person whose permission was taken away can still remove what they added and free the places they hold. Deleting is "revoke, then delete": the credential broker forgets the credential (and revokes it at the authorization server where it can) first, and a failure of that aborts the delete with the server still there, so a person tries again (503 broker_down); a server that wants no credential has none to revoke. A deployment that keeps no credentials cannot revoke and does not try: the definition is deleted, which a person must always be able to do. A definition that does not read back is deleted by its id too, its credential, if any, revoked first. The delete too runs to its end on the server whether or not the client waits, so a request that is dropped between the revoke and the delete still deletes. Nothing records the delete in a thread: a thread that had the server attached keeps the id. A second DELETE is a 404.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Responses
The server is deleted and its credential forgotten