{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-autoconfig-response-schema.json",
  "title": "AutoconfigResponse",
  "description": "Response from AI permission auto-configuration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-config-perms-api-openapi.yml#/components/schemas/AutoconfigResponse",
  "properties": {
    "server": {
      "type": "string",
      "title": "Server",
      "description": "MCP server name"
    },
    "tools": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tools",
      "description": "Tool permission flags (includes 'reasoning' per item)"
    },
    "resources": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resources",
      "description": "Resource permission flags"
    },
    "prompts": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prompts",
      "description": "Prompt permission flags"
    },
    "descriptions": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Descriptions",
      "description": "Element name → human-readable description from interface-lock metadata"
    }
  },
  "type": "object",
  "required": [
    "server"
  ]
}