All pages

API reference

Change an MCP server

PATCH /v1/mcp-servers/{server_id}

View as Markdown

Send only what changes; a url still reading •••• as it was read keeps what is stored. Needs tools:write and a live key.

Parameters

Name In Type Required Description
server_id path string (uuid) Yes

Body

Sent as JSON. A field this operation does not take is refused, so a typo fails loudly.

Field Type Required Description
allowed_tools array of string or null No
auth_key_id string (uuid) or null No
name string or null No
timeout_ms integer or null No
url string or null No

Answer

200 with McpServerObject.

Errors

Every error is a problem document with a stable code.

Status When
401 The key is missing, mistyped, unknown, revoked or expired.
403 A credential sent somewhere it does not go yet, or a test key.
404 This key reaches no such server.
409 The project already has a server by that name, or it is frozen.
422 Its address or its credential will not do.
429 Too many requests for this key or its organization; see Retry-After.
500 Something went wrong on our side. Quote the request_id to support.

Examples

Change an MCP server
#!/bin/sh
# Change an MCP server. With a live key.
curl -sS --fail-with-body -X PATCH "https://api.aigently.ai/v1/mcp-servers/1d3f5b7d-9f1b-4d3f-c5b7-d9f1b3d5f7b9" \
  -H "Authorization: Bearer $AIGENTLY_API_KEY" \
  --json '{
  "timeout_ms": 12000
}'

Try it

Sends this request to the API from your browser, with a test key. Nothing it does rings a phone.