50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"backends": {
|
|
"gitea": {
|
|
"backend": "stdio",
|
|
"command": "/opt/gitea-mcp/gitea-mcp --host ${GITEA_URL} --token ${GITEA_TOKEN}",
|
|
"tool_filter": ["get_*", "list_*", "search_*", "!delete_*", "!create_*"],
|
|
"tool_overrides": {
|
|
"get_file_contents": {
|
|
"summary": "Read one file from a repository",
|
|
"max_output_chars": 12000,
|
|
"example_args": {
|
|
"owner": "myorg",
|
|
"repo": "demo-repo",
|
|
"ref": "main",
|
|
"filePath": "README.md"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tree": {
|
|
"path": "/",
|
|
"type": "node",
|
|
"summary": "Root",
|
|
"children": [
|
|
{
|
|
"path": "/repo",
|
|
"type": "node",
|
|
"summary": "Repository operations",
|
|
"children": [
|
|
{
|
|
"path": "/repo/read",
|
|
"type": "node",
|
|
"summary": "Read repository data",
|
|
"children": [
|
|
{
|
|
"path": "/repo/read/get_file",
|
|
"type": "tool",
|
|
"summary": "Read one file",
|
|
"backend_ref": "gitea",
|
|
"tool_name": "get_file_contents"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|