Every call on this page takes the app key in Authorization: Bearer. Validation failures return 422 with error_code invalid. Unknown ids return 404 with error_code not_found. Clients are on OAuth clients.
Settings#
Get settings#
/v1/apps/:app_id/oauth/settingsApp keycurl https://api.scute.io/v1/apps/$SCUTE_APP_ID/oauth/settings \ -H "Authorization: Bearer $SCUTE_APP_KEY"{ "enabled": false, "dynamic_registration": true, "client_metadata_documents": true, "access_ttl": 3600, "refresh_ttl": 2592000, "login_url": null, "default_agent": null, "pin_mode": "trust_first_use", "issuer": "https://api.scute.io/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6", "metadata_url": "https://api.scute.io/.well-known/oauth-authorization-server/v1/oauth/app_3mxZRrzWxhPZ08dXvqq6"}Update settings#
/v1/apps/:app_id/oauth/settingsApp keySend only the fields you change. Returns the settings.
curl -X PATCH https://api.scute.io/v1/apps/$SCUTE_APP_ID/oauth/settings \ -H "Authorization: Bearer $SCUTE_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"enabled": true}'MCP servers#
An MCP server (a resource, RFC 8707) is a URL tokens may be issued for. authorize refuses any other resource.
| Field | Type | Description |
|---|---|---|
| id | string | UUID of the resource. |
| url | string | The server URL, stored with a lowercase scheme and host, no default port and no bare / path. |
| name | string | Display name. |
| scopes | array | Scopes the server offers. |
| scope_actions | object | Optional map of scope to permission slugs. When set, a task from token exchange gets only the permissions of its granted scopes. |
| disabled | boolean | true when disabled. |
| quarantined_tools | array | Names of tools held for review. |
| created_at | string | ISO 8601 time. |
List MCP servers#
/v1/apps/:app_id/oauth/resourcesApp keyReturns { "resources": [ ... ] }, oldest first.
Add an MCP server#
/v1/apps/:app_id/oauth/resourcesApp keycurl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/oauth/resources \ -H "Authorization: Bearer $SCUTE_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://mcp.acme.example", "name": "Acme MCP", "scopes": ["mcp"]}'Returns 201 with the resource.
Update an MCP server#
/v1/apps/:app_id/oauth/resources/:idApp keyTakes name, scopes, scope_actions and disabled. The URL can't be changed.
Remove an MCP server#
/v1/apps/:app_id/oauth/resources/:idApp keyRevokes every active grant for the server, then deletes it. Returns 204.
Tool review#
The MCP gateway reports the tools each server lists, with a hash of each tool's definition. A tool seen for the first time is pinned (trust_first_use) or held (approve_new). A pinned tool whose definition changes is held until approved.
List tools#
/v1/apps/:app_id/oauth/resources/:id/toolsApp keyReturns resource (the URL) and tools: a map of tool name to its pin (hash, pending_hash, status pinned or quarantined, and times such as first_seen_at, changed_at, approved_at).
Report tools#
/v1/apps/:app_id/oauth/resources/:id/tools/observeApp key{ "tools": { "search": "pinned", "delete_record": "quarantined" }, "quarantined": ["delete_record"]}Approve a tool#
/v1/apps/:app_id/oauth/resources/:id/tools/approveApp keyTakes name. Pins the tool's current definition. Returns resource and tools. A tool with nothing to approve returns 422.
Hold a tool#
/v1/apps/:app_id/oauth/resources/:id/tools/quarantineApp keyTakes name. Marks the tool quarantined. Returns resource and tools. An unknown tool returns 404.
Grants#
A grant records that a user let a client act for them on one MCP server with some scopes.
| Field | Type | Description |
|---|---|---|
| id | string | UUID of the grant. |
| client_id | string | The OAuth client id. |
| client_name | string | The client's display name. |
| user_id | string | UUID of the app user. |
| user | object | email and name of the user. |
| resource | string | The MCP server URL. |
| scopes | array | Granted scopes. |
| created_at, last_used_at | string | ISO 8601 times. |
| revoked_at | string | When it was revoked, or null. |
| revoked_reason | string | For example app_revoked, client_revoked, client_disabled, resource_removed, code_reuse or refresh_reuse. |
List grants#
/v1/apps/:app_id/oauth/grantsApp keyNewest first, up to 200.
Returns { "grants": [ ... ] }.
Revoke a grant#
/v1/apps/:app_id/oauth/grants/:id/revokeApp keyRevokes the grant with reason app_revoked and returns it. The client's refresh token stops working and its access tokens stop passing introspection.