# How do I add an MCP server to Copilot CLI with only the tools my task needs?

Exam: GH-700 — Enhancing Operational Efficiency with Agentic AI (beta)
Knowledge domain: Design and implement agentic workflows and automations (25–30%)
Updated: 2026-11-19T04:47:24.450887+00:00
HTML: https://learningpathx.com/faq/GH-700/gh700-configure-scoped-mcp-copilot-cli.html

## Also asked as

- How can I configure a Copilot CLI MCP connection with a restricted tool list?
- What steps add and verify a Copilot CLI MCP server with a restricted tool list?

In an authorized Copilot CLI session, add the reviewed MCP server using its documented transport and exact required tool names. Confirm applicable organization or enterprise policy first; where an allowlist applies, only permitted servers can run.

1. Open `/mcp` and choose its add action, or enter `/mcp add`.
2. Give the server a unique name and select its supported transport. **STDIO** launches a local process; **HTTP** uses remote Streamable HTTP; **SSE** is a deprecated legacy transport retained for compatibility.
3. Supply the approved local command and arguments, or remote endpoint, plus required environment variables or headers. Review the executable or endpoint and credential scope before connecting.
4. Set Tools to the exact documented tools required. Its default `*` makes all tools available and is not a restrictive selection.
5. Save with Ctrl+S. The server becomes available immediately, so finish trust review before saving.

The CLI's persistent user configuration is `~/.copilot/mcp-config.json`; session-only additions are a separate option. Inspect `/mcp` for status and `/mcp show SERVER-NAME` for provided tools. Confirm actual tool names and schemas rather than inventing them from a business goal.

MCP calls remain subject to session permission rules, including external reads. An active connection proves connectivity, not complete retrieval or a correct report. Use an authorized limited trial and compare the actual returned records with the task's approved scope before wider use. If access or a required tool is missing, report that exception instead of inventing a summary.

References: [Adding MCP servers for GitHub Copilot CLI - GitHub Docs](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers), [GitHub Copilot CLI command reference - GitHub Docs](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference).

Source: [GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration](https://learningpathx.com/guide/GH-700/gh-700-connect-mcp-tools-with-scoped-credentials-and-runtime-configuration.html)
