diff --git a/core/utils/config.go b/core/utils/config.go index e5c92eb8..e27b91d3 100644 --- a/core/utils/config.go +++ b/core/utils/config.go @@ -35,6 +35,7 @@ const ( DefaultPyenvPath = "/root/.pyenv" DefaultNodeModulesPath = "/usr/lib/node_modules" DefaultGoPath = "/root/go" + DefaultMcpServerBaseUrl = "http://localhost:9000/sse" ) func IsDev() bool { @@ -285,3 +286,10 @@ func GetGoPath() string { } return DefaultGoPath } + +func GetMcpServerBaseUrl() string { + if res := viper.GetString("mcp.server.base_url"); res != "" { + return res + } + return DefaultMcpServerBaseUrl +}