Answer: Create a wrapper script that logs all communication by teeing stdin/stdout to a log file, then use it as the command in your mcpServers configuration with the actual server path and args. Status: Confirmed Entry: tool/github-copilot/troubleshooting/capture-mcp-traffic Revision: 3 Digest: sha256:2552255eb4857bbb (changes whenever the content changes) Timeline: Created: 2026-11-15T13:16:23Z Last changed: 2026-11-18T13:05:21Z (usage: — → command : "/path/to/mcp-debug-wrapper.sh" , args : [ "/actual/server/path" , "arg1" , "arg2" ]) Last verified: 2026-11-20T13:09:56Z Next check: 2026-11-21T13:09:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | Create a wrapper script to log all communication | [1] | 2026-11-20 tee command | tee -a " $LOG " | " $ACTUAL_SERVER " " $@ " 2>> " $LOG " | tee -a " $LOG " | [1] | 2026-11-20 usage | command : "/path/to/mcp-debug-wrapper.sh" , args : [ "/actual/server/path" , "arg1" , "arg2" ] | [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:56Z Quote: "Create a wrapper script to log all communication" (Supports: method) Quote: "tee -a " $LOG " | " $ACTUAL_SERVER " " $@ " 2>> " $LOG " | tee -a " $LOG "" (Supports: tee command) Quote: "command : "/path/to/mcp-debug-wrapper.sh" , args : [ "/actual/server/path" , "arg1" , "arg2" ]" (Supports: usage) 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:21Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:56Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:56Z Last attempt: 2026-11-20T13:09:56Z Notes and limitations: Extracted automatically from a single official source (section "Capture all MCP traffic"). Related: https://latestn.com/tool/github-copilot/troubleshooting/certificate-errors How do I troubleshoot certificate-related errors in GitHub Copilot? https://latestn.com/tool/github-copilot/troubleshooting/check-extension-conflicts How do I check if GitHub Copilot slowness is caused by extension conflicts in my editor? https://latestn.com/tool/github-copilot/troubleshooting/cli-not-found How do I fix the GitHub Copilot SDK error "CLI not found" or "Copilot: command not found"? https://latestn.com/tool/github-copilot/troubleshooting/browser-use-troubleshooting How do I troubleshoot browser use in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/troubleshooting/byok-model-not-specified How do I fix a 'Model not specified' error in GitHub Copilot BYOK? https://latestn.com/tool/github-copilot/troubleshooting/cannot-assign-agent-jira Why can't I assign the GitHub Copilot cloud agent to a Jira work item? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:05:21Z | changed | usage: — → command : "/path/to/mcp-debug-wrapper.sh" , args : [ "/actual/server/path" , "arg1" , "arg2" ] | [1] 2026-11-18T13:05:21Z | changed | tee command: — → tee -a " $LOG " | " $ACTUAL_SERVER " " $@ " 2>> " $LOG " | tee -a " $LOG " | [1] 2026-11-18T13:05:21Z | changed | args: /actual/server/path → — | [1] 2026-11-18T13:05:21Z | changed | command: /path/to/mcp-debug-wrapper.sh → — | [1] 2026-11-16T12:54:00Z | changed | args: — → /actual/server/path | [1] 2026-11-16T12:54:00Z | changed | command: — → /path/to/mcp-debug-wrapper.sh | [1] 2026-11-16T12:54:00Z | changed | usage: command : "/path/to/mcp-debug-wrapper.sh" → — | [1] 2026-11-16T12:54:00Z | changed | logging mechanism: tee -a " $LOG " | " $ACTUAL_SERVER " " $@ " 2>> " $LOG " | tee -a " $LOG " → — | [1] 2026-11-15T13:16:23Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/troubleshooting/capture-mcp-traffic/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/capture-mcp-traffic POST: https://latestn.com/dispute/tool/github-copilot/troubleshooting/capture-mcp-traffic with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/troubleshooting/capture-mcp-traffic?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I capture all MCP traffic for debugging in GitHub Copilot? Revision 3, last verified 2026-11-20T13:09:56Z. https://latestn.com/tool/github-copilot/troubleshooting/capture-mcp-traffic (accessed 2026-11-21T10:00:21Z). @misc{LatestN_tool_github_copilot_troubleshooting_capture_mcp_traffic_r3, title = {How do I capture all MCP traffic for debugging in GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/troubleshooting/capture-mcp-traffic}}, note = {Revision 3; digest sha256:2552255eb4857bbb; last verified 2026-11-20T13:09:56Z; accessed 2026-11-21T10:00:21Z} } 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/capture-mcp-traffic