microsoft-docs
microsoft/skills
查询微软官方文档,以了解 Azure、.NET、M365、Windows、Power Platform 及其他微软技术的相关概念、查找教程、配置选项、限制、配额和最佳实践。
...展开全部Microsoft Docs
工具
| 工具 | 用途 |
|---|---|
microsoft_docs_search |
查找文档——概念、指南、教程、配置 |
microsoft_docs_fetch |
获取完整页面内容(当搜索摘要不够用时) |
何时使用
- 理解概念——“Cosmos DB 分区是如何工作的?”
- 了解服务 ——“Azure Functions 概述”、“容器应用架构”
- 查找教程——“快速入门”、“开始使用”、“分步指南”
- 配置选项 — “App Service 配置设置”
- 限制与配额 — “Azure OpenAI 速率限制”、“Service Bus 配额”
- 最佳实践 — “Azure 安全最佳实践”
查询有效性
优质的查询应具有针对性:
# ❌ Too broad
"Azure Functions"
# ✅ Specific
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"Container Apps scaling rules KEDA"
包含上下文:
- 如适用,请提供版本信息(
.NET 8,EF Core 8) - 任务意图(
quickstart,tutorial,overview,limits) - 多平台文档应注明平台(
Linux,Windows)
何时获取完整页面
在以下情况下于搜索后加载:
- 教程 — 需要完整的分步说明
- 配置指南 — 需要列出所有选项
- 深度解析 — 用户希望内容全面详尽
- 搜索摘要被截断 — 需要完整上下文
为何使用此功能
- 准确性 — 实时文档,而非可能已过时的训练数据
- 完整性 — 教程包含所有步骤,而非片段
- 权威性——微软官方文档
CLI 替代方案
如果 Learn MCP 服务器不可用,请改用 mslearn 命令行界面(CLI):
# Run directly (no install needed)
npx @microsoft/learn-cli search "azure functions timeout"
# Or install globally, then run
npm install -g @microsoft/learn-cli
mslearn search "azure functions timeout"
| MCP 工具 | CLI 命令 |
|---|---|
microsoft_docs_search(query: "...") |
mslearn search "..." |
microsoft_docs_fetch(url: "...") |
mslearn fetch "..." |
该 fetch 命令还支持 --section 来提取单个部分,以及 --max-chars 截断输出。
---
name: microsoft-docs
description: Query official Microsoft documentation to understand concepts, find tutorials, configuration options, limits, quotas, and best practices for Azure, .NET, M365, Windows, Power Platform, and other Microsoft technologies.
---
# Microsoft Docs
## Tools
| Tool | Use For |
|------|---------|
| `microsoft_docs_search` | Find documentation—concepts, guides, tutorials, configuration |
| `microsoft_docs_fetch` | Get full page content (when search excerpts aren't enough) |
## When to Use
- **Understanding concepts** — "How does Cosmos DB partitioning work?"
- **Learning a service** — "Azure Functions overview", "Container Apps architecture"
- **Finding tutorials** — "quickstart", "getting started", "step-by-step"
- **Configuration options** — "App Service configuration settings"
- **Limits & quotas** — "Azure OpenAI rate limits", "Service Bus quotas"
- **Best practices** — "Azure security best practices"
## Query Effectiveness
Good queries are specific:
```
# ❌ Too broad
"Azure Functions"
# ✅ Specific
"Azure Functions Python v2 programming model"
"Cosmos DB partition key design best practices"
"Container Apps scaling rules KEDA"
```
Include context:
- **Version** when relevant (`.NET 8`, `EF Core 8`)
- **Task intent** (`quickstart`, `tutorial`, `overview`, `limits`)
- **Platform** for multi-platform docs (`Linux`, `Windows`)
## When to Fetch Full Page
Fetch after search when:
- **Tutorials** — need complete step-by-step instructions
- **Configuration guides** — need all options listed
- **Deep dives** — user wants comprehensive coverage
- **Search excerpt is cut off** — full context needed
## Why Use This
- **Accuracy** — live docs, not training data that may be outdated
- **Completeness** — tutorials have all steps, not fragments
- **Authority** — official Microsoft documentation
## CLI Alternative
If the Learn MCP server is not available, use the `mslearn` CLI from the command line instead:
```sh
# Run directly (no install needed)
npx @microsoft/learn-cli search "azure functions timeout"
# Or install globally, then run
npm install -g @microsoft/learn-cli
mslearn search "azure functions timeout"
```
| MCP Tool | CLI Command |
|----------|-------------|
| `microsoft_docs_search(query: "...")` | `mslearn search "..."` |
| `microsoft_docs_fetch(url: "...")` | `mslearn fetch "..."` |
The `fetch` command also supports `--section <heading>` to extract a single section and `--max-chars <number>` to truncate output.





首页
