Skip to content

fix: Copy gh-aw binary to /opt/gh-aw for agentic-workflows MCP server containerization#10494

Merged
pelikhan merged 2 commits into
mainfrom
copilot/debug-auth-issue-workflow
Jan 17, 2026
Merged

fix: Copy gh-aw binary to /opt/gh-aw for agentic-workflows MCP server containerization#10494
pelikhan merged 2 commits into
mainfrom
copilot/debug-auth-issue-workflow

Conversation

Copilot AI commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

The agentic-workflows: true MCP server was failing to initialize with EOF errors because the gh-aw binary wasn't being copied to /opt/gh-aw/gh-aw where the container mount expects it.

Changes

  • pkg/workflow/mcp_servers.go: After gh extension install, copy the binary to /opt/gh-aw/gh-aw for container access
  • pkg/workflow/agentic_workflow_test.go: Added assertion verifying binary copy step is present
  • 8 workflow lock files: Recompiled to include the fix

Example

The install step now includes:

# Copy the gh-aw binary to /opt/gh-aw for MCP server containerization
mkdir -p /opt/gh-aw
GH_AW_BIN=$(which gh-aw 2>/dev/null || find ~/.local/share/gh/extensions/gh-aw -name 'gh-aw' -type f 2>/dev/null | head -1)
if [ -n "$GH_AW_BIN" ] && [ -f "$GH_AW_BIN" ]; then
  cp "$GH_AW_BIN" /opt/gh-aw/gh-aw
  chmod +x /opt/gh-aw/gh-aw
else
  echo "::error::Failed to find gh-aw binary for MCP server"
  exit 1
fi
Original prompt

debug this agentic workflow to fix the auth issue: https://github.com/githubnext/gh-aw/actions/runs/21100950541

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


Changeset

  • Type: patch
  • Description: Copy the gh-aw binary to /opt/gh-aw/gh-aw during MCP server setup to fix EOF errors when the agentic-workflows MCP server container mount expects the binary to be present.

Ahoy! This treasure was crafted by 🏴‍☠️ Changeset Generator

… containerization

When using `agentic-workflows: true` in a workflow, the MCP server was
failing to initialize because the gh-aw binary was installed via
`gh extension install` but not copied to the location expected by the
MCP container configuration (/opt/gh-aw/gh-aw).

This fix adds a step after extension installation to copy the binary
to the expected location, enabling the containerized MCP server to
successfully start.

Fixes: https://github.com/githubnext/gh-aw/actions/runs/21100950541

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug agentic workflow to fix auth issue fix: Copy gh-aw binary to /opt/gh-aw for agentic-workflows MCP server containerization Jan 17, 2026
Copilot AI requested a review from Mossaka January 17, 2026 22:00
@pelikhan pelikhan added the smoke label Jan 17, 2026
@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident...

@github-actions

Copy link
Copy Markdown
Contributor

Smoke test results:
PRs: Consolidate release artifacts, simplify release_tag usage, fix release creation order, and modernize with JavaScript; Fix daily firewall report caching stale aggregated data
GitHub MCP ✅
Serena-go ❌ (tool missing)
Playwright ✅
Tavily ✅
File write ✅
Bash cat ✅
Overall: FAIL

AI generated by Smoke Codex

@github-actions

Copy link
Copy Markdown
Contributor

Claude Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP (list PRs)
  • ✅ Serena Go (tool initialized)
  • ✅ Playwright (page title contains "GitHub")
  • ✅ Tavily (5 search results returned)
  • ✅ File Write (test file created)
  • ✅ Bash (file verified)

Status: PASS

AI generated by Smoke Claude

@pelikhan pelikhan marked this pull request as ready for review January 17, 2026 22:52
@pelikhan pelikhan merged commit 74c3642 into main Jan 17, 2026
69 of 70 checks passed
@pelikhan pelikhan deleted the copilot/debug-auth-issue-workflow branch January 17, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants