We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fa987 commit a799d7bCopy full SHA for a799d7b
cmd/thv-operator/api/v1alpha1/mcpserver_types.go
@@ -763,7 +763,13 @@ func (m *MCPServer) GetMcpPort() int32 {
763
764
// the below is deprecated and will be removed in a future version
765
// we need to keep it here to avoid breaking changes
766
- return m.Spec.TargetPort
+ if m.Spec.TargetPort > 0 {
767
+ return m.Spec.TargetPort
768
+ }
769
+
770
+ // Default to 8080 if no port is specified (matches GetProxyPort behavior)
771
+ // This is needed for HTTP-based transports (SSE, streamable-http) which require a target port
772
+ return 8080
773
}
774
775
func init() {
0 commit comments