Files
ITWorx_MCP_Hub-Public/contracts/schemas/capability-pack.schema.json
T

74 lines
1.8 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ITWorx MCP Hub Capability Pack",
"description": "Reusable authorization bundle.",
"type": "object",
"additionalProperties": false,
"$id": "https://hub.example.com/schemas/capability-pack.schema.json",
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"properties": {
"apiVersion": {
"const": "hub.example.com/v1alpha1"
},
"kind": {
"const": "CapabilityPack"
},
"metadata": {
"$ref": "common.schema.json#/$defs/metadata"
},
"spec": {
"type": "object",
"additionalProperties": false,
"required": [
"description",
"allowedRiskClasses",
"scopeTemplates",
"toolAllowPatterns",
"toolDenyPatterns",
"environmentConstraints"
],
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"allowedRiskClasses": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "common.schema.json#/$defs/riskClass"
}
},
"scopeTemplates": {
"$ref": "common.schema.json#/$defs/patternList"
},
"toolAllowPatterns": {
"$ref": "common.schema.json#/$defs/patternList"
},
"toolDenyPatterns": {
"$ref": "common.schema.json#/$defs/patternList"
},
"environmentConstraints": {
"type": "object",
"additionalProperties": false,
"required": [
"productionWrites"
],
"properties": {
"productionWrites": {
"type": "boolean"
}
}
}
}
}
}
}