Every client is public: no client secret, PKCE required. A client has one of three kinds:
| kind | How it is created | client_id |
|---|---|---|
| dynamic | The client registers itself at register (RFC 7591). | dcr_ and 24 characters |
| metadata_document | The client uses an https URL as its client_id. Scute fetches the JSON document at that URL on first use. | The URL |
| registered | The app's backend creates it with POST /v1/apps/:app_id/oauth/clients. | cli_ and 24 characters |
Redirect URIs: 1 to 20 per client. Each is an https URL, an http URL on a loopback host (127.0.0.1, localhost, ::1), or an app scheme such as cursor://callback. No fragments. The schemes javascript, data, file, vbscript, about, blob, ftp, ws and wss are refused.
Register a client#
/v1/oauth/:app_id/registerNoneDynamic client registration. Returns 404 with error_code not_found when the app has turned it off (dynamic_registration in the server settings). Limited to 20 registrations per hour per IP.
curl -X POST https://api.scute.io/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6/register \ -H "Content-Type: application/json" \ -d '{"client_name": "My MCP client", "redirect_uris": ["http://127.0.0.1:33418/callback"]}'{ "client_id": "dcr_xxxxxxxxxxxxxxxxxxxxxxxx", "client_id_issued_at": 1763460000, "client_name": "My MCP client", "redirect_uris": ["http://127.0.0.1:33418/callback"], "token_endpoint_auth_method": "none", "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"]}| Status | error | When |
|---|---|---|
| 400 | invalid_client_metadata | A confidential client or an unsupported grant type. |
| 400 | invalid_redirect_uri | Missing or invalid redirect URIs. |
Client ID metadata documents#
When client_metadata_documents is on (the default), a client_id that is an https URL with a path is fetched as a JSON document. The document must:
- be a JSON object of at most 20,000 bytes, served with a 2xx within 3 seconds,
- have client_id equal to its own URL,
- have token_endpoint_auth_method none or no such field,
- list valid redirect_uris.
Scute reads client_name, redirect_uris, client_uri and logo_uri from it. The document is fetched again when the stored copy is more than 24 hours old. If a refetch fails, the stored copy keeps working for up to 7 days after the last good fetch.
Manage clients from your backend#
These calls take the app key in Authorization: Bearer. A client object:
| Field | Type | Description |
|---|---|---|
| id | string | UUID of the client. Used in the paths below. |
| client_id | string | The OAuth client id. |
| kind | string | registered, metadata_document or dynamic. |
| name | string | Display name, or null. |
| redirect_uris | array | Allowed redirect URIs. |
| client_uri, logo_uri | string | https URLs, or null. |
| agent_id | string | The agent the client acts as, or null. |
| disabled | boolean | true when the client is disabled. |
| created_at, last_used_at | string | ISO 8601 times. |
List clients#
/v1/apps/:app_id/oauth/clientsApp keyNewest first, up to 200. kind filters by kind. Returns { "clients": [ ... ] }.
Create a client#
/v1/apps/:app_id/oauth/clientsApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/oauth/clients \ -H "Authorization: Bearer $SCUTE_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Internal agent", "redirect_uris": ["https://agent.acme.example/callback"]}'Returns 201 with the client object. Validation failures return 422 with error_code invalid.
Update a client#
/v1/apps/:app_id/oauth/clients/:idApp keyChanging name or redirect_uris of a dynamic or metadata_document client returns 422 with error_code invalid. An unknown agent slug returns 422 as well.
Delete a client#
/v1/apps/:app_id/oauth/clients/:idApp keyReturns 204. An unknown id returns 404 with error_code not_found.