Update an MCP server

SDK platic.tools.mcp.update()

Update only the fields you send. A connection change invalidates the previous test and returns the server to pending_config. Bind its secrets, test it, and choose its tools again.

Example

await platic.tools.mcp.update("mcp_123", { description: "Product documentation" });

Path parameters

ParameterTypeDescriptionRequired
mcpIdstringId of the MCP server✓

Request body

Send at least one field.

FieldTypeDescriptionRequired
namestring1 to 120 characters—
descriptionstringUp to 500 characters—
urlstringURL of the MCP server—
authobjectSame as when you connect—
headersobjectReplaces all fixed headers—
secretsobjectMap of slot to secret id. If it is the only thing you send, it only binds and does not touch the connection—
expectedVersionnumberThe version you read. If the stored one is different, it answers 409 instead of overwriting—
{
  "url": "https://mcp.linear.app/mcp",
  "auth": { "type": "apikey-header", "headerName": "X-Api-Key" },
  "expectedVersion": 3,
  "secrets": {
    "auth.token": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
  }
}

Sending secrets together with the change binds the slots again in the same call.

tools is not accepted here: tools are chosen with choose tools.

Response

data has the server after the change, with the fields in get an MCP server.

{
  "status": "success",
  "message": "MCP server updated successfully",
  "data": {
    "id": "QZPHpckDPC58JIVLQA3Z",
    "name": "Linear",
    "description": "Support team issues",
    "url": "https://mcp.linear.app/mcp",
    "transport": "streamable-http",
    "slug": "a1b2c3",
    "authType": "apikey-header",
    "auth": { "type": "apikey-header", "headerName": "X-Api-Key", "headerPrefix": "" },
    "status": "pending_config",
    "lastError": null,
    "serverInfo": { "name": "linear-mcp", "version": "1.4.0" },
    "customHeaderNames": [],
    "discoveredToolsCount": 2,
    "installedToolsCount": 0,
    "lastSyncAt": null,
    "createdAt": "2026-10-28T12:02:11.410Z",
    "updatedAt": "2026-11-03T18:40:12.000Z",
    "version": 4,
    "verified": false,
    "secrets": [
      {
        "slot": "auth.token",
        "state": "authorized",
        "secretId": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
      }
    ],
    "discoveredTools": [
      {
        "name": "create_issue",
        "description": "Create a new issue in Linear",
        "inputSchema": { "type": "object", "properties": { "title": { "type": "string" } } },
        "installed": false
      }
    ],
    "installedTools": [],
    "nextStep": "Test the connection with POST /v1/tools/mcp/QZPHpckDPC58JIVLQA3Z/test: that is when the server lists the tools it offers."
  }
}

What changes when you update

EffectDetail
status goes back to pending_configAlso if you only changed name or description
verified goes back to falseThe previous test no longer counts
installedTools is emptyThe tools stop being available. Their connections to agents are not deleted
Slots become needs_authorizationThey keep their secretId. Bind them again, in this call with secrets or with bind a secret
version goes up by oneUse it as expectedVersion in the next change

To leave it as it was: bind the secrets, test, and choose the same tools. When they are installed again they keep their toolId, and the agents that had them connected use them again.

If you send only secrets, tools stay installed and the secrets are bound.

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTThe body is empty or fails validation. details.issues has the list of problems, or the message No update fields provided
400SECRET_REFERENCE_REQUIREDYou sent a credential inside the connection. When it applies, details.slot names the slot
400INVALID_CONFIGThe name, URL, authentication, or headers are not valid
403FORBIDDENThe person behind the token does not have access to Integrations
404NOT_FOUNDThe server does not exist in this workspace
409RESOURCE_CHANGEDexpectedVersion does not match, or the server changed while it was being saved. Get it again and retry

If the change is saved but a secret in secrets cannot be bound, the response is 200 and data.secretsError has { code, message }.

Notes