{"meta":{"title":"在 IDE 中使用模型上下文协议","intro":"模型上下文协议（MCP）是一种协议，允许通过将其与其他系统集成来扩展其功能 GitHub Copilot 。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/copilot","title":"GitHub Copilot"},{"href":"/zh/copilot/how-tos","title":"操作方法"},{"href":"/zh/copilot/how-tos/provide-context","title":"提供上下文"},{"href":"/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide","title":"在 IDE 中使用 MCP"}],"documentType":"subcategory"},"body":"# 在 IDE 中使用模型上下文协议\n\n模型上下文协议（MCP）是一种协议，允许通过将其与其他系统集成来扩展其功能 GitHub Copilot 。\n\n## Links\n\n* [使用 MCP（模型上下文协议）服务器扩展 GitHub Copilot 对话助手](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/extend-copilot-chat-with-mcp)\n\n  将 MCP 服务器连接到 Copilot Chat 共享来自其他应用程序的上下文。\n\n* [设置 GitHub MCP 服务器](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/set-up-the-github-mcp-server)\n\n  了解如何配置GitHub模型上下文协议 （MCP） 服务器。\n\n* [为 GitHub Enterprise 配置 GitHub MCP 服务器](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/enterprise-configuration)\n\n  了解如何将 GitHub Model Context Protocol (MCP) 服务器配置为与 GitHub Enterprise Server 或 带有数据驻留权的 GitHub Enterprise Cloud 一起使用。\n\n* [为 GitHub MCP 服务器配置工具集](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/configure-toolsets)\n\n  了解如何为 GitHub MCP 服务器配置工具集和工具，实现精细控制和优化性能。\n\n* [在 IDE 中使用 GitHub MCP 服务器](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/use-the-github-mcp-server)\n\n  了解如何使用 GitHub 模型上下文协议 （MCP） 服务器直接从 IDE 中的 Copilot Chat 与存储库、问题、拉取请求和其他GitHub功能进行交互。\n\n* [在 IDE 中更改 MCP 注册表](/zh/copilot/how-tos/provide-context/use-mcp-in-your-ide/change-mcp-registry)\n\n  自定义可用于 Copilot Chat 的 MCP 注册表。"}