@@ -486,14 +486,14 @@ func TestRunConfig_WithStandardLabels(t *testing.T) {
486
486
Name : "test-server" ,
487
487
Image : "test-image" ,
488
488
Transport : types .TransportTypeSSE ,
489
- Port : 8080 ,
489
+ Port : 60000 ,
490
490
ContainerLabels : map [string ]string {},
491
491
},
492
492
expected : map [string ]string {
493
493
"toolhive" : "true" ,
494
494
"toolhive-name" : "test-server" ,
495
495
"toolhive-transport" : "sse" ,
496
- "toolhive-port" : "8080 " ,
496
+ "toolhive-port" : "60000 " ,
497
497
"toolhive-tool-type" : "mcp" ,
498
498
},
499
499
},
@@ -577,7 +577,7 @@ func TestNewRunConfigFromFlags(t *testing.T) {
577
577
permissionProfile := permissions .ProfileNone
578
578
targetHost := "localhost"
579
579
mcpTransport := "sse"
580
- port := 8080
580
+ proxyPort := 60000
581
581
targetPort := 9000
582
582
envVars := []string {"TEST_ENV=test_value" }
583
583
oidcIssuer := "https://issuer.example.com"
@@ -604,7 +604,7 @@ func TestNewRunConfigFromFlags(t *testing.T) {
604
604
permissionProfile ,
605
605
targetHost ,
606
606
mcpTransport ,
607
- port ,
607
+ proxyPort ,
608
608
targetPort ,
609
609
envVars ,
610
610
nil , // labels
@@ -653,7 +653,7 @@ func TestNewRunConfigFromFlags(t *testing.T) {
653
653
654
654
// Check transport settings
655
655
assert .Equal (t , types .TransportTypeSSE , config .Transport , "Transport should be set to SSE" )
656
- assert .Equal (t , port , config .Port , "ProxyPort should match" )
656
+ assert .Equal (t , proxyPort , config .Port , "ProxyPort should match" )
657
657
assert .Equal (t , targetPort , config .TargetPort , "TargetPort should match" )
658
658
659
659
// Check OIDC config
@@ -677,7 +677,7 @@ func TestRunConfig_WriteJSON_ReadJSON(t *testing.T) {
677
677
ContainerName : "test-container" ,
678
678
BaseName : "test-base" ,
679
679
Transport : types .TransportTypeSSE ,
680
- Port : 8080 ,
680
+ Port : 60000 ,
681
681
TargetPort : 9000 ,
682
682
Debug : true ,
683
683
ContainerLabels : map [string ]string {
@@ -860,7 +860,7 @@ func TestNewRunConfigFromFlags_MetadataOverrides(t *testing.T) {
860
860
permissions .ProfileNone ,
861
861
"localhost" ,
862
862
tt .userTransport ,
863
- 8080 , // port
863
+ 0 , // port
864
864
tt .userTargetPort ,
865
865
nil , // envVars
866
866
nil , // labels
@@ -920,7 +920,7 @@ func TestNewRunConfigFromFlags_EnvironmentVariableTransportDependency(t *testing
920
920
permissions .ProfileNone ,
921
921
"localhost" ,
922
922
"sse" , // This should result in MCP_TRANSPORT=sse in env vars
923
- 8080 ,
923
+ 0 ,
924
924
9000 , // This should result in MCP_PORT=9000 in env vars
925
925
[]string {"USER_VAR=value" },
926
926
nil , // labels
@@ -973,7 +973,7 @@ func TestNewRunConfigFromFlags_CmdArgsMetadataPrepending(t *testing.T) {
973
973
permissions .ProfileNone ,
974
974
"localhost" ,
975
975
"" ,
976
- 8080 ,
976
+ 0 ,
977
977
0 ,
978
978
nil ,
979
979
nil , // labels
@@ -1027,7 +1027,7 @@ func TestNewRunConfigFromFlags_VolumeProcessing(t *testing.T) {
1027
1027
permissions .ProfileNone , // Start with none profile
1028
1028
"localhost" ,
1029
1029
"" ,
1030
- 8080 ,
1030
+ 0 ,
1031
1031
0 ,
1032
1032
nil ,
1033
1033
nil , // labels
0 commit comments