improve tools backend description forwaring

This commit is contained in:
2026-04-14 01:43:46 +02:00
parent fd085cbe87
commit 1bf07da725
6 changed files with 91 additions and 7 deletions

View File

@@ -21,6 +21,19 @@ TOOLS = [
"additionalProperties": False,
},
},
{
"name": "list_branches",
"description": "List all branches in a repository for a given owner and repo.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {"type": "string"},
"repo": {"type": "string"}
},
"required": ["owner", "repo"],
"additionalProperties": False
}
},
{
"name": "delete_file",
"title": "Delete file",
@@ -71,7 +84,7 @@ for line in sys.stdin:
{
"jsonrpc": "2.0",
"id": msg_id,
"result": {"tools": [TOOLS[0]], "nextCursor": "page-2"},
"result": {"tools": [TOOLS[0], TOOLS[1]], "nextCursor": "page-2"},
}
)
else:
@@ -79,7 +92,7 @@ for line in sys.stdin:
{
"jsonrpc": "2.0",
"id": msg_id,
"result": {"tools": [TOOLS[1]]},
"result": {"tools": [TOOLS[2]]},
}
)
continue