You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 847d6eb
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add search support to find_organizations, find_teams, and find_projects (#574)
Add optional query parameter to list endpoints to support filtering by
name/slug. Return up to 25 results with clear messaging when limit is
hit, directing users to use the query parameter to narrow results.
Changes:
- Added ParamSearchQuery schema for consistent search validation
- Updated API client methods (listOrganizations, listTeams,
listProjects) to accept query parameter
- Hardcoded per_page=25 limit in API client (not exposed to callers)
- Updated all three find_* tools to support optional query parameter
- Added warning message when hitting 25 result limit
- Updated tool descriptions to mention search capability and result
limits
Fixes#573
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
output+="You don't appear to be a member of any organizations.\n";
39
+
output+=params.query
40
+
? `No organizations found matching "${params.query}".\n`
41
+
: "You don't appear to be a member of any organizations.\n";
26
42
returnoutput;
27
43
}
28
44
@@ -37,6 +53,10 @@ export default defineTool({
37
53
)
38
54
.join("\n\n");
39
55
56
+
if(organizations.length===RESULT_LIMIT){
57
+
output+=`\n\n---\n\n**Note:** Showing ${RESULT_LIMIT} results (maximum). There may be more organizations available. Use the \`query\` parameter to search for specific organizations.`;
58
+
}
59
+
40
60
output+="\n\n# Using this information\n\n";
41
61
output+=`- The organization's name is the identifier for the organization, and is used in many tools for \`organizationSlug\`.\n`;
output+=`\n---\n\n**Note:** Showing ${RESULT_LIMIT} results (maximum). There may be more projects available. Use the \`query\` parameter to search for specific projects.`;
output+=`\n---\n\n**Note:** Showing ${RESULT_LIMIT} results (maximum). There may be more teams available. Use the \`query\` parameter to search for specific teams.`;
0 commit comments