You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 06-mcp-servers/README.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ MCP Servers:
75
75
76
76
> 💡 **Only seeing the GitHub server?** That's expected! If you haven't added any additional MCP servers yet, GitHub is the only one listed. You'll add more in the next section.
77
77
78
-
> 📚 **Want to see all `/mcp`commands?**There are additional commands for adding, editing, enabling, and deleting servers. See the [full command reference](#-additional-mcp-commands) at the end of this chapter.
78
+
> 📚 **Want to see all MCP management commands?**You can manage servers with `/mcp` slash commands inside chat, or with `copilot mcp` directly from your terminal. See the [full command reference](#-additional-mcp-commands) at the end of this chapter.
79
79
80
80
<details>
81
81
<summary>🎬 See it in action!</summary>
@@ -883,21 +883,42 @@ If a server is disabled, see the [additional `/mcp` commands](#-additional-mcp-c
883
883
---
884
884
885
885
<details>
886
-
<summary>📚 <strong>Additional <code>/mcp</code> Commands</strong> (click to expand)</summary>
886
+
<summary>📚 <strong>Additional MCP Commands</strong> (click to expand)</summary>
887
887
<a id="-additional-mcp-commands"></a>
888
888
889
-
Beyond `/mcp show`, there are several other commands for managing your MCP servers:
889
+
You can manage MCP servers in two ways: using **slash commands inside a chat session**, or using the **`copilot mcp`command directly in your terminal** (no chat session needed).
890
+
891
+
### Option 1: Slash commands (inside a chat session)
892
+
893
+
These work when you're already inside `copilot`:
890
894
891
895
| Command | What It Does |
892
896
|---------|--------------|
893
897
| `/mcp show` | Show all configured MCP servers and their status |
894
898
| `/mcp add` | Interactive setup for adding a new server |
895
899
| `/mcp edit <server-name>` | Edit an existing server configuration |
896
-
|`/mcp enable<server-name>`| Enable a disabled server |
897
-
|`/mcp disable <server-name>`|Temporarily disable a server |
900
+
| `/mcp enable <server-name>` | Enable a disabled server (persists across sessions) |
901
+
| `/mcp disable <server-name>` | Disable a server (persists across sessions) |
898
902
| `/mcp delete <server-name>` | Remove a server permanently |
899
903
| `/mcp auth <server-name>` | Re-authenticate with an MCP server that uses OAuth (e.g., after switching accounts) |
900
904
905
+
### Option 2: `copilot mcp` command (from your terminal)
906
+
907
+
You can also manage MCP servers directly from your terminal without starting a chat session first:
908
+
909
+
```bash
910
+
# List all configured MCP servers
911
+
copilot mcp list
912
+
913
+
# Enable a server
914
+
copilot mcp enable filesystem
915
+
916
+
# Disable a server
917
+
copilot mcp disable context7
918
+
```
919
+
920
+
> 💡 **When to use which?** Use `/mcp` slash commands when you're already in a chat session. Use `copilot mcp` from the terminal when you want to quickly check or change your server settings before starting a session.
921
+
901
922
For most of this course, `/mcp show` is all you need. The other commands become useful as you manage more servers over time.
902
923
903
924
</details>
@@ -912,7 +933,7 @@ For most of this course, `/mcp show` is all you need. The other commands become
912
933
2. **GitHub MCP is built-in** - no configuration needed, just `/login`
913
934
3. **Filesystem and Context7** are configured via `~/.copilot/mcp-config.json`
914
935
4. **Multi-server workflows** combine data from multiple sources in a single session
915
-
5. **Check server status** with`/mcp show` (additional commands available for managing servers)
936
+
5. **Manage servers two ways**: use`/mcp` slash commands inside chat, or `copilot mcp` from the terminal
916
937
6. **Custom servers**let you connect any API (optional, covered in the appendix guide)
917
938
918
939
> 📋 **Quick Reference**: See the [GitHub Copilot CLI command reference](https://docs.github.com/en/copilot/reference/cli-command-reference) for a complete list of commands and shortcuts.
0 commit comments