Skip to content

Test MCP connection health

POST
/api/mcp-connections/{id}/test

Performs a live health check against the MCP server. The test verifies that the server is reachable and authentication is valid. The connection’s status and lastHealthCheckAt fields are updated based on the result. Use this to verify connectivity after initial setup or to diagnose issues.

id
required
string format: uuid

The unique identifier of the MCP connection to test.

The health check completed. Check the ‘status’ field for the result (‘active’ or ‘error’).

Result of testing an MCP connection’s health. The test attempts to reach the server and verify authentication.

object
status
required

Result of the health check. ‘active’ means the server responded successfully. ‘error’ means the server was unreachable or returned an error.

string
Example
active
lastHealthCheckAt

Timestamp of this health check.

string | null format: date-time
Example
2026-03-27T10:15:00.000Z

No MCP connection exists with the given ID in the authenticated tenant.

Standard error response returned by all endpoints on failure.

object
error
required

A human-readable error message describing what went wrong.

string
Example
Conversation not found