Skip to content

Commit 2f8ade1

Browse files
authored
Update example of deniedMcpServers (#45479)
1 parent df1e0af commit 2f8ade1

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

content/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can find these settings in the {% octicon "mcp" aria-hidden="true" aria-labe
3030
1. Create a `{% data variables.copilot.managed_setting_file %}` file for your enterprise. Most enterprises store this file in a `.github-private` repository. You can also install it directly on users' machines using mobile device management. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/configure-enterprise-managed-settings#deploying-server-managed-settings).
3131
1. Edit the file to define an allowlist and denylist for MCP servers. You can match by name, server URL, or specific commands. For syntax details, see [allowedMcpServers](/copilot/reference/enterprise-managed-settings-reference#allowedMcpServers), and [deniedMcpServers](/copilot/reference/enterprise-managed-settings-reference#deniedMcpServers) in "Enterprise managed settings reference."
3232

33-
The following example allows servers that match any of the three allowlist entries. The server at `learn.microsoft.com` is always blocked, even if it also matches an allowlist entry.
33+
The following example allows servers that match any of the three allowlist entries. The filesystem server configured to access the root filesystem is always blocked, even if it also matches an allowlist entry.
3434

3535
```json copy
3636
{
@@ -40,7 +40,14 @@ You can find these settings in the {% octicon "mcp" aria-hidden="true" aria-labe
4040
{ "serverCommand": ["cmd", "/c", "uvx", "markitdown-mcp"] }
4141
],
4242
"deniedMcpServers": [
43-
{ "serverUrl": "https://learn.microsoft.com/*" }
43+
{
44+
"serverCommand": [
45+
"npx",
46+
"-y",
47+
"@modelcontextprotocol/server-filesystem",
48+
"/"
49+
]
50+
}
4451
]
4552
}
4653
```

content/copilot/reference/enterprise-administrators/enterprise-managed-settings.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ The following example shows these keys in one managed settings file.
103103
{ "serverCommand": ["cmd", "/c", "uvx", "markitdown-mcp"] }
104104
],
105105
"deniedMcpServers": [
106-
{ "serverUrl": "https://learn.microsoft.com/*" }
106+
{
107+
"serverCommand": [
108+
"npx",
109+
"-y",
110+
"@modelcontextprotocol/server-filesystem",
111+
"/"
112+
]
113+
}
107114
],
108115
"sandbox": {
109116
"enabled": true,

0 commit comments

Comments
 (0)