# Coding Agent MCP Allowlist and Plugin Vetting

> Vet and allowlist the plugins and MCP servers Claude Code, Copilot, Codex and Cursor load, gate remote servers with agentgateway, sandbox local ones.

- Canonical URL: https://webofmike.com/coding-agent-mcp-allowlist/
- Author: Mike Moore (https://webofmike.com/about/)
- Published: 2026-11-29
- Last modified: 2026-11-29
- Tags: MCP, Security, AI Agents, Platform Engineering, Kubernetes
- Cite as: Mike Moore, "Coding Agent MCP Allowlist and Plugin Vetting", Web of Mike (webofmike.com), 2026-11-29. https://webofmike.com/coding-agent-mcp-allowlist/


Coding agent plugins and MCP servers get vetted and allowlisted in two layers: each client's managed settings decide what can load, and agentgateway decides which remote MCP servers and tools are reachable at all. Neither layer confines what a local server can read on disk, so run each local server in an OS sandbox and keep remote ones in containers behind the gateway. This is the allowlist chapter of my [shadow MCP servers guide](/shadow-mcp-servers/). If you need the definition first, start with [what shadow MCP is](/what-is-shadow-mcp/): MCP servers running against company systems that nobody approved.

This page assumes you already know what is running. It is about what is allowed to run next.

Last checked November 29, 2026: agentgateway docs labelled latest (releases through v1.7.0), plus the Claude Code, GitHub Copilot, Codex and Cursor admin docs linked below.

## What kinds of tools handle vetting and allowlisting of third-party plugins used by coding agents?

Three kinds of tools do the work, and you need all three. The coding agent's own managed settings are load-time allowlists for MCP servers and plugin marketplaces. A gateway in the network path, such as [agentgateway](https://agentgateway.dev/), only federates the remote servers you approved and authorizes each tool call with CEL. An OS sandbox per local server process limits what an approved server can touch. Behind all three sits a [registry of record](/private-mcp-registry/) that holds the approved list, so the three layers are generated from one place instead of drifting apart.

| Layer | What it decides | What it can't see |
|---|---|---|
| Client managed settings | Which servers, plugins and marketplaces load on a developer's machine | What an approved server does with its arguments |
| agentgateway | Which remote servers exist for a client, which tools it can list and call, and (with a route or guardrail policy) which arguments get through | What a local stdio server reads on disk, including one the gateway launched |
| OS sandbox per server | Which paths and network destinations the server process can reach | Whether the call should have happened at all |

## How do you vet a plugin before anyone can install it?

A plugin is now a package of skills and MCP servers. GitHub's [Agent Plugins 1.0 changelog](https://github.blog/changelog/2026-08-12-agent-plugins-1-0-in-vs-code-copilot-cli-and-the-copilot-app/) describes an open standard that "packages agent skills and MCP servers into one installable plugin," published on August 6, 2026 with AWS, Anysphere, Microsoft, OpenAI and Vercel. A plugin-bundled MCP server is still an MCP server. Vet it and allowlist it the same way, and GitHub's own changelog says to pair plugin settings with MCP allowlists for that reason.

Claude Code's [plugin security page](https://code.claude.com/docs/en/plugins/security) states the risk in its first sentence: an installed plugin "can execute arbitrary code on your machine with your user privileges." It also says a marketplace's name doesn't tell you what each plugin in it does. A marketplace tells you who publishes the catalog, not what is inside each entry.

Before a plugin or server goes on the approved list, I would want answers to these questions:

- Who publishes the source repository, and is the version or commit pinned?
- What is the exact command and argument list, or the exact URL? That is what every client allowlist below matches on.
- Is it stdio (runs on the laptop) or remote (runs somewhere you can put behind a gateway)?
- Which tools does it list, and do any of them take a file path as an argument?
- Which MCP client library does it use, and which version? The FastMCP advisories below are client-side bugs.
- Does it update itself? Claude Code's docs note that auto-update can change the files you reviewed.

## What does each coding agent's managed allowlist match on?

Every major coding agent now ships an admin allowlist. They differ in file name and syntax, not in the basic rule: match on command or URL, never on a label. The sections below describe each one from its vendor's docs, in no particular order.

| Client | Where the policy lives | Matches remote servers on | Matches local servers on | Plugin or marketplace control |
|---|---|---|---|---|
| Claude Code | Managed settings, or `managed-mcp.json` for a fixed set | `serverUrl` (wildcards allowed) | `serverCommand` (exact command and every argument) | `strictKnownMarketplaces`, `blockedMarketplaces`, `disableSideloadFlags` |
| GitHub Copilot | Enterprise `managed-settings.json` | `serverUrl` | `serverCommand` | `enabledPlugins`, `extraKnownMarketplaces`, `strictKnownMarketplaces` |
| Codex | `requirements.toml` `mcp_servers` | `identity.url` | `identity.command` (string or structured with args) | Marketplace source requirements, `features.plugins` |
| Cursor (Enterprise) | Team dashboard, MCP Configuration | URL pattern | Full command string pattern | Team marketplace |

### Claude Code

Claude Code's [managed MCP docs](https://code.claude.com/docs/en/managed-mcp) give two shapes. A `managed-mcp.json` file at the system path loads only the servers it defines. An approved catalog uses `allowedMcpServers` together with `allowManagedMcpServersOnly: true`. The lock matters: without it, allowlists from every settings scope merge, including a user's own `~/.claude/settings.json`, so a user can broaden what your list permits.

Entries match on `serverUrl` for remote servers and `serverCommand` for stdio servers, where every argument must match in order. The docs are blunt about the third option: "A `serverName` entry, in either list, is not a security control," because a user can call any server `github`.

For plugins, the [organization plugin docs](https://code.claude.com/docs/en/plugins/org) list `strictKnownMarketplaces` (an allowlist of marketplace sources) and `blockedMarketplaces` (checked first). `disableSideloadFlags` rejects `--plugin-dir` and similar flags, but the docs say it "doesn't restrict `.mcp.json`, `claude mcp add`, or SDK-provided servers," and tell you to pair it with `allowedMcpServers`.

### GitHub Copilot

GitHub's [enterprise allowlist docs](https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist) put `allowedMcpServers` and `deniedMcpServers` in an enterprise `managed-settings.json`, matched by name, server URL or command. Clients evaluate in a fixed order: built-in default servers are always allowed, a deny match blocks, a server missing from a present allowlist blocks, and a URL or command with an unresolved variable such as `${VARIABLE}` blocks because the client can't verify it.

One gotcha from the same page: these lists apply to servers in user and repository settings but not to servers defined in repository custom agent profiles. GitHub points to the Copilot firewall for those.

Plugin governance uses `enabledPlugins`, `extraKnownMarketplaces` and `strictKnownMarketplaces` in the same file, for Copilot Business and Enterprise, per the Agent Plugins changelog.

### Codex

OpenAI's [managed configuration docs](https://learn.chatgpt.com/docs/enterprise/managed-configuration) restrict MCP servers with an `mcp_servers` approved list in `requirements.toml`. Stdio servers match on `command` and streamable HTTP servers on `url`, and a server is enabled only when both its name and identity match an approved entry. The string form of `identity.command` matches only the command and ignores arguments. To pin the arguments, use the structured form, where the executable, argument count and argument order must match. An empty `mcp_servers` list disables all MCP servers. Plugin-bundled servers use the same identity shapes under the plugin's own `mcp_servers` table.

The gotcha: the docs say the managed network proxy doesn't filter MCP servers, and point back to the `mcp_servers` list as the control for them.

### Cursor

Cursor's [enterprise integration docs](https://cursor.com/docs/enterprise/model-and-integration-management) put the MCP Allowlist in the team dashboard under MCP Configuration, Enterprise only. Each approved server is a command or URL entry with wildcards. For stdio servers the match is against the command and all arguments joined with spaces, and the docs suggest a leading `*` because the shell resolves `npx` to a full path. Each entry also carries per-server tool controls and a network mode for local servers: Allow all, Allowlist, Deny all, or No sandbox.

Two things the docs say plainly. Adding a server to the allowlist doesn't push it to anyone's machine. And `~/.cursor/permissions.json` with `mcpAllowlist` in `server:tool` syntax is described as the per-user MCP auto-run allowlist, a different job from the team load list.

All four match on command or URL. None of them can see what an approved server does with the arguments it receives. For the files these clients actually read, see [every MCP client's config path](/mcp-config-file-locations/). For finding servers already on laptops, see [MCP servers on employee machines](/mcp-servers-on-employee-machines/).

## How does agentgateway allowlist remote MCP servers?

agentgateway is the open-source gateway layer here, and it runs two ways: [standalone](https://agentgateway.dev/docs/standalone/latest/) from a config file, and on [Kubernetes](https://agentgateway.dev/docs/kubernetes/latest/) as a Gateway API implementation. Both do the same job for MCP. Field names differ, so each claim below says which mode it comes from.

### How do you make the gateway the only MCP endpoint?

Give clients one URL: the gateway. Only targets configured on the gateway exist for those clients. In standalone mode, several targets in one backend produce one federated `tools/list`, per the [MCP configuration modes docs](https://agentgateway.dev/docs/standalone/latest/documentation/mcp/configuration-modes/). A server that isn't a target isn't reachable through it. Each target can carry its own `backendAuth`, so a token for one server is never sent to another, and an optional CEL `condition` that excludes the target before the gateway contacts it.

On Kubernetes, [virtual MCP](https://agentgateway.dev/docs/kubernetes/latest/documentation/mcp/virtual/) federates servers into one endpoint with a label selector on an `AgentgatewayBackend`. The selector picks only Service ports that set `appProtocol: agentgateway.dev/mcp` (Streamable HTTP) or `agentgateway.dev/mcp-sse` (SSE).

Then make the gateway mandatory. Default-deny egress so clients can't go around it. On Kubernetes that is a NetworkPolicy, which is Kubernetes behavior, not an agentgateway feature; [the default-deny egress setup](/default-deny-egress-mcp-kubernetes/) has the policy set, and [agentgateway as an egress proxy](/agentgateway-egress-proxy/) covers destination allowlists. [How to stop shadow MCP servers](/stop-shadow-mcp-servers/) is the end-to-end version of this step.

### How do you allow only some tools in standalone mode?

Standalone [MCP authorization](https://agentgateway.dev/docs/standalone/latest/documentation/configuration/security/mcp-authz/) attaches CEL `mcpAuthorization` rules to a route or an MCP backend. Rules can match `mcp.tool.name`, `mcp.tool.target` and JWT claims. A tool that isn't allowed is filtered out of the list response, "so unauthorized clients never see it." This example is from those docs:

```yaml
mcp:
  port: 3000
  policies:
    mcpAuthorization:
      rules:
      # Allow anyone to call 'echo'
      - 'mcp.tool.name == "echo"'
      # Only the test-user can call 'add'
      - 'jwt.sub == "test-user" && mcp.tool.name == "add"'
  targets:
  - name: everything
    stdio:
      cmd: npx
      args: ["@modelcontextprotocol/server-everything"]
```

When several servers sit behind one listener, match on `mcp.tool.target` to give each target its own rules. The docs note that per-target rules filter tools after each target responds, so the gateway still initializes a hidden target. Use a target `condition` if the target shouldn't be contacted at all.

### How do you allow only some tools on Kubernetes?

On Kubernetes, an `AgentgatewayPolicy` with `backend.mcp.authorization` targets an `AgentgatewayBackend`. The [tool access docs](https://agentgateway.dev/docs/kubernetes/latest/documentation/mcp/tool-access/) say that by default all tool access is allowed, so attach a policy. The shape from those docs:

```yaml
apiVersion: agentgateway.dev/v1alpha1
kind: AgentgatewayPolicy
metadata:
  name: jwt-rbac
  namespace: agentgateway-system
spec:
  targetRefs:
    - group: agentgateway.dev
      kind: AgentgatewayBackend
      name: github-mcp-backend
  backend:
    mcp:
      authorization:
        action: Allow
        policy:
          # Any of these conditions will allow access (OR logic)
          matchExpressions:
            - 'jwt.sub == "alice" && mcp.tool.name == "get_me"'
```

Read the comment in that example twice. Entries in `matchExpressions` are OR'ed, so two separate entries allow a request that satisfies either one. Put conditions that must all hold in one expression joined with `&&`. A denied call returns the same JSON-RPC error as a tool that doesn't exist, and the proxy log records the reason.

### What can't the authorization rules see?

Tool arguments. The standalone docs say `mcp.tool.arguments` "isn't set when `mcpAuthorization` rules run," and the [Kubernetes CEL variables reference](https://agentgateway.dev/docs/kubernetes/latest/reference/cel/variables/) says the same for MCP authorization there. So an allowlist of tool names can't stop an approved `read_file` tool from being handed `../../.ssh/id_ed25519`.

Two documented options read arguments:

- A route-level `authorization` policy. Both modes document that request authorization can read `mcp.tool.arguments` on a `tools/call` once the route has selected an MCP backend.
- An `mcpGuardrails` policy. The [MCP guardrails overview](https://agentgateway.dev/docs/standalone/latest/documentation/mcp/guardrails/about/) describes processors that read the full request parameters and reject a call before the gateway contacts any target. A processor can be a remote ExtMCP server or, since [v1.7.0](https://github.com/agentgateway/agentgateway/releases/tag/v1.7.0), an in-process CEL expression with no external service.

The [CEL guardrails doc](https://agentgateway.dev/docs/standalone/latest/documentation/mcp/guardrails/cel/) shows the reject shape on `mcp.params.arguments`. Trimmed from that doc:

```yaml
mcpGuardrails:
  processors:
  - kind: expression
    methods:
      tools/call: request
    condition: >-
      mcp.params.name == 'echo' &&
      has(mcp.params.arguments) &&
      has(mcp.params.arguments.message) &&
      mcp.params.arguments.message.contains('DO_NOT_SEND')
    reject: "Messages containing DO_NOT_SEND may not be sent upstream"
```

The same condition can read a path argument. That narrows what reaches the server. It doesn't confine the server once a call gets through. [Content guards on LLM traffic](/agentgateway-guardrails/) are the prompt-side sibling of this.

### How do clients authenticate to the gateway?

Standalone [MCP authentication](https://agentgateway.dev/docs/standalone/latest/documentation/mcp/mcp-authn/) makes agentgateway an OAuth resource server: it validates tokens your authorization server issues and serves the protected resource metadata MCP clients discover. On Kubernetes, [JWT auth for services](https://agentgateway.dev/docs/kubernetes/latest/documentation/mcp/mcp-access/) uses `traffic.jwtAuthentication` on a Gateway or HTTPRoute, and adding the `mcp` field gives the full MCP OAuth flow for clients such as Claude Code or VS Code that discover the auth server and register dynamically. JWT claims then feed the CEL rules above.

Version note: [GHSA-mvgg-jvj2-4frq](https://github.com/agentgateway/agentgateway/security/advisories/GHSA-mvgg-jvj2-4frq) (High) let stateful MCP sessions cross routes and pick up the wrong route's authorization policy in versions before v1.4.0. It is fixed in v1.4.0. The latest release as I write this is v1.7.0.

### Where does kagent fit on Kubernetes?

If your agents run in the cluster on [kagent](https://kagent.dev/), the same rule applies one level up. A `RemoteMCPServer` can only be referenced from its own namespace unless its `allowedNamespaces` says otherwise, per the [kagent API reference](https://kagent.dev/docs/kagent/resources/api-ref). An agent's MCP tool binding can narrow the server to named tools and set `requireApproval`, though the [tools docs](https://kagent.dev/docs/kagent/1.x/skills-and-mcp/about-tools/) note that on the Claude harness a tool list doesn't narrow the server. Point the `RemoteMCPServer` URL at the gateway, not at the upstream server, and the gateway's rules apply to every agent that binds it.

## Why isn't an allowlist the same as confinement?

An allowlist admits a server. It says nothing about what the server does next. An October 2026 paper, ["My Credentials, Please"](https://arxiv.org/abs/2610.22301) (Huang, Tang, Guan, Sun and He), puts numbers on that gap:

- It catalogued 21,097 MCP servers from nine registries.
- Of 4,806 triaged servers, 787 (16.4%) showed a filesystem capability despite a non-filesystem classification. The authors call that a coarse screening signal, not a violation count.
- Dynamic three-case validation confirmed 150 vulnerable instances, where attacker-steered arguments reached files outside the tool's declared job.
- 144 of those 150 needed only a bare traversal path, no clever encoding.
- Coordinated disclosure produced 13 advisories, including two CVEs in Anthropic's Git MCP Server: [CVE-2025-68143](https://github.com/advisories/GHSA-5cgr-j3jf-jw3v) (`git_init` could create a repository anywhere, such as `~/.ssh`; fixed in 2025.9.25 by removing the tool) and [CVE-2026-27735](https://github.com/advisories/GHSA-vjqx-cfc4-9h6v) (`git_add` could stage files outside the repository; fixed in 2026.1.14). Both are patched.

The paper's core point fits in a line: client approval admits the call, and the spawned server runs with your filesystem permissions. Claude Code's own plugin docs say the same about its side: it runs MCP servers, hooks and other plugin processes outside its sandbox, and its permission rules cover Claude's tool calls, not the code a plugin runs by itself.

Here is the honest gateway line. agentgateway decides which remote servers and tools a client reaches and, with a route or guardrail policy, which arguments get through. It doesn't see or confine what a local stdio server reads on disk, and that includes a stdio target that agentgateway itself launches with `cmd` and `args`.

What does confine it:

- An OS sandbox per local server with least-privilege paths. The paper ran its validation in nono on macOS Seatbelt and names Landlock as the Linux kernel equivalent.
- For remote servers, a container per server, behind agentgateway, with per-tool rules.
- Keys the server doesn't need kept out of its environment, which is the [secretless agents](/secretless-ai-agents/) pattern.

Cursor's per-server network mode is a client-side network control. Its docs describe network behavior, not filesystem limits, so don't count it as the filesystem sandbox.

## What did the FastMCP advisories change?

FastMCP (PrefectHQ/fastmcp) published [14 security advisories](https://github.com/PrefectHQ/fastmcp/security/advisories) between October 16 and October 18, 2026: 1 critical, 5 high, 7 medium and 1 low.

The critical one, [GHSA-gpgx-58w2-xwwf](https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-gpgx-58w2-xwwf), is a client bug. A server can supply a tool `outputSchema` whose self-reference `title` is evaluated as Python when a FastMCP client parses a successful structured result. The client runs attacker code and the tool call still looks successful. Affected versions are 2.10.0 up to 3.4.8 and 4.0.0a1 up to 4.0.11, fixed in 3.4.8 and 4.0.11, with no 2.x fix. The only listed workaround is "Connect FastMCP clients only to MCP servers you trust," and the advisory names agent hosts and gateways that connect to user-supplied servers as the high-risk case.

Two others are allowlist bugs inside the server framework itself: [GHSA-c3q8-4mcq-p7vg](https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-c3q8-4mcq-p7vg) (hashed FastMCPApp tool calls bypass disable and allowlist visibility rules) and [GHSA-mhwm-p596-p7q4](https://github.com/PrefectHQ/fastmcp/security/advisories/GHSA-mhwm-p596-p7q4) (ToolInjectionMiddleware bypasses per-tool authorization). Both are fixed in 3.4.8 and 4.0.11. The lesson is to enforce the allowlist outside the server too, at the client and at the gateway, so one framework bug doesn't open everything.

The tie-back is short. The critical advisory's own workaround is an allowlist of servers. Upgrade the client first. The allowlist is what keeps the next one from mattering.

## Can a web page reach a local MCP server?

It can, if the server listens on HTTP and accepts any Origin. [GHSA-mvf5-2qqv-rg3c](https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-mvf5-2qqv-rg3c) is the worked example; the FAQ below has the versions. One upgrade detail from the advisory: the package moved from date versions to semantic versions, so package managers rank 2.0.1 below every 2025.x and 2026.x release and won't offer it as an upgrade. Pin version `2.0.1` of `@modelcontextprotocol/server-everything` explicitly in your install command.

## How do you test that the allowlist fails closed?

Send a call you expect to be denied, every time the policy changes. A policy that reports healthy is not a policy that denies. I have written up [CEL policies that fail open while reporting healthy](/agentgateway-cel-authorization-gotchas/), tested on the enterprise build, and the OR behavior of `matchExpressions` above is the same trap in the open-source docs.

The client side fails in two different directions when the policy file is broken. Copilot treats a malformed allowlist as an empty `allowedMcpServers` list and blocks every server except built-ins. Claude Code refuses to start at all when `managed-settings.json` isn't valid JSON. Both are closed, and both will generate support tickets, so validate the file in CI before it ships.

I have not run a fresh harness for this page, so every agentgateway behavior above is Documented from the linked docs, not Tested. The checks I would run first: a `tools/list` that shows only the allowed tool and a denied call to a hidden one in each mode, a guardrail that rejects a `..` path argument, and a direct call to the upstream server from the agent namespace that fails under default-deny egress.

## What does this page not cover?

- Finding servers that are already running: [find shadow MCP servers](/find-shadow-mcp-servers/) and [MCP servers on employee machines](/mcp-servers-on-employee-machines/).
- Where each client writes its config: [every MCP client's config path](/mcp-config-file-locations/).
- Stopping shadow traffic end to end: [how to stop shadow MCP servers](/stop-shadow-mcp-servers/).
- Keeping an approved tool from changing after approval: [pin what you approved](/mcp-tool-poisoning-pin-definitions/).
- Where the approved list itself lives and how the gateway and client lists are generated from it: [MCP registry of record](/mcp-registry-of-record/).

## Methodology

Every client fact on this page comes from the vendor's own admin docs, linked inline and read on November 29, 2026. Every agentgateway fact comes from the agentgateway docs labelled latest and the GitHub releases through v1.7.0. Each statement names the mode it applies to. The paper numbers come from the arXiv HTML of 2610.22301. The FastMCP counts come from the project's GitHub security advisories list, and the server-everything details from GHSA-mvf5-2qqv-rg3c, which had no CVE assigned when I checked. Nothing on this page comes from main-branch or nightly docs, and none of the agentgateway configurations were re-run for this page.

