mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-19 17:24:57 +02: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:
committed by
GitHub
parent
f51b3cd95c
commit
473d4a3faf
@@ -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