# How should I diagnose an MCP failure in the Copilot client that actually failed?

Exam: GH-700 — Enhancing Operational Efficiency with Agentic AI (beta)
Knowledge domain: Perform human-in-the-loop tasks for agentic workflows (20–25%)
Updated: 2026-11-19T04:33:20.260952+00:00
HTML: https://learningpathx.com/faq/GH-700/gh700-diagnose-client-specific-mcp-failure.html

## Also asked as

- 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?

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](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers), [Error Reference](https://github.github.com/gh-aw/troubleshooting/errors/), [Creating automations with Copilot cloud agent - GitHub Docs](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/create-automations).

Source: [GH-700: Diagnose Agent Workflow Failures Before Retrying](https://learningpathx.com/guide/GH-700/gh-700-diagnose-agent-workflow-failures-before-retrying.html)
