File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ func gatewayCommand(docker docker.Client) *cobra.Command {
22
22
var additionalCatalogs []string
23
23
var additionalRegistries []string
24
24
var additionalConfigs []string
25
+ var additionalToolsConfig []string
25
26
if os .Getenv ("DOCKER_MCP_IN_CONTAINER" ) == "1" {
26
27
// In-container.
27
28
options = gateway.Config {
@@ -82,6 +83,7 @@ func gatewayCommand(docker docker.Client) *cobra.Command {
82
83
options .CatalogPath = append (options .CatalogPath , additionalCatalogs ... )
83
84
options .RegistryPath = append (options .RegistryPath , additionalRegistries ... )
84
85
options .ConfigPath = append (options .ConfigPath , additionalConfigs ... )
86
+ options .ToolsPath = append (options .ToolsPath , additionalToolsConfig ... )
85
87
86
88
return gateway .NewGateway (options , docker ).Run (cmd .Context ())
87
89
},
Original file line number Diff line number Diff line change @@ -359,7 +359,9 @@ func (c *FileBasedConfiguration) readToolsConfig(ctx context.Context) (config.To
359
359
return config.ToolsConfig {}, nil
360
360
}
361
361
362
- mergedToolsConfig := config.ToolsConfig {}
362
+ mergedToolsConfig := config.ToolsConfig {
363
+ ServerTools : make (map [string ][]string ),
364
+ }
363
365
364
366
for _ , toolsPath := range c .ToolsPath {
365
367
if toolsPath == "" {
You can’t perform that action at this time.
0 commit comments