|
2 | 2 | // |
3 | 3 | // # MCP Gateway Constants |
4 | 4 | // |
5 | | -// This file defines default values and constants used by the MCP gateway |
6 | | -// throughout the workflow compilation process. These constants ensure |
7 | | -// consistent configuration across different components. |
| 5 | +// This file provides access to MCP gateway configuration constants. |
8 | 6 | // |
9 | 7 | // Gateway default values: |
10 | | -// - Port: 80 (HTTP standard port) |
| 8 | +// - Port: 80 (HTTP standard port) - defined in pkg/constants |
11 | 9 | // |
12 | 10 | // The MCP gateway port is used when: |
13 | 11 | // - No custom port is specified in sandbox.mcp.port |
14 | 12 | // - Building gateway configuration in mcp_gateway_config.go |
15 | 13 | // - Generating gateway startup commands in mcp_setup_generator.go |
16 | 14 | // |
17 | 15 | // Historical note: |
18 | | -// This constant was originally used with the awmg gateway binary. |
19 | | -// The binary has been removed but the constant is retained for |
20 | | -// backwards compatibility with existing workflow configurations. |
| 16 | +// This constant was originally defined locally but has been moved to pkg/constants |
| 17 | +// for centralization with other network port constants. |
21 | 18 | // |
22 | 19 | // Related files: |
23 | 20 | // - mcp_gateway_config.go: Uses DefaultMCPGatewayPort for configuration |
24 | 21 | // - mcp_setup_generator.go: Uses port for gateway startup |
25 | | -// - constants/constants.go: Other MCP-related constants (versions, containers) |
| 22 | +// - constants/constants.go: Defines all MCP-related constants (versions, containers, ports) |
26 | 23 | // |
27 | 24 | // Related constants in pkg/constants: |
| 25 | +// - DefaultMCPGatewayPort: Gateway port (80) |
28 | 26 | // - DefaultMCPGatewayVersion: Gateway container version |
29 | 27 | // - DefaultMCPGatewayContainer: Gateway container image |
30 | 28 | // - DefaultGitHubMCPServerVersion: GitHub MCP server version |
31 | 29 | package workflow |
32 | 30 |
|
33 | | -const ( |
34 | | - // DefaultMCPGatewayPort is the default port for the MCP gateway |
35 | | - // This constant is kept for backwards compatibility with existing configurations |
36 | | - // even though the awmg gateway binary has been removed. |
37 | | - DefaultMCPGatewayPort = 80 |
38 | | -) |
| 31 | +import "github.com/github/gh-aw/pkg/constants" |
| 32 | + |
| 33 | +// DefaultMCPGatewayPort is the default port for the MCP gateway |
| 34 | +// This is now an alias to the constant defined in pkg/constants |
| 35 | +// for backwards compatibility with existing code. |
| 36 | +const DefaultMCPGatewayPort = constants.DefaultMCPGatewayPort |
0 commit comments