Skip to content

Commit 557acf5

Browse files
authored
Merge pull request #11 from github/docs/microsoft-learn-mcp-server
docs(mcp): add Microsoft Learn MCP server and fix config paths
2 parents 4c1b8db + 04ae019 commit 557acf5

File tree

1 file changed

+55
-11
lines changed

1 file changed

+55
-11
lines changed

06-mcp-servers/README.md

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Now that you've seen MCP in action, let's set up additional servers. This sectio
125125

126126
## MCP Configuration File
127127

128-
MCP servers are configured in `~/.copilot/mcp-config.json` (global) or `.copilot/mcp-config.json` (project).
128+
MCP servers are configured in `~/.copilot/mcp-config.json` (user-level, applies to all projects) or `.vscode/mcp.json` (project-level, applies to just the current workspace).
129129

130130
```json
131131
{
@@ -219,7 +219,9 @@ Context7 gives Copilot access to up-to-date documentation for popular frameworks
219219
}
220220
```
221221

222-
**No API key required** · ✅ **No account needed** · ✅ **Your code stays local**
222+
-**No API key required**
223+
-**No account needed**
224+
-**Your code stays local**
223225

224226
Add this to your `~/.copilot/mcp-config.json` and restart Copilot.
225227

@@ -231,13 +233,40 @@ Add this to your `~/.copilot/mcp-config.json` and restart Copilot.
231233

232234
These are optional extras for when you're comfortable with the core servers above.
233235

234-
### Building a Custom MCP Server
236+
### Microsoft Learn MCP Server
235237

236-
Want to connect Copilot to your own APIs, databases, or internal tools? You can build a custom MCP server in Python. This is completely optional since the pre-built servers (GitHub, filesystem, Context7) cover most use cases.
238+
Every MCP server you've seen so far (filesystem, Context7) runs locally on your machine. But MCP servers can also run remotely, meaning you just point Copilot CLI at a URL and it handles the rest. No `npx` or `python`, no local process, no dependencies to install.
237239

238-
📖 See the [Custom MCP Server Guide](mcp-custom-server.md) for a complete walkthrough using the book app as an example.
240+
The [Microsoft Learn MCP Server](https://github.com/microsoftdocs/mcp) is a good example. It gives Copilot CLI direct access to official Microsoft documentation (Azure, Microsoft Foundry and other AI topics, .NET, Microsoft 365, and much more) so it can search docs, fetch full pages, and find official code samples instead of relying on a model's training data.
239241

240-
📚 For more background, see the [MCP for Beginners course](https://github.com/microsoft/mcp-for-beginners).
242+
-**No API key required**
243+
-**No account needed**
244+
-**No local install required**
245+
246+
**Quick install with `/plugin install`:**
247+
248+
Instead of editing your JSON config file manually, you can install it in one command:
249+
250+
```bash
251+
copilot
252+
253+
> /plugin install microsoftdocs/mcp
254+
```
255+
256+
This adds the server and its associated agent skills automatically. The skills installed include:
257+
258+
- **microsoft-docs**: Concepts, tutorials, and factual lookups
259+
- **microsoft-code-reference**: API lookups, code samples, and troubleshooting
260+
- **microsoft-skill-creator**: A meta-skill for generating custom skills about Microsoft technologies
261+
262+
**Usage:**
263+
```bash
264+
copilot
265+
266+
> What's the recommended way to deploy a Python app to Azure App Service? Search Microsoft Learn.
267+
```
268+
269+
📚 Learn more: [Microsoft Learn MCP Server overview](https://learn.microsoft.com/training/support/mcp-get-started)
241270
242271
### Web Access with `web_fetch`
243272
@@ -267,6 +296,14 @@ copilot
267296
> Fetch and summarize the README from https://github.com/facebook/react
268297
```
269298
299+
### Building a Custom MCP Server
300+
301+
Want to connect Copilot to your own APIs, databases, or internal tools? You can build a custom MCP server in Python. This is completely optional since the pre-built servers (GitHub, filesystem, Context7) cover most use cases.
302+
303+
📖 See the [Custom MCP Server Guide](mcp-custom-server.md) for a complete walkthrough using the book app as an example.
304+
305+
📚 For more background, see the [MCP for Beginners course](https://github.com/microsoft/mcp-for-beginners).
306+
270307
</details>
271308
272309
<a id="complete-configuration-file"></a>
@@ -296,7 +333,7 @@ Here's a full `mcp-config.json` with filesystem and Context7 servers:
296333
}
297334
```
298335
299-
Save this as `~/.copilot/mcp-config.json` for global access or `.copilot/mcp-config.json` for project-specific configuration.
336+
Save this as `~/.copilot/mcp-config.json` for global access or `.vscode/mcp.json` for project-specific configuration.
300337
301338
---
302339
@@ -317,7 +354,7 @@ Now that you have MCP servers configured, let's see what they can do.
317354
| GitHub repos, issues, and PRs | [GitHub Server](#github-server-built-in) |
318355
| Browsing project files | [Filesystem Server Usage](#filesystem-server-usage) |
319356
| Library documentation lookup | [Context7 Server Usage](#context7-server-usage) |
320-
| Custom server and web_fetch usage | [Beyond the Basics Usage](#beyond-the-basics-usage) |
357+
| Custom server, Microsoft Learn MCP and web_fetch usage | [Beyond the Basics Usage](#beyond-the-basics-usage) |
321358

322359
<details>
323360
<summary><strong>GitHub Server (Built-in)</strong> - Access repos, issues, PRs, and more</summary>
@@ -475,8 +512,15 @@ Best practices:
475512
```bash
476513
copilot
477514

478-
> Look up information about "1984" using the book lookup server
479-
> Search for books by George Orwell
515+
> Look up information about "1984" using the book lookup server. Search for books by George Orwell
516+
```
517+
518+
**Microsoft Learn MCP**: If you installed the [Microsoft Learn MCP server](#microsoft-learn-mcp-server), you can look up official Microsoft documentation directly:
519+
520+
```bash
521+
copilot
522+
523+
> How do I configure managed identity for an Azure Function? Search Microsoft Learn.
480524
```
481525
482526
**Web Fetch**: Use the built-in `web_fetch` tool to pull in content from any URL:
@@ -796,7 +840,7 @@ Ready to go deeper? Follow the [Custom MCP Server Guide](mcp-custom-server.md) t
796840
| Mistake | What Happens | Fix |
797841
|---------|--------------|-----|
798842
| Not knowing GitHub MCP is built-in | Trying to install/configure it manually | GitHub MCP is included by default. Just try: "List the recent commits in this repo" |
799-
| Looking for config in wrong location | Can't find or edit MCP settings | Config is in `~/.copilot/mcp-config.json` |
843+
| Looking for config in wrong location | Can't find or edit MCP settings | User-level config is in `~/.copilot/mcp-config.json`, project-level is `.vscode/mcp.json` |
800844
| Invalid JSON in config file | MCP servers fail to load | Use `/mcp show` to check configuration; validate JSON syntax |
801845
| Forgetting to authenticate MCP servers | "Authentication failed" errors | Some MCPs need separate auth. Check each server's requirements |
802846

0 commit comments

Comments
 (0)