Skip to content

Commit b3142e7

Browse files
yroblataskbot
andauthored
fix: propagate mcp vars also for streamable http (#1068)
Co-authored-by: taskbot <[email protected]>
1 parent 5c2916f commit b3142e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/environment/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func SetTransportEnvironmentVariables(envVars map[string]string, transportType s
6565
if port > 0 {
6666
// Set transport-specific environment variables
6767
switch transportType {
68-
case "sse":
68+
case "sse", "streamable-http":
6969
envVars["MCP_PORT"] = fmt.Sprintf("%d", port)
7070
envVars["FASTMCP_PORT"] = fmt.Sprintf("%d", port)
7171
case "stdio":

0 commit comments

Comments
 (0)