Test an MCP server

SDK platic.tools.mcp.test()

Test the connection using its bound secrets and save the tool list in discoveredTools. A successful test sets verified: true. Use it:

  • after binding a secret or completing OAuth,
  • after updating the connection,
  • when the server changed its tools and you want to see them.

Example

await platic.tools.mcp.test("mcp_123");

Path parameters

ParameterTypeDescriptionRequired
mcpIdstringId of the MCP server✓

Request body

It has no body.

Response

data has the full server, with the fields in get an MCP server, plus verification.

{
  "status": "success",
  "message": "MCP server verified",
  "data": {
    "id": "QZPHpckDPC58JIVLQA3Z",
    "name": "Linear",
    "description": "Support team issues",
    "url": "https://mcp.linear.app/mcp",
    "transport": "streamable-http",
    "slug": "a1b2c3",
    "authType": "bearer",
    "auth": { "type": "bearer" },
    "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-10-28T12:05:02.000Z",
    "version": 1,
    "verified": true,
    "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" },
            "teamId": { "type": "string" }
          },
          "required": ["title", "teamId"]
        },
        "installed": false
      },
      {
        "name": "search_issues",
        "description": "Search issues by text query",
        "inputSchema": {
          "type": "object",
          "properties": { "query": { "type": "string" } }
        },
        "installed": false
      }
    ],
    "installedTools": [],
    "verification": { "confirmed": true },
    "nextStep": "Verified. Choose which tools to install with POST /v1/tools/mcp/QZPHpckDPC58JIVLQA3Z/tools/sync: create_issue, search_issues."
  }
}

Response fields

FieldTypeDescription
verifiedbooleantrue if the connection passed the test
verification.confirmedbooleanThe result of this test
discoveredToolsarrayThe tools the server offers now
serverInfoobject | nullWhat the server said about itself
The rest—See get an MCP server

message is MCP server verified when it passed and The connection did not pass the test when it did not.

Errors

Statusdetails.codeWhen it happens
403FORBIDDENThe person behind the token does not have access to Integrations
404NOT_FOUNDThe server does not exist in this workspace
409AUTHORIZATION_REQUIREDA credential is missing: a slot without a secret, or an OAuth server that is not authorized
409MCP_REAUTH_REQUIREDThe server needs to be authorized again from Platica
409MCP_CONNECTION_CHANGEDThe server changed during the test. Repeat the call
409RESOURCE_CHANGEDThe connection changed during the test. Repeat the call
409TOO_MANY_TOOLSThe server offers more tools than allowed
409INVALID_CAPABILITYThe server offers tools with repeated or invalid names
409CAPABILITY_TOO_LARGEThe server's list of tools is too large
503OPERATION_UNCONFIRMEDThe test could not be completed, for example because the server did not respond. Get the server before retrying

Notes

  • Testing installs nothing. New tools arrive with installed: false until you add them with choose MCP tools.
  • The test is valid for the connection and the secrets it was made with. If you change the connection, bind another secret, or rotate one, test again before choosing tools.
  • The call waits for the server for up to 90 seconds.