improve tools backend description forwaring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user