microsoft-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMicrosoft Docs
微软文档
Research skill for the Microsoft technology ecosystem. Covers learn.microsoft.com and documentation that lives outside it (VS Code, GitHub, Aspire, Agent Framework repos).
针对微软技术生态的研究技能。覆盖learn.microsoft.com及其以外的文档(VS Code、GitHub、Aspire、Agent Framework代码库)。
Default: Microsoft Learn MCP
默认选项:Microsoft Learn MCP
Use these tools for everything on learn.microsoft.com — Azure, .NET, M365, Power Platform, Agent Framework, Semantic Kernel, Windows, and more. This is the primary tool for the vast majority of Microsoft documentation queries.
| Tool | Purpose |
|---|---|
| Search learn.microsoft.com — concepts, guides, tutorials, configuration |
| Find working code snippets from Learn docs. Pass |
| Get full page content from a specific URL (when search excerpts aren't enough) |
Use after search when you need complete tutorials, all config options, or when search excerpts are truncated.
microsoft_docs_fetch对于learn.microsoft.com上的所有内容——Azure、.NET、M365、Power Platform、Agent Framework、Semantic Kernel、Windows等,均使用以下工具。这是绝大多数微软文档查询的主要工具。
| 工具 | 用途 |
|---|---|
| 搜索learn.microsoft.com——包含概念、指南、教程、配置内容 |
| 从Learn文档中查找可运行的代码片段。传入 |
| 从特定URL获取完整页面内容(当搜索摘要信息不足时使用) |
当你需要完整教程、所有配置选项,或搜索摘要被截断时,可在搜索后使用。
microsoft_docs_fetchExceptions: When to Use Other Tools
例外情况:何时使用其他工具
The following categories live outside learn.microsoft.com. Use the specified tool instead.
以下类别的文档不在learn.microsoft.com上,需使用指定工具。
.NET Aspire — Use Aspire MCP Server (preferred) or Context7
.NET Aspire — 使用Aspire MCP Server(优先)或Context7
Aspire docs live on aspire.dev, not Learn. The best tool depends on your Aspire CLI version:
CLI 13.2+ (recommended) — The Aspire MCP server includes built-in docs search tools:
| MCP Tool | Description |
|---|---|
| Lists all available documentation from aspire.dev |
| Weighted lexical search across aspire.dev content |
| Retrieves a specific document by slug |
These ship in Aspire CLI 13.2 (PR #14028). To update: . Ref: https://davidpine.dev/posts/aspire-docs-mcp-tools/
aspire update --self --channel dailyCLI 13.1 — The MCP server provides integration lookup (, ) but not docs search. Fall back to Context7:
list_integrationsget_integration_docs| Library ID | Use for |
|---|---|
| Primary — guides, integrations, CLI reference, deployment |
| Runtime source — API internals, implementation details |
| Community integrations — Go, Java, Node.js, Ollama |
Aspire文档托管在aspire.dev,而非Learn平台。选择最佳工具取决于你的Aspire CLI版本:
CLI 13.2+(推荐)——Aspire MCP服务器内置文档搜索工具:
| MCP工具 | 说明 |
|---|---|
| 列出aspire.dev上所有可用文档 |
| 对aspire.dev内容进行加权词法搜索 |
| 通过slug检索特定文档 |
这些工具随Aspire CLI 13.2版本发布(PR #14028)。如需更新,请执行:。参考:https://davidpine.dev/posts/aspire-docs-mcp-tools/
aspire update --self --channel dailyCLI 13.1——MCP服务器仅提供集成查询(、),但不支持文档搜索。此时请回退使用Context7:
list_integrationsget_integration_docs| 库ID | 用途 |
|---|---|
| 主要内容——指南、集成、CLI参考、部署 |
| 运行时源码——API内部实现、细节 |
| 社区集成——Go、Java、Node.js、Ollama |
VS Code — Use Context7
VS Code — 使用Context7
VS Code docs live on code.visualstudio.com, not Learn.
| Library ID | Use for |
|---|---|
| User docs — settings, features, debugging, remote dev |
| Extension API — webviews, TreeViews, commands, contribution points |
VS Code文档托管在code.visualstudio.com,而非Learn平台。
| 库ID | 用途 |
|---|---|
| 用户文档——设置、功能、调试、远程开发 |
| 扩展API——webviews、TreeViews、命令、贡献点 |
GitHub — Use Context7
GitHub — 使用Context7
GitHub docs live on docs.github.com and cli.github.com.
| Library ID | Use for |
|---|---|
| Actions, API, repos, security, admin, Copilot |
| GitHub CLI ( |
GitHub文档托管在docs.github.com和cli.github.com。
| 库ID | 用途 |
|---|---|
| Actions、API、代码库、安全、管理、Copilot |
| GitHub CLI( |
Agent Framework — Use Learn MCP + Context7
Agent Framework — 使用Learn MCP + Context7
Agent Framework tutorials are on learn.microsoft.com (use ), but the GitHub repo has API-level detail that is often ahead of published docs — particularly DevUI REST API reference, CLI options, and .NET integration.
microsoft_docs_search| Library ID | Use for |
|---|---|
| Tutorials — DevUI guides, tracing, workflow orchestration |
| API detail — DevUI REST endpoints, CLI flags, auth, .NET |
DevUI tip: Query the Learn website source for how-to guides, then the repo source for API-level specifics (endpoint schemas, proxy config, auth tokens).
Agent Framework教程位于learn.microsoft.com(使用),但GitHub代码库包含的API级细节往往领先于已发布文档——尤其是DevUI REST API参考、CLI选项和.NET集成内容。
microsoft_docs_search| 库ID | 用途 |
|---|---|
| 教程——DevUI指南、追踪、工作流编排 |
| API细节——DevUI REST端点、CLI参数、认证、.NET |
DevUI提示: 如需操作指南,请查询Learn网站资源;如需API级细节(端点 schema、代理配置、认证令牌),请查询代码库资源。
Context7 Setup
Context7 设置
For any Context7 query, resolve the library ID first (one-time per session):
- Call with the technology name
mcp_context7_resolve-library-id - Call with the returned library ID and a specific query
mcp_context7_query-docs
对于任何Context7查询,需先解析库ID(每个会话仅需执行一次):
- 调用并传入技术名称
mcp_context7_resolve-library-id - 使用返回的库ID和具体查询内容调用
mcp_context7_query-docs
Writing Effective Queries
编写有效查询
Be specific — include version, intent, and language:
undefined请具体化查询内容——包含版本、意图和语言:
undefined❌ Too broad
❌ 过于宽泛
"Azure Functions"
"agent framework"
"Azure Functions"
"agent framework"
✅ Specific
✅ 具体化
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"GitHub Actions workflow_dispatch inputs matrix strategy"
"Aspire AddUvicornApp Python FastAPI integration"
"DevUI serve agents tracing OpenTelemetry directory discovery"
"Agent Framework workflow conditional edges branching handoff"
Include context:
- **Version** when relevant (`.NET 8`, `Aspire 13`, `VS Code 1.96`)
- **Task intent** (`quickstart`, `tutorial`, `overview`, `limits`, `API reference`)
- **Language** for polyglot docs (`Python`, `TypeScript`, `C#`)"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"GitHub Actions workflow_dispatch inputs matrix strategy"
"Aspire AddUvicornApp Python FastAPI integration"
"DevUI serve agents tracing OpenTelemetry directory discovery"
"Agent Framework workflow conditional edges branching handoff"
包含上下文信息:
- **版本**(相关时):`.NET 8`、`Aspire 13`、`VS Code 1.96`
- **任务意图**:`quickstart`、`tutorial`、`overview`、`limits`、`API reference`
- **语言**(针对多语言文档):`Python`、`TypeScript`、`C#`