[FEATURE] Per-Model MCP Filtering

Open 💬 1 comment Opened Jun 18, 2026 by stevenhuang010

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I'm enabling an MCP but I only want it to be used by a white-list of models (data retention reasons, context usage / cost), etc). I tried implementing this via PreToolUse hook, but since the model is not sent to these hooks, I've had to resort to brittle transcript parsing logic to determine the current model before firing the MCP request.

Proposed Solution

It'd be ideal if model-provider was sent to these lifecycle hooks / a way to send it directly to the MCP server, so the server can enforce it.

Alternative Solutions

  • Transcript parsing of .jsonl
  • Trying to Claude Code to run /model to get model before tool use, but currently not possible.

Priority

Critical - Blocking my work

Feature Category

MCP server integration

Use Case Example

_No response_

Additional Context

Want to only allow MCP server access if the model is ZDR / white-listed.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗