Study FAQ
How should I diagnose an MCP failure in the Copilot client that actually failed?
Also asked as 2
- How do I troubleshoot an MCP error in the specific Copilot runtime where it occurs?
- What should I check in the failing Copilot client before changing a broken MCP integration?
Answer
Check the MCP server in the client or workflow that reported the failure. A successful connection in another client does not establish that this runtime loaded the server or has the same tools, transport and credentials.
For Copilot CLI, /mcp in an interactive session displays configured servers and status. From a terminal with Copilot CLI installed, run copilot mcp get SERVER_NAME, replacing the placeholder with the configured name, to inspect that server's configuration and enabled state. Verify the failed operation separately against the intended resource; configuration alone does not establish successful tool execution.
A local STDIO server starts a process, so inspect its executable and required environment. HTTP or SSE configurations connect to remote servers, so inspect endpoint, transport and authentication. Copilot CLI does not use VS Code's .vscode/mcp.json as its own configuration; do not copy one client's settings wholesale into another runtime.
For gh-aw, compare the workflow's supported MCP declaration with its actual diagnostic. For a cloud automation, an administrator configures repository MCP servers and the automation selects available tools. Its GitHub repository-write restriction does not constrain the external resources permitted by MCP credentials.
Correct only a demonstrated deficiency and retain the approved target and tool scope. An access error is not authorization to grant every tool or broader credentials. Retry a narrow known operation and inspect its actual result and effects.
References: Adding MCP servers for GitHub Copilot CLI - GitHub Docs, Error Reference, Creating automations with Copilot cloud agent - GitHub Docs.
Full explanation
GH-700: Diagnose Agent Workflow Failures Before Retrying
Study guide · GH-700
Read the full explanation