{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webrix/main/json-schema/webrix-plugin-schema.json",
  "title": "Plugin",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/webrix-api-openapi.json#/components/schemas/Plugin",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier"
    },
    "slug": {
      "type": "string",
      "description": "URL-friendly identifier"
    },
    "name": {
      "type": "string",
      "description": "Display name"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Human-readable description. Null when the plugin was created without one — note this differs from skills, commands and toolkits, which store an empty string in the same situation."
    },
    "version": {
      "type": "string",
      "description": "Plugin version"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "draft"
      ],
      "description": "Plugin visibility status"
    },
    "author": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "homepage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plugin homepage URL"
    },
    "repository": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plugin source repository URL"
    },
    "keywords": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Searchable keywords"
    },
    "skill_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of skills included in this plugin"
    },
    "command_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of commands included in this plugin"
    },
    "rule_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of rules included in this plugin"
    },
    "hook_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of hooks included in this plugin"
    },
    "sub_agent_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of sub-agents included in this plugin"
    },
    "mcps": {
      "$ref": "#/$defs/PluginMcps"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Organization this record belongs to."
    },
    "verified": {
      "type": "boolean",
      "description": "True when the plugin has been verified by the organization."
    }
  },
  "$defs": {
    "PluginMcps": {
      "type": "object",
      "description": "MCP resources associated with the plugin",
      "properties": {
        "toolkit_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "IDs of toolkits included in this plugin"
        },
        "integration_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "IDs of integrations included in this plugin"
        },
        "rawMcpServers": {
          "type": "object",
          "additionalProperties": true,
          "description": "Raw MCP server configurations keyed by server name"
        }
      }
    }
  }
}