Answer: Add environment variables to your MCP server config, including MCP_DEBUG set to "1", DEBUG set to "*", and NODE_DEBUG set to "mcp" for Node.js MCP servers. Status: Confirmed Entry: tool/github-copilot/troubleshooting/enable-mcp-debug-logging Revision: 2 Digest: sha256:f1ba611eb403a5e1 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:29:24Z Last changed: 2026-11-19T13:03:31Z (instruction: — → Add environment variables to your MCP server config) Last verified: 2026-11-20T13:09:55Z Next check: 2026-11-21T13:09:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of MCP_DEBUG | 1 | [1] | 2026-11-20 DEBUG | * | [1] | 2026-11-20 NODE_DEBUG | mcp | [1] | 2026-11-20 instruction | Add environment variables to your MCP server config | [1] | 2026-11-20 Sources: [1] GitHub. "MCP server debugging guide - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/troubleshooting/mcp-debugging Role: primary. Accessed: 2026-11-20T13:09:55Z Quote: "MCP_DEBUG : "1"" (Supports: MCP_DEBUG) Quote: "DEBUG : "*"" (Supports: DEBUG) Quote: "NODE_DEBUG : "mcp"" (Supports: NODE_DEBUG) Quote: "Add environment variables to your MCP server config" (Supports: instruction) Snapshot SHA-256: 695903ee8d09ab55e5d0ecfea7d864ad4656461f3e4f20b17a259804dfa8daeb (captured 2026-11-18T13:05:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:05:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:55Z Last attempt: 2026-11-20T13:09:55Z Notes and limitations: Extracted automatically from a single official source (section "Enable MCP debug logging"). Related: https://latestn.com/tool/github-copilot/troubleshooting/error-handling-hook How do I handle errors with a hook in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/troubleshooting/firewall-block-cause What causes GitHub Copilot to be blocked by a firewall or proxy? https://latestn.com/tool/github-copilot/troubleshooting/fix-access-denied How do I fix an "Access denied" error in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/troubleshooting/diagnose-network-issues How do I diagnose network issues with GitHub Copilot? https://latestn.com/tool/github-copilot/troubleshooting/enable-debug-logging How do I enable debug logging in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/troubleshooting/enable-debug-mode How do I enable debug mode for GitHub Copilot in my IDE? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:03:31Z | changed | instruction: — → Add environment variables to your MCP server config | [1] 2026-11-19T13:03:31Z | changed | Config location: env → — | [1] 2026-11-13T03:29:24Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/troubleshooting/enable-mcp-debug-logging/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/troubleshooting/enable-mcp-debug-logging POST: https://latestn.com/dispute/tool/github-copilot/troubleshooting/enable-mcp-debug-logging with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/troubleshooting/enable-mcp-debug-logging?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable MCP debug logging in GitHub Copilot? Revision 2, last verified 2026-11-20T13:09:55Z. https://latestn.com/tool/github-copilot/troubleshooting/enable-mcp-debug-logging (accessed 2026-11-21T09:53:27Z). @misc{LatestN_tool_github_copilot_troubleshooting_enable_mcp_debug_logging_r2, title = {How do I enable MCP debug logging in GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/troubleshooting/enable-mcp-debug-logging}}, note = {Revision 2; digest sha256:f1ba611eb403a5e1; last verified 2026-11-20T13:09:55Z; accessed 2026-11-21T09:53:27Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/troubleshooting/enable-mcp-debug-logging