Add MCP Server Log Collection and Upload to Workflow Runs #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Users now have complete visibility into MCP server logs during workflow execution for debugging purposes. Previously, MCP server logs were lost when workflows completed, making it difficult to troubleshoot connection issues, tool failures, and server errors.
What's Changed
MCP Server Configuration Updates
mcp-{toolname}-${github.run_id}) instead of auto-removalNew Log Collection Steps
/tmp/mcp-logs/directory with individual log files per MCP serverArtifact Upload
mcp-server-logsartifact alongside existing workflow logsif: always()to capture logs even when workflows failExample Output
When workflows use MCP servers (GitHub, custom stdio servers, etc.), the generated workflow now includes:
Testing
Added comprehensive test coverage in
mcp_log_collection_test.gocovering:All existing tests pass, confirming no breaking changes to current functionality.
Fixes #119.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.contoso.com/tmp/go-build488418282/b278/cli.test -test.testlogfile=/tmp/go-build488418282/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build3358252787/b278/cli.test -test.testlogfile=/tmp/go-build3358252787/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)/tmp/go-build977542521/b278/cli.test -test.testlogfile=/tmp/go-build977542521/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.