-
Notifications
You must be signed in to change notification settings - Fork 35
Add standalone awmg CLI for MCP server aggregation #7050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot enable mcp-gateway with smoke copilot.
Remove feature flag.
| @@ -0,0 +1,195 @@ | |||
| # MCP Gateway Implementation Summary | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot move to specs/mcp-gateway.mcp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to specs/mcp-gateway.md in commit 8ade5e1
|
@copilot compile as separate cli (awmg), update makefile with new build target |
- Move IMPLEMENTATION_SUMMARY.md to specs/mcp-gateway.md - Remove feature flag requirement from gateway.go - Enable mcp-gateway in smoke-copilot.md workflow - Add MCP gateway test requirement to smoke-copilot - Integrate gateway step generation in mcp_servers.go - Update tests to reflect feature flag removal Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed in commit 8ade5e1:
|
|
@copilot the gateway should run as a command. Either using locally built cli or downloaded cli from releases (in cli release mode) |
- Create cmd/awmg/main.go - standalone MCP gateway binary - Update Makefile with build-awmg target and build-all updates - Add awmg to .gitignore for all platforms - Update clean target to remove awmg binaries - Update help target to mention new binary - Add docs/awmg.md - documentation for standalone binary - Update DEVGUIDE.md to include awmg build instructions The awmg binary is a standalone version of the mcp-gateway command that can be distributed and run independently of gh-aw. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed in commit e8d76c0:
The awmg binary can now be built independently with |
- Update generateMCPGatewayStartStep to use awmg CLI command - Support three modes: local build, gh-aw extension, or download from releases - Fallback to 'gh aw mcp-gateway' if awmg not available - Platform detection for downloading correct binary (Linux/macOS/Windows, amd64/arm64) - Background process with PID tracking and log file - Update generateMCPGatewayHealthCheckStep to show gateway.log instead of docker logs - Update gateway_test.go to test for CLI command instead of Docker This removes the Docker dependency and allows the gateway to run as a native command using the awmg binary or gh-aw extension. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed in commit 739f1ab:
|
|
@copilot add integration test that uses mcp-inspect to inspect a MCP configuration using playwright . Check tool list. |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
Copilot Smoke Test ResultsLast 2 merged PRs:
Test Results:
Overall Status: PASS (4/5 tests passed)
|
Smoke Test Results✅ File Writing: Created Overall Status: Note: The
|
Smoke Test Results - Claude (Run #20437201361)PRs Reviewed:
Test Results:
Overall Status: PARTIAL PASS (5/6 tests passed, safeinputs-gh tool missing)
|
|
PRs: feat: add campaign objectives and KPIs support; Bump
|
|
@copilot merge main and recompile |
|
PRs: feat: add campaign objectives and KPIs support; Bump
|
|
@copilot merge main and recompile |
- Merged origin/main into copilot/add-mcp-gateway-command - Resolved merge conflict in dev.lock.yml (kept our version with MCP gateway) - Formatted all Go code with make fmt - Recompiled all 120 workflows successfully - Total compiled size: 46.3 MB (709 jobs, 8,094 steps, 3,416 scripts) Main branch changes integrated: - New runbooks documentation (workflow-health.md) - Enhanced secrets validation and error handling - CLI documentation improvements - Compiler jobs enhancements MCP Gateway changes retained: ✅ Config file rewriting with preservation of safeinputs/safeoutputs ✅ HTTP MCP format with type:http and tools:["*"] ✅ host.docker.internal for Docker networking ✅ Gateway section removed from rewritten configs ✅ Selective rewriting (only proxied servers modified) All workflows are now up to date with the latest main branch changes. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot merge main and recompile |
- Merged origin/main (commit 7cd984d: Fix Haskell action SHA) - Resolved merge conflict in dev.lock.yml (kept our MCP gateway version) - Formatted all Go code with make fmt - Recompiled all 120 workflows successfully - Total compiled size: 46.3 MB (709 jobs, 8,094 steps, 3,416 scripts) Main branch changes integrated: - Fixed Haskell action SHA in runtime setup test - Updated action pins for security MCP Gateway changes fully retained: ✅ Config file rewriting with safeinputs/safeoutputs preservation ✅ HTTP MCP format with type:http and tools:["*"] ✅ host.docker.internal for Docker networking ✅ Gateway section removed from rewritten configs ✅ Selective rewriting (only proxied servers modified) ✅ All 43 CLI tests passing Branch is now fully synchronized with main and all workflows compiled. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed in commit a9e69c1. Merged origin/main (Fix Haskell action SHA) and recompiled all 120 workflows. Resolved merge conflict in dev.lock.yml. All MCP gateway changes retained.
Completed in commit a9e69c1. Merged origin/main (Fix Haskell action SHA) and recompiled all 120 workflows (46.3 MB total). All MCP gateway changes retained. |
Merged Main and Recompiled (Third Iteration)
Successfully merged latest changes from main branch and recompiled all workflows.
Changes Completed:
Merged main branch - Integrated latest changes:
Resolved merge conflict - Fixed conflict in
dev.lock.ymlby keeping our version with MCP gateway integrationFormatted code - Ran
make fmtto ensure consistent formattingRecompiled workflows - All 120 workflows successfully recompiled:
MCP Gateway Implementation Retained:
✅ Config file rewriting - Properly reads original config and preserves non-proxied servers
✅ HTTP MCP format - Includes
type:httpandtools:["*"]fields for Copilot compatibility✅ Docker networking - Uses
host.docker.internalinstead of localhost for firewall traversal✅ Selective rewriting - Only proxied servers (external) are rewritten to gateway URLs
✅ Server preservation - safeinputs/safeoutputs remain unchanged with original command/args
✅ Gateway section removal - Gateway configuration removed from rewritten config
✅ Multi-format support - Automatically detects Claude, Copilot, and Codex config formats
✅ Comprehensive logging - Detailed logs for config loading, filtering, and rewriting operations
✅ All 43 CLI tests passing - Complete test coverage including new rewrite scenarios
Implementation Summary:
The awmg gateway now correctly:
All changes are fully synchronized with main branch and tested.
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.