Skip to main content
PATCH
/
mcp-servers
/
{mcpServerId}
Update MCP Server
curl --request PATCH \
  --url https://api.ag.dev/v0.1/mcp-servers/{mcpServerId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "type": "sse"
}'
{
  "id": "<string>",
  "organizationId": "<string>",
  "name": "<string>",
  "url": "<string>",
  "type": "sse",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

mcpServerId
string
required

MCP server ID

Body

application/json
name
string

Human-readable name for the MCP server

url
string<uri>

URL of the MCP server

type
enum<string>

Type of MCP server connection

Available options:
sse,
streamableHttp

Response

MCP server updated successfully

id
string
required

MCP server ID

organizationId
string
required

Organization ID

name
string
required

Human-readable name for the MCP server

url
string<uri>
required

URL of the MCP server

type
enum<string>
required

Type of MCP server connection

Available options:
sse,
streamableHttp
createdAt
string<date-time>
required

Creation timestamp

updatedAt
string<date-time>
required

Last update timestamp