MCP Governance - Allow/Deny List for MCP for Organizations and Teams
Feature Request: Allow and deny list for MCP Enterprises.
Describe the feature or problem you’d like to solve
GitHub Copilot's agentic features can leverage a powerful set of tools, including specific MCP Servers (e.g., "Azure MCP", "microsoft-docs", "playwright") and other extensions. While individual users can enable these tools locally, there is no centralized, enterprise-level control to enforce which tools are approved for use.
This creates a governance and security gap, as a user could enable and send data to an unvetted third-party tool. Furthermore, a single, organization-wide policy is too restrictive, as specialized teams (like QA or security) often require access to tools that should be denied to the general developer population.
Proposed solution
Implement a server-side MCP Server & Tool Governance Policy that is configurable at both the organization and team levels. This would allow administrators to set a baseline policy and grant specific exceptions for teams with elevated needs.
The workflow would be:
- An administrator sets a default tool policy for the entire organization (e.g., "Deny by Default").
- The administrator then creates more permissive policies for specific GitHub Teams (e.g., Allow the "playwright" tool for the
@qa-engineersteam). - When a user issues a prompt, the Copilot service checks the required tool against the policies that apply to that user, starting with their team-specific policies and then falling back to the organization default.
- If an "allow" policy is matched, the request proceeds. If the tool is explicitly denied or not covered by an allow policy, the request is blocked and the user is notified.
This layered approach provides both a strong security baseline and the flexibility required for real-world enterprise operations.
Example prompts or workflows (for tools/toolsets only)
-
Workflow: Using an Approved MCP Server (Org-Wide)
- An administrator has added "MCP Server: microsoft-docs" to the enterprise-wide allow list.
- Any developer in the organization prompts: "Please research how to set up Azure Key Vault using the official Microsoft Docs."
- The server-side check confirms the tool is allowed at the organization level, and the request is processed successfully.
-
Workflow: Attempting to Use a Denied MCP Server
- The organization's default policy denies the "MCP Server: playwright" tool.
- A developer who is not on the QA team enables it locally and prompts: "Generate a Playwright test script for my login page."
- The server-side check finds the tool is denied by the default policy and no team-based exception applies. The request is blocked.
- Copilot responds: "I am unable to use the 'playwright' tool as it is not approved for your team. Please contact your IT governance team for more information."
-
Workflow: Handling an Exception for a Specialized Team
- The default policy denies the "playwright" tool, but the administrator has created a policy that allows it for the
@qa-engineersGitHub Team. - A developer who is a member of
@qa-engineersprompts: "Generate a Playwright test script for my login page." - The server-side check first sees the user is part of the
@qa-engineersteam and finds the corresponding "allow" policy for the "playwright" tool. - The request is approved and processed successfully, bypassing the organization's default denial.
- The default policy denies the "playwright" tool, but the administrator has created a policy that allows it for the
Additional context
This feature is critical for applying realistic security and data governance policies. By managing tools with a combination of organization-wide defaults and team-based exceptions, enterprises can establish a secure baseline while empowering specialized teams with the advanced tools they need. The image below shows the exact type of tools that require this flexible, centralized governance.
Hey @ChrisMcKee1. This feature is currently in progress. We're aiming to land it in VS Code Insiders tomorrow, with VS Code Stable landing in October. We're working on getting all Copilot environments to adhere to the allowlist by October/November – integrating each one will be a process.
Note that the initial feature will be configurable at the enterprise or organization level first. Support for allowlisting by an @team is something we're evaluating, as well as other more granular controls, but those aren't committed on the roadmap yet.
Perfect @D1M1TR10S this will really help Spec Driven Development and AI Assisted coding for regulated industries. Team or granular controls allows security teams to allow exceptions to strict governance.
Okkkk
What's the status on this feature for VS Code Public?
@mjramer https://github.blog/changelog/2025-09-12-internal-mcp-registry-and-allowlist-controls-for-vs-code-insiders/
Great to see this progressing! The org/enterprise-level MCP allowlist is an essential foundation. I wanted to share a complementary perspective from the application layer that could work alongside the platform-level controls.
Platform Governance vs Application Governance
The allowlist feature (which MCP servers are permitted) is platform-level governance — it controls which tools are available. But there's a second layer that enterprises often need: application-level governance — controlling how those allowed tools are used within agent workflows.
For example:
- An MCP server is allowed, but specific tools within it should be restricted based on the agent's role
- Tool calls should be rate-limited per request to prevent runaway loops
- Arguments to tools should be scanned for sensitive patterns (credentials, PII)
- All tool invocations should be logged to an append-only audit trail for compliance
Policy Composition Pattern
We've been building this pattern in Agent-OS and AgentMesh Integrations, and it maps well to the org → team → agent hierarchy you described:
# Layered policies — most-restrictive-wins composition
org_policy = GovernancePolicy(
name="org-wide",
blocked_tools=["shell_exec", "delete_database"],
blocked_patterns=[r"(?i)(api[_-]?key|secret|password)\s*[:=]"],
max_calls_per_request=50
)
team_policy = GovernancePolicy(
name="qa-team",
allowed_tools=["playwright_test", "screenshot", "report"],
require_human_approval=["report"]
)
# Compose: org-wide constraints + team-specific scope
effective_policy = compose_policies(org_policy, team_policy)
The key insight is that the platform allowlist answers "can this tool be called?" while application governance answers "should this tool be called in this context?"
We've also built this as a Copilot skill and audit hook that complements the built-in controls. The hook scans prompts for threat signals (data exfiltration, privilege escalation, prompt injection) before the agent processes them.
Would love to see the team-level granularity land — the @team-scoped policies are critical for the QA/security exception pattern @ChrisMcKee1 described.
The org-level allowlist is the right foundation. There's a second granularity that comes up fast in practice though: per-action governance within allowed servers.
An approved MCP server can still do risky things. A Postgres MCP server on the allowlist lets agents run any query, including DROP TABLE or SELECT * FROM users WHERE ssn IS NOT NULL. The server is approved, but specific tool calls within it might need a human to review before they execute.
We built SidClaw for this layer. It wraps MCP servers with per-action policy evaluation: each tool call is checked against a policy set, and high-risk actions get held for approval with full context (what the agent wants to do, why, which policy flagged it). Works alongside server-level allowlists rather than replacing them.
Two layers, two questions: "can this agent use this server?" (allowlist) and "should this specific action execute right now?" (per-action governance).
The platform-level allowlist that @D1M1TR10S is landing covers the policy decision: which servers are even reachable from the Copilot environment. Two complementary layers usually surface once that's in production.
-
Per-call granularity within allowed servers. @VladUZH's Postgres example is the canonical one. The shape that handles this is a runtime interceptor on the MCP wire that scores per-tool-call and decides allow / deny / escalate from policy plus a conformal risk interval. Vaara (github.com/vaaraio/vaara, MCP proxy at
src/vaara/integrations/mcp_proxy.py) runs as one such interceptor. The platform allowlist and the per-call interceptor compose cleanly: the allowlist filters which servers are even reachable, the interceptor filters which calls fire. -
Tamper-evident audit record of what actually executed when "allow" fired. Once the policy gate is in place, the next question from compliance reviewers is "show me what flowed." For EU AI Act Article 12 reconstruction this needs a hash-chained record of (server, tool, args binding, decision, timestamp) that the reviewer can re-verify offline. The runtime-evidence shape ships in Vaara as OVERT 1.0 base envelopes (CBOR, Ed25519, content-addressed args commitments) emitted per tools/call / resources/read / prompts/get. SEP-2787 (modelcontextprotocol/modelcontextprotocol#2787) is the MCP-side analog being proposed.
Neither layer replaces the org/team allowlist. They run below it. If the platform side is shipping the policy gate, the verifiable-record-of-execution part stays available for application-layer adopters who need it.
This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.
The "should this tool be called in this context" layer is testable on its own, independent of any framework, and worth pinning as a fixed conformance target instead of each implementation asserting it in prose.
There is an open vector set for that fail-closed boundary. A scoped credential is spendable enforcement material for a single tool call, and a bad one has to be rejected before the upstream forward while still emitting a concrete outcome record for the denial. Five cases cover it: valid grant, changed arguments, expired authority, tenant mismatch, and missing credential. A companion set pins per-argument bounds so an allowed tool still fails closed when an argument leaves its grant: amount ceilings, membership sets, and rejection of any argument no grant covers.
The useful property for a thread like this: every verdict recomputes from the signed credential and the pinned call inputs using HS256 over RFC 8785 JCS, with hmac, hashlib, and one JCS library and nothing from the framework itself. An org or team policy is then verifiable after it runs, on the allow path and the deny path alike, by anyone holding the record.
Vectors and the standalone checker: https://github.com/vaaraio/vaara/tree/main/tests/vectors/credential_binding_v0 https://github.com/vaaraio/vaara/tree/main/tests/vectors/capability_scope_v0
This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.
This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.
This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.