GitHub 企业托管设置新增 MCP 允许列表,集中管控 Copilot 客户端
MCP allowlists in enterprise managed settings
企业管理员和平台团队注意:GitHub 现在能集中管控 Copilot 的 MCP 服务器,建议尽快在托管设置中配置 allow/deny 列表,以增强安全性和合规性。
Enterprise owners can now centrally control which Model Context Protocol (MCP) servers GitHub Copilot clients are allowed to run by using the new allowedMcpServers and deniedMcpServers keys in enterprise managed settings. Approve the MCP servers your developers depend on and block untrusted or non-compliant ones across your enterprise. This capability is generally available.
企业所有者现在可以通过在企业托管设置中使用新的 allowedMcpServers 和 deniedMcpServers 键,集中控制 GitHub Copilot 客户端允许运行的模型上下文协议(MCP)服务器。批准您的开发人员依赖的 MCP 服务器,并在整个企业中阻止不受信任或不合规的服务器。此功能现已全面可用。
How it works
工作原理
Add either or both keys to copilot/managed-settings.json. Each key is a list of matchers that identify MCP servers by remote URL, local command, or name:
将其中一个或两个键添加到 copilot/managed-settings.json 中。每个键都是一个匹配器列表,通过远程 URL、本地命令或名称来识别 MCP 服务器:
- serverUrl: Matches remote (HTTP/SSE) servers. It supports * wildcards and canonicalizes URLs to prevent evasion.
- serverCommand: Matches local (stdio) servers by exact command and arguments.
- serverName: Matches the user-assigned label. This is only supplied as a convenience, not a security control, since users can rename servers.
- serverUrl:匹配远程(HTTP/SSE)服务器。它支持 * 通配符,并对 URL 进行规范化以防止规避。
- serverCommand:通过精确的命令和参数匹配本地(stdio)服务器。
- serverName:匹配用户分配的标签。这仅作为便利提供,而非安全控制,因为用户可以重命名服务器。
Policies fail closed, meaning a malformed or unverifiable configuration is blocked rather than allowed. When policies come from multiple layers, a server must pass every layer.
策略默认拒绝,这意味着格式错误或无法验证的配置将被阻止而不是允许。当策略来自多个层级时,服务器必须通过每个层级。
In server-managed deployments, both keys can be marked overridable so enterprise teams can define their own allow and deny lists on top of your baseline. To learn more, see our docs on overriding settings for individual teams.
在服务器管理的部署中,两个键都可以标记为可覆盖,以便企业团队可以在您的基线之上定义自己的允许和拒绝列表。要了解更多信息,请参阅我们关于为各个团队覆盖设置的文档。
For configuration examples and the full matcher syntax, see Enterprise managed settings reference.
有关配置示例和完整的匹配器语法,请参阅企业托管设置参考。
Supported clients
支持的客户端
MCP allowlists are currently enforced on the GitHub Copilot app, Copilot CLI and VS Code.
MCP 允许列表目前已在 GitHub Copilot 应用、Copilot CLI 和 VS Code 中强制执行。
Getting started
开始使用
In your source organization’s .github-private repository, add the keys to copilot/managed-settings.json and commit to the default branch.
在您的源组织的 .github-private 仓库中,将键添加到 copilot/managed-settings.json 并提交到默认分支。
To learn more, see configuring enterprise managed settings.
要了解更多信息,请参阅配置企业托管设置。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力