Remove an MCP connection's credential
Deletes the connection's credential; sandboxes stop receiving it at their next start. Needs mcp.manage on the project; API keys are refused.
Authorization
bearerAuth A RemoteHost API key (rh_sk_...) or a user session token.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/orgs/string/projects/string/mcp-connections/string/credential"List a project's MCP connections GET
Previous Page
Set an MCP connection's credential PUT
Sets or replaces the credential of an api_key MCP connection: `headers` sent with every request to an http or sse server, or `env` for a stdio server's process. It is stored encrypted and never returned. Needs mcp.manage on the project; API keys are refused. A credential is delivered to every sandbox in the project at each start, into its RAM-only secrets directory, where every process in those sandboxes, and anyone who may open a terminal (sandbox.terminal.connect) or read files (sandbox.files.read) there, can read it. Changing where the connection points (its transport, URL, command, arguments or auth type), or moving it to another project, deletes it.