Skip to content
Update an MCP registration

Update an MCP registration

Edit the name, description, OAuth scopes, or issuer override of a saved MCP integration.

PATCH/api/v1/mcp-integrations/:key

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/mcp-integrations/example-mcp", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "scopes": [
    "read",
    "write"
  ]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

keystringrequired

The saved integration's command key, URL-encoded.

Request body#

namestring

Non-empty display name, at most 60 characters.

descriptionstring

Description, at most 500 characters. Defaults to an empty string.

scopesstring[] | null

OAuth scopes, or null to request the server's advertised scopes. OAuth only.

authorizationServerUrlstring | null

OAuth issuer override when the server does not advertise its authorization server.

Responses#

Returns identity, URL, sign-in mode, callback URL, scopes, setup status/message, enablement, acknowledged tool changes, and timestamps. OAuth client credentials and end-user credentials are never returned.

200 response
{
  "id": "72b98ef7-4750-4521-b11d-82c114aa56f4",
  "key": "example-mcp",
  "name": "Example MCP",
  "description": "Record tools",
  "url": "https://mcp.example.com/mcp",
  "authMode": "oauth2",
  "authorizationServerUrl": null,
  "oauthAppRequired": true,
  "scopes": [
    "read",
    "write"
  ],
  "apiKeyHeader": null,
  "redirectUri": "https://api.example.com/api/integrations/oauth/mcp/72b98ef7-4750-4521-b11d-82c114aa56f4/callback",
  "enabled": true,
  "setupStatus": "unverified",
  "setupMessage": "OAuth app configured. Connection not yet tested.",
  "toolChanges": {
    "added": [],
    "changed": [],
    "removed": []
  },
  "createdAt": "2026-10-22T10:00:00.000Z",
  "updatedAt": "2026-10-22T10:00:00.000Z"
}
More about this endpoint

Omitted fields retain their values. Null scopes restores advertised defaults; null authorizationServerUrl clears the override. Server URL and authMode cannot be changed. Manage saved OAuth app credentials through the integration setup endpoints; changed OAuth settings require setup verification again.