Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. GH-700/
  4. GH-700 Learning Path/
  5. Study FAQs/
  6. How do I add an MCP server to Copilot CLI with only the tools my task needs?

Study FAQ

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

Exam · GH-700Knowledge domain · Design and implement agentic workflows and automations (25–30%)Updated Nov 19, 2026
Also asked as 2
  • 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?

Answer

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, GitHub Copilot CLI command reference - GitHub Docs.

Full explanation

GH-700: Connect MCP Tools with Scoped Credentials and Runtime Configuration

Study guide · GH-700

Read the full explanation →
← Back to GH-700 FAQsView learning path →

Related questions

Do periodic Copilot cloud automation credit limits stop a run already in progress? →How do personal and shared Copilot cloud automations differ? →How should I scope GitHub Actions secrets for Copilot-assisted business workflows? →Why can a Copilot custom agent fail to search the web even when its prompt asks it to? →How do I create a repository custom agent that only reads and searches evidence? →How do I create and invoke a reusable skill in GitHub Copilot CLI? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.