Skip to content

Commit 5521758

Browse files
committed
#7493 making callTools => limit optional
1 parent b9e5d04 commit 5521758

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ai/mcp/server/github-workflow/services/toolService.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,15 @@ function initializeToolMapping() {
9797
}
9898
}
9999

100-
function listTools({ cursor = 0, limit = 10 } = {}) {
100+
function listTools({ cursor = 0, limit } = {}) {
101101
initializeToolMapping();
102+
103+
if (!limit) {
104+
return {
105+
tools: allTools,
106+
nextCursor: null
107+
};
108+
}
102109

103110
const start = cursor;
104111
const end = start + limit;

0 commit comments

Comments
 (0)