Files
ITWorx_MCP_Hub-Public/catalog/tools/gitea-code-search.yaml
T

126 lines
3.0 KiB
YAML

{
"apiVersion": "hub.example.com/v1alpha1",
"kind": "ToolManifest",
"metadata": {
"name": "Gitea Code Search",
"slug": "gitea-code-search"
},
"spec": {
"canonicalName": "gitea.code.search",
"version": "1.3.0",
"connectorType": "gitea",
"description": "Search actual UTF-8 code in one registered repository and return bounded line matches with file URIs.",
"riskClass": "R1",
"readOnly": true,
"idempotent": true,
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"repositoryRef": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
},
"ref": {"type": ["string", "null"], "maxLength": 300},
"pathPrefix": {"type": "string", "maxLength": 2048, "default": ""},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 20
},
"cursor": {
"type": [
"string",
"null"
],
"maxLength": 500,
"default": null
}
},
"required": [
"repositoryRef",
"query"
]
},
"outputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"fileUri": {
"type": "string",
"pattern": "^itworx-git://",
"maxLength": 2048
},
"repositoryRef": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
},
"path": {
"type": "string",
"maxLength": 1000
},
"ref": {
"type": "string",
"maxLength": 300
},
"snippet": {
"type": "string",
"maxLength": 2000
}
},
"required": [
"fileUri",
"repositoryRef",
"path",
"ref",
"snippet"
]
}
},
"nextCursor": {
"type": [
"string",
"null"
],
"maxLength": 500
},
"truncated": {
"type": "boolean"
},
"generatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"items",
"nextCursor",
"truncated",
"generatedAt"
]
},
"limits": {
"timeoutMs": 15000,
"maxOutputBytes": 196608,
"maxItems": 50
},
"redactionProfile": "documents",
"requiredScopes": [
"project:{project}:read"
]
}
}