Skip to main content
PATCH
/
ai-agents
/
agent-builder
/
mcp-servers
/
{slug}
Update MCP Server
curl --request PATCH \
  --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/mcp-servers/{slug} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "name": "Weather Server",
  "description": "Provides weather data for cities",
  "url": "http://localhost:3002",
  "icon": "http://localhost:3002/icon.png"
}
'
{
  "_id": "myapp_my-mcp-server",
  "appId": "my-app-id",
  "slug": "my-mcp-server",
  "name": "My MCP Server",
  "description": "A Model Context Protocol server",
  "url": "https://mcp.example.com/sse",
  "icon": "https://example.com/icon.png",
  "createdAt": 1700000000000,
  "updatedAt": 1700000000000
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Path Parameters

slug
string
required

Body

application/json
name
string

Updated name of the MCP server (human readable)

Example:

"Weather Server"

description
string

Updated description of the MCP server

Example:

"Provides weather data for cities"

url
string

Updated URL of the MCP server

Example:

"http://localhost:3002"

icon
string

Updated icon for the MCP server

Example:

"http://localhost:3002/icon.png"

Response

MCP server updated successfully

_id
string
Example:

"myapp_my-mcp-server"

appId
string
Example:

"my-app-id"

slug
string
Example:

"my-mcp-server"

name
string
Example:

"My MCP Server"

description
string
Example:

"A Model Context Protocol server"

url
string
Example:

"https://mcp.example.com/sse"

icon
string
Example:

"https://example.com/icon.png"

createdAt
number
Example:

1700000000000

updatedAt
number
Example:

1700000000000