Repository navigation
Closed
Labels
Milestone
Description
- anyOS Eleanor Boyd (@eleanorjboyd)
- anyOS Bhavya U (@bhavyaus)
Complexity: 5
Authors: joshspicer
Test the following managed customization settings:
strictPluginOnlyCustomization— Whentrue, standalone user/workspace agents, skills, instructions, hooks, and MCP collections are blocked. Eligible plugin-provided customizations remain available.allowManagedHooksOnly— Whentrue, standalone hooks are blocked. Plugin hooks run only when their plugin is explicitly enabled through managedenabledPlugins; user enablement alone is insufficient.allowManagedMcpServersOnly— Whentrue, only MCP servers matching managedallowedMcpServersare available.deniedMcpServersremains restrictive and wins over an overlapping allow.extraKnownMarketplaces.<name>.autoUpdate— Controls automatic updates per marketplace. Managedtrueorfalseoverridesextensions.autoUpdate; an omitted value inherits it. Equivalent GitHub shorthand and URL references receive the same policy.
Setup
- Use a disposable profile and workspace.
- Install the file using Test: File-based managed settings:
- macOS:
/Library/Application Support/GitHubCopilot/managed-settings.json - Linux:
/etc/github-copilot/managed-settings.json - Windows:
%ProgramFiles%\GitHubCopilot\managed-settings.json
- macOS:
- Enable
chat.useHooks. - Install
goalfrommicrosoft/vscode-team-kit. - Install
awesome-copilotfromgithub/awesome-copilot#marketplace.
Goal
Your goal is to exercise all of these managed settings. See the links above for how they should behave. Please feel free to follow your own testing path, as long as you exercise all keys,
A possible testing path
- Create standalone workspace agent, skill, instruction, hook, and MCP entries.
- Apply the configuration below and run Developer: Policy Diagnostics. Confirm each key has source File (managed-settings.json).
- Confirm standalone customizations disappear while the plugin customizations remain.
- Confirm only the managed-enabled
goalplugin hook can run. - Confirm
tpi-managed-allowedis available,tpi-user-onlyis blocked, andtpi-deniedis blocked despite also being allowed. - Change the policy file while VS Code is running and confirm discovery updates without a restart.
- For deterministic update testing, replace the marketplace repositories below with test forks containing an older installed plugin and a newer published version.
- With
extensions.autoUpdatedisabled, confirm only theautoUpdate: truemarketplace updates. - With
extensions.autoUpdateenabled, confirm theautoUpdate: falsemarketplace does not update. - Remove an
autoUpdateproperty and confirm that marketplace inheritsextensions.autoUpdate. - Configure the same GitHub marketplace using its full URL and confirm it receives the shorthand marketplace’s policy without appearing twice.
- Remove a marketplace from
strictKnownMarketplacesand confirm automatic, direct, and forced updates from it are blocked.
Workspace Files
.vscode/mcp/json
{
"servers": {
"tpi-managed-allowed": {
"type": "stdio",
"command": "node",
"args": ["-e", "process.stdin.resume()"]
},
"tpi-user-only": {
"type": "stdio",
"command": "node",
"args": ["-e", "process.stdin.resume()"]
},
"tpi-denied": {
"type": "stdio",
"command": "node",
"args": ["-e", "process.stdin.resume()"]
}
},
"inputs": []
}Example managed-settings.json (see install location above)
{
"strictPluginOnlyCustomization": true,
"allowManagedHooksOnly": true,
"allowManagedMcpServersOnly": true,
"enabledPlugins": {
"goal@vscode-team-kit": true,
"awesome-copilot@awesome-copilot": true
},
"allowedMcpServers": [
{
"serverName": "awesome-copilot"
},
{
"serverName": "tpi-managed-allowed"
},
{
"serverName": "tpi-denied"
}
],
"deniedMcpServers": [
{
"serverName": "tpi-denied"
}
],
"extraKnownMarketplaces": {
"vscode-team-kit": {
"source": {
"source": "github",
"repo": "microsoft/vscode-team-kit"
},
"autoUpdate": true
},
"awesome-copilot": {
"source": {
"source": "github",
"repo": "github/awesome-copilot",
"ref": "marketplace"
},
"autoUpdate": false
}
},
"strictKnownMarketplaces": [
{
"source": "github",
"repo": "microsoft/vscode-team-kit"
},
{
"source": "github",
"repo": "github/awesome-copilot",
"ref": "marketplace"
}
]
}
Activity
[-]Test: Customization controls in managed_settings[/-][+]Test: Managed settings customization controls[/+]joshspicer commentedon Aug 10, 2026
Another way to confirm policy is set is from the settings editor with
@hasPolicy. This is the config above appliedamunger commentedon Aug 10, 2026
The behavior is not as expected.
I can see the policies show up in
@hasPolicyin the settings editor, but the only other difference I see from enabling a policy is that the MCP UI shows less information when the policy file exists, but it doesn't matter what the policy is.MCP servers all fail with "language model unavailable" with or without the policy (different issue), but the agent will try either way.
User level hooks are enabled with and without the policy
bhavyaus commentedon Aug 10, 2026
Tested true/false for the above policy enablements and they worked as expected. Command
Developer: Policy Diagnosticsdoes not work in Insiders but the fix is checked into main. Closing this TPI