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
[BUG]: Admin UI Associated Tools Select all does not limit to searched returned values #3950
Thanks, @majerus1223 ! Bug confirmed - In mcpgateway/static/admin.js, the initToolSelect() function's "Select All" button handler (lines 9940-10032) does not consider active search filters when selecting tools.
Current Behavior:
When the "Select All" button is clicked (line 9940), it:
Checks for pagination/infinite-scroll (lines 9954-9961)
If paginated, fetches ALL tool IDs from /admin/tools/ids endpoint (lines 9983-9990)
Does NOT pass the current search term to this endpoint
Selects all tools in the system, not just the filtered/searched results
Activity
bogdanmariusc10 commentedon Apr 1, 2026
Thanks, @majerus1223 ! Bug confirmed - In
mcpgateway/static/admin.js, theinitToolSelect()function's "Select All" button handler (lines 9940-10032) does not consider active search filters when selecting tools.Current Behavior:
When the "Select All" button is clicked (line 9940), it:
/admin/tools/idsendpoint (lines 9983-9990)Affected Code Location:
File:
mcpgateway/static/admin.jsFunction:
initToolSelect()Lines: 9940-10032 ("Select All" button click handler)
Specifically: Lines 9983-9990 (fetch call that needs search parameter)
Similar Issue:
The same bug likely exists for:
initResourceSelect())initPromptSelect())Recommendation:
Add search term parameter to the
/admin/tools/idsAPI call when fetching all tool IDs for "Select All" functionality.fix: Admin UI Select All now respects search filters for tools/resour…
fix(ui): Admin UI Select All now respects search filters for tools/re…
fix(ui): Admin UI "Select All" now respects search filters for tools/…
fix(ui): Admin UI "Select All" now respects search filters for tools/…
fix(ui): Admin UI "Select All" now respects search filters for tools/…
fix(ui): Admin UI "Select All" now respects search filters for tools/…