83 lines
1.9 KiB
JSON
83 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "ITWorx MCP Hub Resource Manifest",
|
|
"description": "Governed MCP resource template.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"$id": "https://hub.example.com/schemas/resource-manifest.schema.json",
|
|
"required": [
|
|
"apiVersion",
|
|
"kind",
|
|
"metadata",
|
|
"spec"
|
|
],
|
|
"properties": {
|
|
"apiVersion": {
|
|
"const": "hub.example.com/v1alpha1"
|
|
},
|
|
"kind": {
|
|
"const": "ResourceManifest"
|
|
},
|
|
"metadata": {
|
|
"$ref": "common.schema.json#/$defs/metadata"
|
|
},
|
|
"spec": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"uriTemplate",
|
|
"connectorType",
|
|
"mimeTypes",
|
|
"riskClass",
|
|
"maxBytes",
|
|
"redactionProfile",
|
|
"requiredScopes"
|
|
],
|
|
"properties": {
|
|
"uriTemplate": {
|
|
"type": "string",
|
|
"pattern": "^itworx-[a-z]+://",
|
|
"maxLength": 500
|
|
},
|
|
"connectorType": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9-]+$"
|
|
},
|
|
"mimeTypes": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"maxLength": 100
|
|
}
|
|
},
|
|
"riskClass": {
|
|
"$ref": "common.schema.json#/$defs/riskClass"
|
|
},
|
|
"maxBytes": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 10485760
|
|
},
|
|
"redactionProfile": {
|
|
"enum": [
|
|
"strict",
|
|
"documents",
|
|
"metadata"
|
|
]
|
|
},
|
|
"requiredScopes": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|