{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-update-server-request-schema.json",
  "title": "UpdateServerRequest",
  "description": "Partial update for an MCP server; omitted fields are left unchanged.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-management-openapi.json#/components/schemas/UpdateServerRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "New MCP prefix name (alphanumeric only)"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "New human-readable display name"
    },
    "command": {
      "type": [
        "string",
        "null"
      ],
      "description": "New server command"
    },
    "args": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "New command-line arguments"
    },
    "env": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "New environment variables"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Remote server URL (direct mode)"
    },
    "headers": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom HTTP headers for remote servers"
    },
    "enabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Enable or disable the server"
    },
    "icon_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Manual override icon URL"
    }
  }
}