Skip to content

Filter vMCP tools/list with tool:read, as the single-server path does #6925

Done

Description

@rkb32

Current behavior

pkg/vmcp/core/admission.go (FilterTools and AllowToolCall) checks tool:call only, so a tool:read-only grant has no effect on vMCP.

Wanted

Use the tool:read check, with the same tool:call fallback as the single-server path.

Depends on #6903 (tool:call implies tool:read).

I found this while reviewing #6903. I'd like to work on it if a maintainer agrees it's worth doing. Could you assign it to me once you've had a look? Thanks.

Activity

  1. added
    needs-triage
    on Oct 22, 2026
  2. jhrozek commented on Oct 22, 2026

    @jhrozek
    Contributor

    One correction first. AllowToolCall (pkg/vmcp/core/admission.go:186) has to stay on tool:call. It's the invocation check, and switching it to tool:read would let a read grant call tools, which #4048 rules out. Only FilterTools should move to tool:read.

    For FilterTools, I'd rather fix it in #6903 than in a follow-up. Wrapping the authorizer with the decorator in newAdmission and having FilterTools ask tool:read is a few lines. Without it, #6903 leaves the proxy path and the stateless vMCP path deciding visibility differently. I've suggested that in my review there, so I'd close this one in favor of that.

  3. removed
    needs-triage
    on Oct 23, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions