Refactor MCP gateway health check to shell script #8539
Merged
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.
Extracted inline bash logic from
generateMCPGatewayHealthCheckStep()into a standalone shell script following the pattern used by other action scripts (validate_multi_secret.sh,start_safe_inputs_server.sh).Changes
actions/setup/sh/verify_mcp_gateway_health.sh- accepts gateway URL, MCP config path, and logs folder as parameterspkg/workflow/gateway.go:generateMCPGatewayHealthCheckStep()from ~75 lines of inline bash to 2 lines invoking the scriptgateway_test.goto verify script invocation patternBefore/After
Before:
After:
The existing
setup.shalready copies all.shfiles fromactions/setup/sh/to/tmp/gh-aw/actionswith executable permissions - no changes required.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:
https://api.github.com/user/usr/bin/gh gh api user --jq .login -json GO111MODULE ux-amd64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE rg/toolchain@v0.GOMODCACHE GOINSECURE GOMOD GOMODCACHE go(http block)/usr/bin/gh gh api user --jq .login ithub/workflows GOPROXY(http block)/usr/bin/gh gh api user --jq .login ithub/workflows log ps l --format=format:run 06b29b90c218 ps patc�� ns/setup.git go /usr/bin/gh -json GO111MODULE ux-amd64/bin/go gh(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.