Feature Request / Bug: Persistent MCP Tool Approvals in the New Copilot Harness
The new GitHub Copilot harness in VS Code lacks consistent, granular, and persistent execution permissions for MCP servers and their tools.
Currently, the permission experience appears to be either:
Manual: Repeatedly approve individual MCP tool executions, with approvals generally limited to the current session. Allow All: Automatically approve everything, including MCP tools, terminal/CLI commands, and other potentially sensitive operations.
There doesn't appear to be a reliable way to permanently trust a specific MCP server or individual MCP tools while keeping other operations restricted.
Current Behavior Chat: Manage Tool Approval is available and configured, but the approval settings don't appear to be consistently honored in the new harness when using Editor Chat. The standalone Agents interface doesn't expose equivalent granular MCP execution approval management. MCP tool approvals appear to be session-scoped rather than persistent across conversations and VS Code restarts. Globally enabling automatic approvals also authorizes unrelated operations, including terminal commands. MCP tool availability settings are separate from execution permissions and don't solve this problem. Expected Behavior
Provide persistent, granular approval management similar to Claude Desktop and Google Antigravity.
Ideally, users should be able to:
MCP server level: Always allow, always ask, or deny execution for an entire MCP server. MCP tool level: Override server-level permissions for individual tools. Persistence: Save these preferences across conversations, sessions, and application restarts. Independent permissions: Keep terminal/CLI execution approvals separate from MCP execution approvals. Consistent behavior: Apply the same approval configuration across Editor Chat and the standalone Agents interface when using the same local harness.
For example, I should be able to permanently approve my local ServiceNow MCP server while continuing to require manual approval for terminal commands and other MCP servers.
Steps to Reproduce Configure a local MCP server (stdio transport) in VS Code. Open Chat: Manage Tool Approval and configure approvals for its tools. Start a conversation using the new Copilot harness. Execute an MCP tool and approve its execution. Start another conversation or restart VS Code. Execute the same MCP tool again. Observe that approval may be requested again or previously configured approvals aren't consistently respected. Why This Matters
I use GitHub Copilot primarily as a general-purpose AI agent for development, testing, and enterprise application automation, rather than exclusively for GitHub-related workflows.
My MCP servers provide controlled access to external applications. Repeatedly approving trusted tools interrupts agent workflows, while enabling unrestricted execution introduces unnecessary security risks.
Users shouldn't have to choose between repeatedly approving trusted MCP tools and globally allowing potentially sensitive operations such as CLI commands.
Environment Application: Visual Studio Code AI: GitHub Copilot Harness: New Copilot Agent Host MCP transport: Local stdio Interfaces: Editor Chat and standalone Agents window Additional Context
The existing Chat: Manage Tool Approval functionality suggests that granular approval management is intended to be supported. However, its behavior and availability appear inconsistent when using the new harness.
It would be helpful to clarify whether this is an existing functionality regression, a missing feature, or an intentional design limitation.
If persistent MCP approval rules are already supported, documentation explaining how to configure and enforce them consistently in the new harness would also be appreciated.
One design detail that would make persistent per-tool approvals safe: bind the stored approval to a hash of the tool's definition (name, description, input schema, annotations), not just the server and tool name. If an MCP server later changes what a tool says or does, the saved "always allow" should fall back to asking again. Otherwise a persistent approval granted to a harmless tool silently carries over to whatever the server ships next.
Disclosure: drafted by an AI agent working for me.
Thanks for the suggestion! I agree that changes to an MCP tool's definition should invalidate its previously granted persistent approval.
However, I'm not entirely sure hashing the tool definition can guarantee that the tool's actual functionality hasn't changed.
As far as I understand, neither the user nor the AI agent consuming an MCP tool necessarily knows what happens under the hood. Unless the MCP server's source code is publicly available and someone inspects it, the internal implementation remains largely unknown. Even the AI agent using the tool only knows what the MCP server exposes through the protocol.
Essentially, what we have visibility into is:
- The MCP server providing the tool.
- The tool's name and description.
- Its input schema and any additional exposed metadata.
The actual implementation could change without any changes to these exposed details.
So I think a practical safeguard would be:
-
When a user grants persistent approval to an MCP tool, VS Code caches the tool's exposed definition/schema (or a hash of it).
-
Whenever the MCP server is started or restarted, VS Code compares the currently advertised tool definition against the cached version.
-
If they match, the existing persistent approval remains valid.
-
If they differ, VS Code automatically revokes that tool's persistent approval and displays a notification, such as:
"This MCP tool's definition has changed since you last approved it. Its persistent approval has been cleared, and your permission will be required again."
This wouldn't guarantee that the underlying implementation hasn't changed, but it would at least detect changes to the tool's advertised interface and prevent previously granted approvals from silently carrying over to modified tool definitions.
I believe this would be a reasonable security safeguard while still allowing users to persistently trust specific MCP tools without globally enabling automatic execution for unrelated operations.
Thanks & Regards, Jaineel Petiwale
On Mon, 16 Nov, 2026, 11:35 pm Gautam Khosla, @.***> wrote:
GautamTalksDev left a comment (microsoft/vscode#348176) https://github.com/microsoft/vscode/issues/348176#issuecomment-6924769663
One design detail that would make persistent per-tool approvals safe: bind the stored approval to a hash of the tool's definition (name, description, input schema, annotations), not just the server and tool name. If an MCP server later changes what a tool says or does, the saved "always allow" should fall back to asking again. Otherwise a persistent approval granted to a harmless tool silently carries over to whatever the server ships next.
Disclosure: drafted by an AI agent working for me.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/348176?email_source=notifications&email_token=ANZKXK7YQSP4CFGL2Y35LBD5ZM6XRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJSGQ3TMOJWGYZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6924769663, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZKXKZGMJRGPV2RQBHBRAD5ZM6XRAVCNFSNUABEKJSXA33TNF2G64TZHM2DCOBYGE4TAMB3JFZXG5LFHM3DGNZUGA3DOMBVGOQXMAQ . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/ANZKXK7XRFSVP3M3IKABN7L5ZM6XRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJSGQ3TMOJWGYZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG and Android https://github.com/notifications/mobile/android/ANZKXK4RTSCWMMT3IC6HW5D5ZM6XRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJSGQ3TMOJWGYZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA. Download it today! You are receiving this because you authored the thread.Message ID: @.***>
At the moment, I have to manually reapprove read-only operations from trusted internal MCP servers (e.g. "enghub: search" and "enghub: fetch"). All of the thought towards making it as safe as possible is goodness, but I'm wondering if there could be a near-term improvement or workaround.
@ImJaineel agreed, and that's a fair correction to how I worded it ("says or does"). A definition hash only covers the advertised contract, not the implementation behind it. Your four steps are exactly the version I'd want.
Two small additions that narrow the gap without claiming more than the hash can prove:
- For local stdio servers, the client can also record what it actually launched (the package name and version, or a digest of the binary or lockfile) next to the definition hash. A silent upgrade of the server then clears the approval too, even when the advertised definition stays the same.
- For remote servers, the implementation is out of the client's view, so the honest wording in the notification would be "approved for this definition from this server", and a change of server URL or identity should clear it as well.
On @NickVH-MS's point: once approvals are bound to the definition like this, it also feels safer to offer "always allow" for tools annotated read-only, since a change to that annotation would clear the approval.
Disclosure: drafted by an AI agent working for me.