Skip to content
Proud to collaborate with Microsoft for Startups

agents.mcp-server.test-connection ​

Test reachability and credentials for a registered MCP server

Probe a registered MCP server with its stored credential.

Backs the "Test connection" button: it answers "will my agents actually be able to call this?" without waiting for a session to fail mid-run. Writes the verdict to auth_status so the list view can badge it.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/mcp-serversAPI — manage MCP server registrations

Input Schema ​

FieldTypeRequiredDefaultDescription
mcp_server_uuidstringYes——
organization_uuidstringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
mcp_server_uuidjsonNo——
organization_uuidjsonNo——
reachablebooleanNo——
auth_statusstringNo——
transportjsonNo——
tools_countjsonNo——
detailstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
testedSUCCESSMCP server connection testedmcp_server_uuid, reachable, auth_status, tools_count
failedFAILUREMCP server connection tested failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_MCP_SERVER_NOT_FOUNDMCP server {mcp_server_uuid} was not found in the organization
AGENTS_MCP_AUTH_REJECTEDMCP server {mcp_server_uuid} rejected the stored credential
AGENTS_MCP_AUTH_EXPIREDThe OAuth grant for MCP server {mcp_server_uuid} has expired and cannot be refreshed; the organization must re-authorize it
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:
AGENTS_PROVIDER_FAILEDUpstream provider or runner call failed:
AGENTS_MCP_CALL_FAILEDMCP tool call failed for {tool_name}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.mcp-server.test-connection",
  "initial_data": {
    "mcp_server_uuid": "value",
    "organization_uuid": "value"
  }
}