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
diff --git a/cmd/sketch/main.go b/cmd/sketch/main.go
index 210db71..e01d59b 100644
--- a/cmd/sketch/main.go
+++ b/cmd/sketch/main.go
@@ -551,6 +551,11 @@
return err
}
+ // Add skaband MCP server configuration if skaband address is provided
+ if flags.skabandAddr != "" {
+ flags.mcpServers = append(flags.mcpServers, skabandMcpConfiguration(flags))
+ }
+
return setupAndRunAgent(ctx, flags, modelURL, apiKey, pubKey, true, logFile)
}