官方更新 GitHub Changelog Wed, 29 Jul 2026 正文 ok 295 words

Copilot 代码审查:Agent skills 与 MCP 现已正式可用

英文标题:Copilot code review: Agent skills and MCP now generally available

Copilot 代码审查现已面向所有 Copilot Pro、Pro+、Business 和 Enterprise 用户正式提供 Agent skills 与 MCP 服务器支持。该能力可将团队内部工具、编码规范以及第三方平台上下文直接引入代码审查流程。MCP 调用仅限只读,且已为 Copilot cloud agent 配置的 MCP 设置会自动应用于代码审查。新功能还会标注哪些审查评论使用了 Agent skills 或 MCP 上下文,帮助团队追踪其实际作用。
打开原文相关 6 · 机会 5
media123.2 KB media14.3 KB media230.9 KB

中文

Copilot 代码审查现已面向所有 Copilot Pro、Pro+、Business 和 Enterprise 用户正式提供 Agent skills 和 MCP 服务器支持。这些能力此前已以公开预览形式发布,可将团队的工具、标准和外部上下文直接带入每一次代码审查。

  • Agent skills 可让 Copilot 代码审查在审查过程中调用团队内部工具和编码标准。在 .github/skills 下的某个 skill 子目录中添加 SKILL.md 文件,即可通过针对代码仓库或组织的特定上下文和指令扩展 Copilot 的分析能力。

  • MCP 服务器连接可将团队已在使用的第三方平台(例如议题跟踪工具、文档系统和服务目录)中的上下文直接引入审查。

    • Copilot 代码审查执行的所有 MCP 工具调用都将仅限只读。
    • 已为 Copilot cloud agent 配置的任何 MCP 设置,都会自动应用于 Copilot 代码审查。请注意,GitHub 和 Playwright MCP 将默认启用。
  • skills 和 MCP 评论归因:Copilot 代码审查现在会标明某条评论是否使用 Agent skills 或 MCP 上下文生成,让你能够看到 skills 和 MCP 服务器的实际作用。

如果你在公开预览期间已经配置了 Agent skills 或 MCP 服务器,则无需进行任何更改。这些功能现已正式可用,你现有的配置将继续生效。

对于新用户:

  • MCP 服务器:在仓库设置中依次进入 → Copilot → MCP servers,添加 MCP 配置。在仓库设置中依次进入 → Secrets and variables → Agents,存储认证令牌。请参阅示例 MCP 配置开始使用。
  • Agent skills:在 .github/skills 下创建一个针对特定 skill 的目录,然后在该目录中添加 SKILL.md 文件,写入希望 Copilot 代码审查使用的上下文和指令。有关更多详情,请参阅 Agent skills 文档。

English / 原文

Copilot code review support for agent skills and MCP servers is now generally available for all Copilot Pro, Pro+, Business, and Enterprise users. Previously announced in public preview, these capabilities let you bring your team’s tools, standards, and external context directly into every code review.

  • Agent skills let Copilot code review invoke your team’s internal tools and coding standards during a review. Add a SKILL.md file under a skill subdirectory in .github/skills to extend Copilot’s analysis with context and instructions specific to your repository or organization.

  • MCP server connections pull context from third-party platforms your team already uses (e.g., issue trackers, documentation systems, service catalogs) directly into the review.

    • All MCP tool calls performed by Copilot code review will be limited to read-only.
    • Any MCP configurations you’ve already set up for Copilot cloud agent automatically apply to Copilot code review. Note that the GitHub and Playwright MCP will be turned on by default.
  • Attribution on skills and MCP comments : Copilot code review now indicates when a comment was generated using agent skills or MCP context, so you can see your skills and MCP servers in action.

If you configured agent skills or MCP servers during the public preview, no changes are needed. Your existing setup continues to work now that these features are generally available.

For new users:

  • MCP servers : Add your MCP configuration under repository settings → Copilot → MCP servers. Store authentication tokens under repository settings → Secrets and variables → Agents. See example MCP configurations to get started.
  • Agent skills : Under .github/skills, create a skill-specific directory, then add a SKILL.md file to that directory with the context and instructions you want Copilot code review to use. For more details, see the agent skills documentation.