feat: handle mcp for offline mode (#10451)

This commit is contained in:
CityFun 2025-09-23 15:52:05 +08:00 committed by wanghe-fit2cloud
parent 5dc5d77096
commit 4bdbee1d53

View file

@ -680,6 +680,9 @@ func GetWebsiteID() uint {
}
func pullImage(imageType string) {
if global.CONF.Base.IsOffLine {
return
}
if imageType == "npx" {
if err := docker.PullImage("supercorp/supergateway:latest"); err != nil {
global.LOG.Errorf("docker pull mcp image error: %s", err.Error())