Skip to main content
PATCH
/
api
/
mcp-servers
/
{mcpServerId}
Update MCP server
curl --request PATCH \
  --url http://localhost:8080/api/mcp-servers/{mcpServerId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "name": "Updated Server Name",
  "url": "https://new-server-url.example.com",
  "description": "Updated description",
  "approval_policy": "auto_approve_read_only",
  "transport": "WebSocket",
  "request_headers": {
    "Authorization": "Bearer new-token",
    "User-Agent": "MCP-Client/2.0"
  }
}
'
{
  "message": "MCP server updated successfully",
  "status": "success",
  "error": null,
  "data": {
    "id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69",
    "organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
    "url": "https://new-server-url.example.com",
    "name": "Updated Server Name",
    "approval_policy": "auto_approve_read_only",
    "transport": "WebSocket",
    "description": "Updated description",
    "request_headers": {
      "Authorization": "Bearer new-token",
      "User-Agent": "MCP-Client/2.0"
    },
    "updated_at": 1751401500000
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Path Parameters

mcpServerId
string
required

MCP server ID

Example:

"mcp_8c180796-e6d7-4343-88b5-5df0846fef69"

Body

application/json
name
string
url
string
description
string
approval_policy
string
transport
string
request_headers
object

Response

MCP server updated successfully

message
string
status
string
error
string | null
data
object