用途:检索微软技术生态的官方文档,查找概念、教程与代码示例,涵盖 learn.microsoft.com 以及站点外的 VS Code、GitHub、Aspire、Agent Framework 仓库文档。
主要能力(默认走 Microsoft Learn MCP):microsoft_docs_search 搜索 learn.microsoft.com 的概念、指南、教程与配置,适用于 Azure、.NET、M365、Power Platform、Agent Framework、Semantic Kernel、Windows 等绝大多数查询;microsoft_code_sample_search 查找 Learn 文档中的可运行代码片段,传入 language(如 python、csharp)效果更好;microsoft_docs_fetch 按 URL 获取完整页面内容,在搜索摘要不足或需要完整教程、全部配置项时使用。
例外与站外文档:Aspire 文档在 aspire.dev,优先用 Aspire MCP Server(CLI 13.2+ 提供 list_docs、search_docs、get_doc,更新命令 aspire update --self --channel daily),CLI 13.1 则回退 Context7;VS Code 用 Context7(/websites/code_visualstudio、/websites/code_visualstudio_api);GitHub 用 Context7(/websites/github_en、/websites/cli_github);Agent Framework 教程用 Learn MCP,API 级细节(DevUI REST 端点、CLI 选项、.NET 集成)再查仓库源。
调用方式:Context7 查询需先在会话内解析库 ID(mcp_context7_resolve-library-id),再用返回的 ID 调用 mcp_context7_query-docs。查询应具体,包含版本、意图与语言,例如“Azure Functions Python v2 programming model”。
限制:资料未提供收费、价格与平台细节;Aspire 文档搜索能力依赖 CLI 版本。