A developer is configuring a GitHub Copilot agent to use GitHub's hosted remote MCP server so the agent can call GitHub APIs as tools. Which endpoint URL and transport type should the agent definition specify?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Remote MCP servers run over HTTP, not a local process pipe. GitHub's official hosted MCP endpoint is https://api.github.com/mcp/v1, and because it's a remote HTTP service, the transport must be sse (Server-Sent Events) — not stdio, which is only for locally spawned processes. This is the key distinction between a local MCP server and a GitHub-hosted remote one.
Full explanation below image
Full Explanation
GitHub provides a hosted remote MCP server at https://api.github.com/mcp/v1 that exposes GitHub API capabilities (repository operations, issues, pull requests, etc.) as MCP tools. When configuring a Copilot agent to use this endpoint, two fields must be correct simultaneously: the URL and the transport.
Option A is incorrect in its transport choice. stdio transport means the runtime launches a local child process and communicates with it over standard input/output. A remote HTTP endpoint cannot be reached via stdio — there is no local process to spawn.
Option B is correct. The GitHub remote MCP server uses sse (Server-Sent Events) as its transport. SSE is an HTTP-based protocol where the server pushes events to the client over a persistent connection. The agent runtime connects to https://api.github.com/mcp/v1 via SSE, completes the MCP handshake, and then can call GitHub API tools. Authentication (typically a GitHub token) is passed in request headers, not in the URL or transport field.
Option C is incorrect because there is no WebSocket-based MCP transport in the current MCP specification, and wss://copilot.github.com/mcp is not a real GitHub endpoint.
Option D is incorrect because https://github.com/settings/mcp is a browser settings page, not an MCP server endpoint, and oauth is an authentication mechanism, not a valid MCP transport type.
A critical exam point: always match transport to server location. stdio = local process; sse = remote HTTP server. Getting this wrong means the agent runtime cannot establish a connection regardless of how correct the rest of the configuration is.