You can allow or block specific MCP servers with allowedMcpServers and deniedMcpServers settings.
What's wrong with this entry?
Two settings keys, allowedMcpServers and deniedMcpServers, are now paired with validation schemas in a table, so MCP servers can be permitted or blocked from settings files.
- New arrays group the settings tiers:
policySettings,flagSettingsanduserSettingson one side,localSettingsandprojectSettingson the other, with a map labelling the first threepolicy,flaganduser. - A separate map ties the decisions
allow,denyandaskto the rule listsalwaysAllowRules,alwaysDenyRulesandalwaysAskRules.
{ key: "allowedMcpServers", schema: tzt }
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.219
MCP allow/deny rules compare expanded env-var values
Both mention allowed server denied
-
v2.1.219
MCP policy allow/deny entries now expand
${VAR}environment references, and unsafe URL expansions fail closedBoth mention allowed server denied
-
v2.1.221
New MCP policy-predicate telemetry for allowedMcpServers matching
Both mention allowed server