Skip to main content
POST
/
wp-json
/
getmcp
/
v1
/
servers
/
{id}
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "GitHub Tools v2",
    "rate_limit_per_min": 60,
    "description": "Updated tools for GitHub"
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/servers/3"
{
  "id": 3,
  "user_id": 1,
  "name": "GitHub Tools v2",
  "slug": "github-tools",
  "server_id": "c3d4e5f6a1b2c3d4",
  "status": "active",
  "transport_type": "streamable-http",
  "auth_type": "api-key",
  "rate_limit_per_min": 60,
  "settings": {
    "description": "Updated tools for GitHub"
  },
  "endpoint_url": "https://yoursite.com/mcp/github-tools/c3d4e5f6a1b2c3d4",
  "tool_count": 5,
  "created_at": "2025-03-18T10:00:00",
  "updated_at": "2025-03-18T11:30:00"
}

Path Parameters

id
integer
required
The numeric ID of the server to update.

Body Parameters

All fields are optional. Only include fields you want to update.
name
string
New server name.
slug
string
New URL slug. Must be unique across all servers.
description
string
Server description.
status
string
Server status. One of: active, paused, draft.
auth_type
string
Inbound auth type. One of: none, api-key, oauth.
cors_origins
string
Comma-separated allowed CORS origins.
rate_limit_per_min
integer
New rate limit per minute.
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "GitHub Tools v2",
    "rate_limit_per_min": 60,
    "description": "Updated tools for GitHub"
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/servers/3"
{
  "id": 3,
  "user_id": 1,
  "name": "GitHub Tools v2",
  "slug": "github-tools",
  "server_id": "c3d4e5f6a1b2c3d4",
  "status": "active",
  "transport_type": "streamable-http",
  "auth_type": "api-key",
  "rate_limit_per_min": 60,
  "settings": {
    "description": "Updated tools for GitHub"
  },
  "endpoint_url": "https://yoursite.com/mcp/github-tools/c3d4e5f6a1b2c3d4",
  "tool_count": 5,
  "created_at": "2025-03-18T10:00:00",
  "updated_at": "2025-03-18T11:30:00"
}