MCP Gateway
ApiOauth apps

Detach OAuth app from server

Remove the link between an OAuth app and an MCP server. Existing user connections are not affected, but new connections cannot be created.

DELETE
/api/v1/oauth-apps/{app_id}/servers/{server_id}

Authorization

User API Key
AuthorizationBearer <token>

User API key (mgw_usr_live_* or mgw_usr_test_*)

In: header

Path Parameters

app_id*string
Formatuuid
server_id*string
Formatuuid
access_token?|

Response Body

application/json

curl -X DELETE "https://loading/api/v1/oauth-apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}