GitHub Copilot 应用的自定义配置方式

介绍 GitHub Copilot 应用如何通过 Customize 标签统一管理指令、技能、MCP 服务器、插件与自定义代理,并说明全局指令、仓库默认设置和插件市场的配置入口与作用范围。

将 GitHub 副驾驶应用到您的工作流程中, 从而使您的代理遵循您的惯例, 使用您喜欢的工具, 并应用正确的专业知识来完成每一项任务 。 密码 **自定义** 选项卡在应用程序边栏中允许您在一个地方发现和管理 MCP 服务器、插件、技能和画布。您可以从此标签中找到 : - 如果您还不知道您需要哪个定制, 则探索定制化作为起点 。 - 按定制类型浏览. - 通过查看趋势选项或按类别浏览来查找MCP服务器. - 检讨您已经可用的用户定制 **已安装** 视图。 ## [设置全球和存储器指令](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#setting-global-and-repository-instructions>) 您可以添加适用于全球或仅适用于特定寄存器的指令 。 ### [设置全局指令](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#setting-global-instructions>) 全球指令适用于所有寄存器和本地文件夹的每次会话。 1. 打开应用程序设置 。 2. 单击 **会 议**. 3. 在"指示"下,编辑"APP指令". ### [设置特定寄存器指令](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#setting-repository-specific-instructions>) 特定仓库的指令适用于所选寄存器的每个会话. 1. 打开应用程序设置 。 2. 在"仓库"下,点击寄存器. 3. 编辑"指示"字段. ## [添加代理技能](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#adding-agent-skills>) 代理技能是指令、脚本和资源的文件夹, Copilot在相关时可以加载,以提高其在特殊任务中的性能。为您的寄存器或 Copilot CLI 配置的任何技能在 GitHub Copilot app中自动可用。要添加或管理技能,请单击 **自定义** 在应用程序侧边栏中,然后单击 **技能**. 关于代理技能的更多信息,请参见: [代理技能](<https://docs.github.com/en/copilot/concepts/customizations/agent-skills>). 关于GitHub提供的内置技能参考,见 [用于 GitHub 副驾驶应用的内置技能](<https://docs.github.com/en/copilot/reference/github-copilot-app-reference/built-in-skills>). ## [配置 MCP 服务器](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#configuring-mcp-servers>) MCP服务器将代理连接到外部工具和数据源. 任何为您的寄存器或副驾驶CLI配置的MCP服务器,在GitHub副驾驶应用中都会自动提供. 要发现并安装一个 MCP 服务器 : 1. 单击 **自定义** 在应用程序侧边栏。 2. 单击 **MCP**. 3. 探索功能化或趋势化服务器,按类别浏览,或添加自定义服务器. 4. 选择一个服务器并跟随提示安装 。 查看或管理已经安装的 MCP 服务器,单击 **已安装**. 关于MCP的更多信息,请参见: [添加MCP服务器用于GitHub 副驾驶CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers>). ## [连接服务](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#connecting-services>) 说明 副驾驶连接器处于公开预览状态,可以更改. 在 GitHub 副驾驶应用中连接一个外部服务,让 Copilot 访问它的工具和上下文。然后可以使用连接器跨越所支持的 Copilot 表面而无需重复设置。 GitHub 处理 MCP 服务器配置和认证 。 如果您的组织或企业提供您的副驾驶订阅, 管理员可能需要更新其政策以允许这些连接 。 [副驾驶连接器](<https://docs.github.com/en/copilot/concepts/customizations/copilot-connectors>). 要连接服务 : 1. 单击 **自定义** 在应用程序侧边栏。 2. 选择 **MCP** 从搜索字段旁边的下拉。 3. 选择 **GitHub 已核实** 过滤器。 GitHub- 验证的 MCP 服务器( 连接器) 上标有 Mona 徽章, 显示 **已验证** 当你徘徊在它上。 4. 在您想要连接的服务旁边,单击 **连接**. **连接** 仅用于具有 GitHub 验证的 MCP 服务器的服务 。 其他服务则列为标准 MCP 服务器, 由您安装。 见 [配置 MCP 服务器](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#configuring-mcp-servers>). 5. 遵照提示签入服务并批准访问. ## [使用自定义代理](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#using-custom-agents>) 自定义代理是可适应特定任务和工作流程的Copilot专业版本. 使用提示框中的代理拾取器在会话前或会话期间下拉来选择自定义代理 。 或者,类型 `/agent` 在提示框中选择并引用自定义代理。 更多信息见: [自定义代理](<https://docs.github.com/en/copilot/concepts/customizations/custom-agents>). ## [添加插件](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#adding-plugins>) 插件是可安装的包,可以添加预配置的一组能力,如技能,钩子,自定义代理,MCP服务器,和帆布扩展,扩展了GitHub Copilotapp的功能. 密码 **自定义** 页面显示插件和应用程序中配置的源的其他定制。使用它的搜索字段来找到插件。 Repository 默认是客户端中的特定项目选项, 读取 `.github/copilot/settings.json`。成员可以关闭这些默认值。企业管理设置总是获胜:所需的插件不能关闭,被屏蔽的插件不能打开。关于插件行为的概述,请参见 [GitHub 副驾驶插件](<https://docs.github.com/en/copilot/concepts/customizations/plugins>). ### [安装插件](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#install-a-plugin>) 1. 单击 **自定义** 在应用程序侧边栏。 2. 搜索浏览页面中的您要使用的插件, 然后单击 **安装**. 要测试应用程序中的插件, 请添加包含该插件的市场, 然后从中查找并安装插件 。 **自定义**. ### [管理已安装的插件](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#manage-installed-plugins>) 1. 单击 **自定义** 在应用程序侧边栏。 2. 单击 **已安装**. 3. 打开或关闭插件旁边的切换 。 ## [添加插件市场](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#adding-a-plugin-marketplace>) 在 GitHub 副驾驶应用中添加自定义市场: 1. 打开 **自定义** 页面中,选择市场下架旁边的市场设置控制。 2. 跟随提示添加 GitHub 寄存器或托管市场的 Git URL 。 创造和分享市场,看 [在 GitHub 上创建和共享插件市场](<https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/create-and-share-plugin-marketplaces>). ## [与画布扩展工作](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#working-with-canvas-extensions>) 使用画布扩展来构建共享、代理驱动的文物和接口,用于协作或个人工作流程。您可以在下面找到画布 。 **帆布画** 输入 **自定义**,或使用 `/create-canvas` 创建您自己的会话。关于更多信息,请参见 [在 GitHub 副驾驶应用中与画布扩展工作](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/working-with-canvas-extensions>). 要通过代码扫描提示和代码一起工作,请安装 `github-security` 插件。 见 [在 GitHub 副驾驶应用中查看和修复安全提示](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/view-and-fix-security-alerts>). ## [组织和企业管理](<https://docs.github.com/en/copilot/how-tos/github-copilot-app/customize-github-copilot-app#organization-and-enterprise-management>) 企业和组织所有者可以制定政策来规范如何跨表面使用Copilot。关于GitHubCopilotapp所支持的主要政策,请参见: [支持的 GitHub 辅助操作策略的表面](<https://docs.github.com/en/copilot/reference/supported-surfaces-for-policies>). 企业也可以界定: `managed-settings.json` 用于控制用户在支持的 Copilot 客户端中可采取哪些动作的文件,例如用户可以安装哪些插件,以及是否允许“YOLO-tyle”命令。见 [以企业管理设置开始](<https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-enterprise/use-managed-settings/get-started>).

查看原始来源