Skip to content

Commit fe57707

Browse files
committed
fix(mcp): say that search turns 0 sends only allowed MCP tools
1 parent 5544ee1 commit fe57707

21 files changed

Lines changed: 20 additions & 19 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Learn more: [Using Modes](https://docs.zoocode.dev/basic-usage/using-modes) •
106106

107107
When a mode can use many MCP tools, Zoo Code sends only the tools that match the task. This keeps each request small.
108108

109-
> **Kill-switch:** to turn off dynamic tool loading, set **Search turns** (`mcp.dynamicLoad.searchTurns`) to `0`. Zoo Code then sends all MCP tools.
109+
> **Kill-switch:** to turn off dynamic tool loading, set **Search turns** (`mcp.dynamicLoad.searchTurns`) to `0`. Zoo Code then sends all allowed MCP tools.
110110
111111
1. At the start of a task, Zoo Code ranks the MCP tools against the task text with BM25 keyword search. It attaches the best matches.
112112
2. For each new user message in the search window, Zoo Code ranks the tools again and adds the best new matches. It does not remove tools.

‎docs/architecture/tla/McpToolSelectionLifecycle.tla‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
\* Cost: each TLC config takes under 1 second. Agent time was not measured.
105105
\* Review PR 2779 round 2: 2 covered, 0 added, 0 gap. The tooltip text was wrong, not the model.
106106
\* Covered: Condense sets selection to {} (thread 4733444686). Turn 1 is the task message (thread 4733444681).
107+
\* Review PR 2779 round 3: 1 covered, 0 added, 0 gap. Catalog is the mode-scoped set (thread 4733662329).
107108
\* Manual test, task 01a22a0e: 1 added, 2 gap. Four mcp_load calls named jira_search_tickets and got none.
108109
\* Failure 7: a load returns only attached tools, so an unattached relevant tool never comes.
109110
\* Invariant 7: LoadAddsNew. If a relevant tool is not attached, a load attaches a new relevant tool.
-200 Bytes
Loading

‎webview-ui/src/i18n/locales/ca/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webview-ui/src/i18n/locales/de/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webview-ui/src/i18n/locales/en/mcp.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"description": "When a mode can use many MCP tools, Zoo sends only the tools that match the task. The model can call mcp_load to attach more tools. To turn off dynamic tool loading, set Search turns to 0.",
6767
"searchTurns": {
6868
"label": "Search turns",
69-
"tooltip": "Set 0 to turn off dynamic tool loading. Zoo then sends all MCP tools. For this number of user messages after the task starts or the context condenses, Zoo ranks the tools again for each new message and adds the best matches. The task message counts as message 1. When the context condenses, Zoo replaces the attached tools with new matches and starts the count again at 0. These automatic additions stop when {{cap}} tools are attached. Set 1 to stop the additions for new messages. The model can still call mcp_load to attach tools."
69+
"tooltip": "Set 0 to turn off dynamic tool loading. Zoo then sends all allowed MCP tools. For this number of user messages after the task starts or the context condenses, Zoo ranks the tools again for each new message and adds the best matches. The task message counts as message 1. When the context condenses, Zoo replaces the attached tools with new matches and starts the count again at 0. These automatic additions stop when {{cap}} tools are attached. Set 1 to stop the additions for new messages. The model can still call mcp_load to attach tools."
7070
},
7171
"threshold": {
7272
"label": "Tool threshold",

‎webview-ui/src/i18n/locales/es/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webview-ui/src/i18n/locales/fr/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webview-ui/src/i18n/locales/hi/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎webview-ui/src/i18n/locales/id/mcp.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)