agents.mcp-server.update ​
Update a registered MCP server (url, description, transport, credential link)
Edit a registered MCP server: URL, description, transport, or credential.
Registration used to be a one-way door — there was no way to rotate a credential, repoint a moved server, or pin a transport after the fact. The only recourse was delete-and-re-register, which drops every AgentConfig attachment with it.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| API | POST /api/agents/mcp-servers | API — manage MCP server registrations |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
mcp_server_uuid | string | Yes | — | — |
organization_uuid | string | Yes | — | — |
name | string | No | — | — |
server_url | string | No | — | — |
description | string | No | — | — |
transport | string | No | — | streamable_http |
credential_connection_uuid | string | No | — | UUID of a CloudConnection of type 'mcp'. Pass detach_credential=true to clear the link instead. |
detach_credential | boolean | No | — | Unlink the credential connection, making the server anonymous again |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
mcp_server_uuid | json | No | — | — |
organization_uuid | json | No | — | — |
updated_fields | json | No | — | — |
credential_connection_uuid | json | No | — | — |
transport | json | No | — | — |
name | json | No | — | — |
server_url | json | No | — | — |
description | json | No | — | — |
detach_credential | json | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
updated | SUCCESS | MCP server updated | mcp_server_uuid, organization_uuid, updated_fields |
failed | FAILURE | MCP server updated failed | failure_reason, error, error_type, failed_at_state, failed_step, failed_layer |
Business Errors ​
| Code | Message Template |
|---|---|
AGENTS_ORGANIZATION_CONTEXT_INVALID | Authenticated organization context is missing or does not match the workflow input |
AGENTS_MCP_SERVER_NOT_FOUND | MCP server {mcp_server_uuid} was not found in the organization |
AGENTS_MCP_AUTH_REJECTED | MCP server {mcp_server_uuid} rejected the stored credential |
AGENTS_MCP_AUTH_EXPIRED | The OAuth grant for MCP server {mcp_server_uuid} has expired and cannot be refreshed; the organization must re-authorize it |
AGENTS_VALIDATION_FAILED | Workflow input or domain state failed validation: |
AGENTS_CONFLICT | Conflicting agent domain state: |
AGENTS_PROVIDER_FAILED | Upstream provider or runner call failed: |
AGENTS_MCP_CALL_FAILED | MCP tool call failed for {tool_name}: |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents.mcp-server.update",
"initial_data": {
"mcp_server_uuid": "value",
"organization_uuid": "value"
}
}