We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5a0be commit ede5de3Copy full SHA for ede5de3
cmd/docker-mcp/internal/gateway/run.go
@@ -130,9 +130,8 @@ func (g *Gateway) Run(ctx context.Context) error {
130
131
lock.Lock()
132
changeListeners = append(changeListeners, func(newConfig *Capabilities) {
133
- mcpServer.DeleteTools(current.ToolNames()...)
+ mcpServer.SetTools(newConfig.Tools...)
134
mcpServer.DeletePrompts(current.PromptNames()...)
135
- mcpServer.AddTools(newConfig.Tools...)
136
mcpServer.AddPrompts(newConfig.Prompts...)
137
138
// TODO: sync other things than tools
0 commit comments