{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rulebase/json-schema/rulebase-mcp-server-schema.json",
  "title": "McpServer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rulebase-mcp-servers-api-openapi.yml#/components/schemas/McpServer",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "icon_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string"
    },
    "transport": {
      "type": "string",
      "enum": [
        "streamable_http",
        "sse"
      ]
    },
    "auth_type": {
      "type": "string",
      "enum": [
        "none",
        "header",
        "oauth"
      ]
    },
    "access": {
      "type": "string",
      "enum": [
        "organization",
        "personal"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "header_names": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "oauth_client_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_oauth_client_secret": {
      "type": "boolean"
    },
    "oauth_scope": {
      "type": [
        "string",
        "null"
      ]
    },
    "connection": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "connected",
            "needs_connection",
            "needs_reauth",
            "not_required"
          ]
        },
        "connected_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_error": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "status",
        "connected_at",
        "last_error"
      ]
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "access": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ]
          },
          "access_overridden": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "title",
          "description",
          "access",
          "access_overridden"
        ]
      }
    },
    "tools_synced_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "description",
    "icon_url",
    "url",
    "transport",
    "auth_type",
    "access",
    "enabled",
    "header_names",
    "oauth_client_id",
    "has_oauth_client_secret",
    "oauth_scope",
    "connection",
    "tools",
    "tools_synced_at",
    "last_error",
    "created_at",
    "updated_at"
  ]
}