mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-29 09:27:33 -05:00
ui: clear MCP server group key in enableAllToolsForServer
The group key disables every tool of the server regardless of per-tool keys, so re-enabling a server from Settings did nothing while it was set. Assisted-by: pi
This commit is contained in:
@@ -221,9 +221,13 @@ class ToolsStore {
|
||||
|
||||
if (!connection) return;
|
||||
|
||||
// the server-scoped group key disables every tool regardless of per-tool keys
|
||||
this._disabledTools.delete(this.getMcpServerToolsKey(serverId));
|
||||
|
||||
for (const tool of connection.tools) {
|
||||
this._disabledTools.delete(this.toolKey(ToolSource.MCP, tool.name, serverId));
|
||||
}
|
||||
|
||||
this.persistDisabledTools();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user