agenticlately · GH-600 Study Prep
Home Phase B Lesson 2.3
PHASE B · LESSON 2.3

MCP servers — add one + the GitHub remote server

When the agent's built-in tools aren't enough, you don't rebuild the agent — you plug in a specialist. An MCP server exposes extra tools (talk to Jira, drive a browser, query GitHub itself). Learn what MCP is, how to add a server, the three transports, and the one server you must know cold: the GitHub remote MCP server.

~10 minread 4quiz questions Tier 1source cited
Story

The crew can frame a house, but the wiring needs a licensed electrician. You don't retrain your framers — you bring in a subcontractor. They arrive with their own gear, you point them at the panel, and the site can suddenly do something it couldn't before. Job done, they pack up and leave; the site itself didn't change.

That's an MCP server. The agent has its built-in tools (2.1/2.2), but a task might need a capability it lacks — talk to Jira, drive a browser, query a database. Instead of rebuilding the agent, you plug in a specialist that exposes those extra tools. Some are on-site (a local process); some you phone (remote). And one specialist is already on the payroll: the GitHub MCP server.

The idea, in plain English

MCP (Model Context Protocol) is an open standard — a shared language — for letting an application give an LLM extra context and tools. (Open standard = a public spec anyone can implement, so the same server works across different AI clients.)

An MCP server is a program that exposes a set of tools to the agent. Add one and its tools join the agent's toolbox (still subject to the tools allow-listing from 2.2). The agent is the client/host; the server is the specialist it calls.

Two sub-skills here

Add an MCP server as a tool, and configure the GitHub remote MCP server — both official GH-600 objectives.

Adding an MCP server (the mechanics)

Two ways:

Fields → JSON keys:

FieldJSON keyMeaning
Server Name(object key)a unique id you pick
Server typetypelocal (= STDIO) or http
Command (+ args)command, argsfor local/STDIO: the process to launch (e.g. npx @playwright/mcp@latest)
URLurlfor HTTP/SSE: the remote endpoint
Envenvenvironment variables for the server
HeadersheadersHTTP headers (e.g. an API key) for a remote server
Toolstoolswhich of the server's tools to expose — ["*"] = all

The three transport types (a likely exam beat):

TransportWhat it isKey fields
Local / STDIOlaunches a local process, talks over stdin/stdout (STDIO = canonical name)command, args
HTTPStreamable HTTP to a remote serverurl (+ headers)
SSElegacy HTTP + Server-Sent Events — deprecated, still worksurl

When to use which: local/STDIO for a tool you run yourself (browser driver, local bridge); HTTP for a hosted remote service. Prefer HTTP over SSE for new servers (SSE is deprecated). Manage servers with /mcp subcommands: list, show, edit, remove, disable (session-scoped), enable. Copilot auto-selects MCP tools; force one by naming server/tool in the prompt.

The GitHub remote MCP server (know this cold)

The GitHub MCP server exposes GitHub itself — repos, issues, PRs — to AI clients. It is pre-installed in Copilot CLI (no setup). Key facts:

Worked example — a local + a remote server

// ~/.copilot/mcp-config.json
{
  "mcpServers": {
    "playwright": {                       // a LOCAL/STDIO specialist…
      "type": "local",
      "command": "npx",
      "args": ["@playwright/mcp@latest"], // launched as a subprocess
      "tools": ["*"]
    },
    "my-api": {                           // a REMOTE HTTP specialist…
      "type": "http",
      "url": "https://mcp.example.com/",  // phoned, not launched
      "headers": { "Authorization": "Bearer ..." }
    }
  }
}
One-look contrast

local/STDIO = command+args (you launch it); HTTP = url (you call it); the GitHub server = a remote HTTP server already provided at api.githubcopilot.com/mcp/. Type follows whether you launch or call.

Study-guide traps (gist, unverified)
  • Config key is mcp-servers in custom-agent YAML, but mcpServers in JSON — easy to mix up.
  • A URL inside args does not make it remote — with a command+args it's still a local process.
  • In the cloud agent, referenced secret names must start with COPILOT_MCP_, and remote servers relying on OAuth aren't supported.

The cert-language version

MCP is an open standard for extending an agent with external tools and data. You add an MCP server via /mcp add or mcp-config.json, choosing a transport — STDIO/local (command+args), HTTP (url), or legacy SSE. The GitHub MCP server exposes repos/issues/PRs, is pre-installed, defaults to read-only, source-repo-scoped, and is recommended in its remote form at https://api.githubcopilot.com/mcp/.

Our summary · grounded in modelcontextprotocol.io + GitHub Docs (Copilot CLI MCP, GitHub MCP server, custom-agents config) + naim149 study gist · fetched 2026-05-30

Common confusions (read these or lose points)

Ticks this lesson done on the home roadmap. Saved in this browser.

Quiz · Lock it in

0 / 0 answered
Q1 · multiple choice

By default, what can the out-of-box GitHub MCP server do?

Answer · B. The github MCP server is pre-installed and read-only by default, token scoped to the source repo. (D describes the playwright server. C is wrong — it's pre-installed.)
Q2 · multiple choice

A server is configured with command: npx and args: ["bridge", "https://x.com"]. What transport is it?

Answer · A. Transport is decided by how it's launched: command+args = local/STDIO process. A URL inside args (a local bridge) doesn't make it remote — remote needs type: http + url.
Q3 · multiple choice

For a brand-new connection to a hosted remote MCP server, which transport should you choose?

Answer · C. SSE is legacy/deprecated in the MCP spec (still supported). Prefer HTTP (Streamable HTTP) for new remote servers. STDIO is for local processes, not remote.
Q4 · explain back

In your own words: what is MCP, what are the two ways to add a server, and give three facts about the GitHub remote MCP server.

Suggested answer

MCP = Model Context Protocol, an open standard for extending an agent with external tools/data via a server. Add a server two ways: interactively with /mcp add, or by editing ~/.copilot/mcp-config.json (live immediately, no restart). GitHub MCP server: exposes repos/issues/PRs; pre-installed in Copilot CLI; read-only and source-repo-scoped by default; remote is recommended at https://api.githubcopilot.com/mcp/ (HTTP); Enterprise Server is local-only.


  
Source · modelcontextprotocol.io + GitHub Docs (Copilot CLI MCP, GitHub MCP server) + naim149 study gist · fetched 2026-05-30

Unofficial study material. Not affiliated with, endorsed by, or sponsored by GitHub or Microsoft. “GH-600” and “GitHub” are trademarks of their respective owners, used for identification only.