Rename an MCP command
Move an MCP integration's configuration and connected accounts to a new command key.
POST
/api/v1/mcp-integrations/:key/renameconst response = await fetch("https://api.smallworld.sh/api/v1/mcp-integrations/example-mcp/rename", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({
"key": "records-mcp"
}),
});
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#
keystringrequiredThe saved integration's command key, URL-encoded.
Request body#
keystringrequiredThe new command key.
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.
{
"id": "72b98ef7-4750-4521-b11d-82c114aa56f4",
"key": "records-mcp",
"name": "Example MCP",
"description": "Record tools",
"url": "https://mcp.example.com/mcp",
"authMode": "oauth2",
"authorizationServerUrl": null,
"oauthAppRequired": true,
"scopes": [
"read"
],
"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
The stable integration ID and OAuth callback do not change. Policies, hooks, connections, sessions, and OAuth app settings move to the new key; tool-call history keeps the old key.