Skip to content

Commit a8d37da

Browse files
philzsketch
andcommitted
cmd/sketch: fix skaband MCP server config in container mode
In container mode, the skaband MCP server configuration was not being added when a skaband address was provided, breaking the automatic configuration of sketch.dev integration tools. The issue was introduced in commit f3c5d6ac when code was refactored to create the resolveModel function for de-duplication between runInHostMode and runInUnsafeMode, but runInContainerMode was not updated to include the skaband MCP configuration logic. Co-Authored-By: sketch <hello@sketch.dev> Change-ID: s213332d8c6723b25k
1 parent 83cf606 commit a8d37da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/sketch/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,11 @@ func runInContainerMode(ctx context.Context, flags CLIFlags, logFile *os.File) e
551551
return err
552552
}
553553

554+
// Add skaband MCP server configuration if skaband address is provided
555+
if flags.skabandAddr != "" {
556+
flags.mcpServers = append(flags.mcpServers, skabandMcpConfiguration(flags))
557+
}
558+
554559
return setupAndRunAgent(ctx, flags, modelURL, apiKey, pubKey, true, logFile)
555560
}
556561

0 commit comments

Comments
 (0)