Skip to content

Re-apply tool filtering when tools/list_changed fires #5749

Closed as not planned

Description

@JAORMX

Part of #5743 (Workstream B: 2025-11-25 compliance).

Gap

Tool filtering/override middleware rewrites tools/list responses and gates tools/call, but nothing reacts to notifications/tools/list_changed (pkg/mcp/tool_filter.go). A backend that changes its tool set after the filtered list was served opens a stale-view / filter-bypass window (a renamed tool could evade a name-based filter until the client re-lists).

Proposed work

  • When a tools/list_changed notification traverses the proxy, ensure the next tools/list re-applies filters (it does — verify) AND consider whether tools/call gating needs a refreshed tool map.
  • Ensure the notification itself is forwarded to clients (depends on the streamable server→client channel issue) so they actually re-list.

Depends on: the streamable proxy server→client channel issue. Priority: Medium.

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. JAORMX commented on Jul 8, 2026

    @JAORMX
    CollaboratorAuthor

    Folding into #5744 (re-filtering is a direct consequence of the server→client channel work there). Tracked in the epic #5743 follow-ups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions