Files
ITWorx_MCP_Hub-Public/catalog/tools/gitea-file-update.yaml
T

32 lines
1.3 KiB
YAML

{
"apiVersion": "hub.example.com/v1alpha1",
"kind": "ToolManifest",
"metadata": {"name": "Gitea File Update", "slug": "gitea-file-update"},
"spec": {
"canonicalName": "gitea.file.update",
"version": "1.9.0",
"connectorType": "gitea",
"description": "Update one bounded UTF-8 text file on a change branch using the caller-supplied current SHA as an optimistic lock.",
"riskClass": "R2",
"readOnly": false,
"idempotent": false,
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"repositoryRef": {"type": "string", "pattern": "^[a-z0-9][a-z0-9-]{0,127}$"},
"path": {"type": "string", "minLength": 1, "maxLength": 2048},
"branch": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{0,299}$", "maxLength": 300},
"content": {"type": "string", "maxLength": 200000},
"message": {"type": "string", "minLength": 1, "maxLength": 1000},
"expectedSha": {"type": "string", "pattern": "^[0-9a-fA-F]{40,64}$"}
},
"required": ["repositoryRef", "path", "branch", "content", "message", "expectedSha"]
},
"outputSchema": {"type": "object"},
"limits": {"timeoutMs": 15000, "maxOutputBytes": 262144, "maxItems": 1},
"redactionProfile": "documents",
"requiredScopes": ["project:{project}:write"]
}
}