Skip to main content
PUT
/
api
/
mcp-server
/
update
/
{server_id}
Mcp Server Update
curl --request PUT \
  --url https://app.apigene.ai/api/mcp-server/update/{server_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "config": {
    "url": "<string>",
    "headers": {}
  },
  "enabled": true,
  "server_type": "apigene",
  "icon_url": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "config": {
    "url": "<string>",
    "headers": {}
  },
  "enabled": true,
  "server_type": "apigene",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "[email protected]",
  "icon_url": "apigene.ai",
  "api_name": "<string>",
  "global_spec": true
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'

Path Parameters

server_id
string
required

Body

application/json

Request model for updating an MCP server

name
string | null

Name of the MCP server

config
MCPServerConfig · object

MCP server configuration

enabled
boolean | null

Whether the MCP server is enabled

server_type
enum<string> | null

Type of MCP server (public/private)

Available options:
apigene,
public
icon_url
string | null

Icon URL of the MCP server for display

Response

Successful Response

Response model for MCP server

id
string
required

Unique identifier for the MCP server

name
string
required

Name of the MCP server

config
MCPServerConfig · object
required

MCP server configuration

enabled
boolean
required

Whether the MCP server is enabled

server_type
enum<string>
required

Type of MCP server (public/private)

Available options:
apigene,
public
created_at
string<date-time>
required

When the MCP server was created

updated_at
string<date-time>
required

When the MCP server was last updated

created_by
string<email>
required

Email of the user who created the MCP server

icon_url
string
default:apigene.ai

Icon URL of the MCP server for display

api_name
string | null

API name for APIGENE type servers

global_spec
boolean | null

Whether this is a global spec for APIGENE type servers