Skip to content

Commit 4658a28

Browse files
committed
Update Docker command in transformContainerToDockerCommand for proxy scenarios
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
1 parent 7809943 commit 4658a28

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/workflow/mcp-config.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ func transformContainerToDockerCommand(mcpConfig map[string]any, toolName string
263263
// For proxy-enabled containers, use docker compose with specific file
264264
mcpConfig["command"] = "docker"
265265
if toolName != "" {
266-
mcpConfig["args"] = []any{"compose", "-f", fmt.Sprintf("docker-compose-%s.yml", toolName), "run", "--rm", toolName}
267-
} else {
268-
// Fallback for when toolName is not available (shouldn't happen in proxy scenarios)
269-
mcpConfig["args"] = []any{"compose", "run", "--rm", containerStr}
266+
mcpConfig["args"] = []any{"compose", "-f", fmt.Sprintf("docker-compose-%s.yml", toolName), "up", "--build"}
270267
}
271268
// Keep the container field for compose file generation
272269
return nil

0 commit comments

Comments
 (0)