Closed
Conversation
- Renamed pkg/awmg/gateway.go MCPGatewayConfig to MCPGatewayServersConfig (contains multiple MCP servers) - Renamed pkg/workflow/tools_types.go MCPGatewayConfig to MCPGatewayRuntimeConfig (contains runtime execution config) - Updated all references in both packages and test files - Updated documentation reference in specs/mcp-gateway.md - All tests pass for modified packages Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix MCPGatewayConfig naming collision issue
Fix MCPGatewayConfig type name collision
Dec 25, 2025
pelikhan
approved these changes
Dec 25, 2025
Contributor
|
@copilot merge main, lint |
- Merged main branch into copilot/fix-mcp-gateway-config-collision - Applied formatting with make fmt - All lint checks pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
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.
Fix MCPGatewayConfig type name collision
Successfully resolved type name collision where
MCPGatewayConfigwas defined with completely different structures in two packages.Summary
Problem:
MCPGatewayConfigwas defined in two locations with fundamentally different purposes:pkg/awmg/gateway.go- Container for multiple MCP servers configurationpkg/workflow/tools_types.go- Runtime execution configuration for the gatewaySolution: Renamed both types to clearly indicate their purpose:
MCPGatewayConfig→MCPGatewayServersConfig(in pkg/awmg/)MCPGatewayConfig→MCPGatewayRuntimeConfig(in pkg/workflow/)Recent Updates
make fmtmake lint)Changes Made
pkg/awmg/gateway.gotype toMCPGatewayServersConfigpkg/awmg/package (6 files)pkg/workflow/tools_types.gotype toMCPGatewayRuntimeConfigpkg/workflow/package (5 files)specs/mcp-gateway.mdFiles Modified (13 files + 2 formatted)
pkg/awmg/ (MCPGatewayConfig → MCPGatewayServersConfig):
pkg/workflow/ (MCPGatewayConfig → MCPGatewayRuntimeConfig):
Documentation:
Formatting:
Verification
✅ All awmg package tests pass (TestMCPGatewayServersConfig_* tests)
✅ All workflow gateway tests pass (TestGetMCPGatewayRuntimeConfig, TestGenerateMCPGateway*, etc.)
✅ All sandbox tests pass (TestSandboxConfigWithMCPGateway, etc.)
✅ Both gh-aw and awmg binaries build successfully
✅ No
MCPGatewayConfigtype name collisions remain in codebase✅ All lint checks pass
✅ Zero breaking changes - pure rename operation
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.