Skip to content

[BUG]: Admin UI Associated Tools Select all does not limit to searched returned values #3950

Closed

Description

@majerus1223

🐞 Bug Summary

Admin UI Associated Tools Select all does not limit to searched returned values


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • [x ] mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Go to Admin UI
  2. Add a virtual server
    3.select MCP servers, and tools
  3. Filter for a tool that returns a couple.
  4. Press select all.
  5. Will show all tools selected, not the ones you have scoped in the search.

🤔 Expected Behavior

What should have happened instead?
Scope the select all to the filter you have active.

📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
K8s latest

Image Image

Activity

  1. added
    bugSomething isn't working
    triageIssues / Features awaiting triage
    on Mar 31, 2026
  2. added
    uiUser Interface
    SHOULDP2: Important but not vital; high-value items that are not crucial for the immediate release
    apiREST API Related item
    and removed
    triageIssues / Features awaiting triage
    on Apr 1, 2026
  3. bogdanmariusc10 commented on Apr 1, 2026

    @bogdanmariusc10
    Collaborator

    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

    Affected Code Location:

    File: mcpgateway/static/admin.js
    Function: 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:

    • Resources selector (initResourceSelect())
    • Prompts selector (initPromptSelect())
    • Edit server mode tool selector

    Recommendation:
    Add search term parameter to the /admin/tools/ids API call when fetching all tool IDs for "Select All" functionality.

  4. added a commit that references this issue on Apr 1, 2026
    da13c65
  5. added a commit that references this issue on Apr 5, 2026
    cf7a66b
  6. added a commit that references this issue on Apr 5, 2026
    8ee277a
  7. added a commit that references this issue on Apr 10, 2026
    68b6de3
  8. added a commit that references this issue on Apr 13, 2026
    697b9bb
  9. added a commit that references this issue on May 13, 2026
    19dc894
  10. removed
    bugSomething isn't working
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

SHOULDP2: Important but not vital; high-value items that are not crucial for the immediate releaseapiREST API Related itemuiUser Interface

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions