Fix: Remove env_vars from HTTP MCP server config for safe-inputs#8244
Merged
Fix: Remove env_vars from HTTP MCP server config for safe-inputs#8244
Conversation
Copilot
AI
changed the title
[WIP] Fix action step issue in gh-aw
Investigation: workflow run 20610417177 step 39 failure - no reproducible issues found
Dec 31, 2025
Contributor
|
@copilot use audit tool to download error logs |
The error "env_vars is not supported for streamable_http" was caused by including env_vars in the HTTP-based safe-inputs MCP server configuration. Fixed by: - Removing env_vars generation in renderSafeInputsTOML() in mcp_renderer.go - Updated tests to verify env_vars is NOT in HTTP MCP config - Environment variables are correctly passed via job's env section instead This resolves the workflow run failure at step 39 (Ingest agent output). Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Downloaded logs using audit tool. Found the error: Fixed in commit d78fab4:
The workflow should now run successfully. |
Copilot
AI
changed the title
Investigation: workflow run 20610417177 step 39 failure - no reproducible issues found
Fix: Remove env_vars from HTTP MCP server config for safe-inputs
Dec 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixed workflow failure at step 39 ("Ingest agent output") in daily-performance-summary workflow caused by invalid MCP server configuration.
Root Cause
Used the audit tool to download logs from workflow run 20610417177. The error was:
The safe-inputs MCP server was configured with
type: httpbut incorrectly includedenv_varsin the TOML configuration. The MCP protocol does not supportenv_varsfor HTTP transport - environment variables must be passed via the workflow job'senv:section instead.Changes Made
Fixed in
pkg/workflow/mcp_renderer.go:env_varsfor HTTP safe-inputs configUpdated tests in
pkg/workflow/safe_inputs_http_codex_test.go:TestCodexSafeInputsHTTPTransportandTestCodexSafeInputsWithSecretsHTTPTransportnow passRecompiled workflow:
.github/workflows/daily-performance-summary.lock.ymlupdated without env_vars in safe-inputs configTesting
gh-aw audit 20610417177Before
After
This fix resolves the workflow failure at step 39 ("Ingest agent output") in the daily-performance-summary workflow.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.