Stefan Walcz
650b2c7acd
fix(chats): give MCP connector tool calls the MCP tool timeout
...
A tool call through an MCP connector was cut after the connector
package default of 60 seconds, while the model's own MCP servers allow
360 seconds. Research and document tools behind a connector take
minutes, so a saved agent lost them mid-turn with "connection closed:
calling tools/call: client is closing" and the model fell back to a
weaker tool.
The connector service now gets the MCP tool timeout the rest of
LocalAI uses (DistributedConfig.MCPToolTimeoutOrDefault, 360 s by
default). The package default and the per-call output cap are
unchanged.
Tests in core/application start the connector service on JSON stores
against a slow MCP server: the timeout defaults to the MCP tool
timeout, a tool slower than the old cap but within the timeout
returns, and a tool past the timeout is still stopped.
Docs: chats-connectors.md, "How chats use them".
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Stefan Walcz <stefan.walcz@walcz.de >
(cherry picked from commit 99f663a777 )
2026-11-03 09:17:42 +00:00
..
2026-10-22 17:57:19 +02:00
2026-10-22 17:57:19 +02:00
2026-11-02 18:48:39 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-10-22 17:57:19 +02:00
2026-11-02 23:50:40 +00:00
2026-10-22 17:57:19 +02:00
2026-10-22 17:57:19 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 23:50:40 +00:00
2026-10-22 17:57:19 +02:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 18:48:39 +01:00
2026-11-02 18:48:39 +01:00
2026-11-02 18:48:39 +01:00
2026-11-02 18:48:39 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 23:50:40 +00:00
2026-10-24 14:29:39 +02:00
2026-10-24 14:29:39 +02:00
2026-10-22 17:57:19 +02:00
2026-10-24 14:29:39 +02:00
2026-11-01 12:08:23 +01:00
2026-05-02 15:51:36 +02:00
2026-11-03 08:38:35 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 08:36:45 +01:00
2026-10-04 09:34:21 +02:00
2026-10-19 22:58:38 +02:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:39:30 +00:00
2026-11-02 23:50:40 +00:00
2026-09-27 07:42:20 +00:00
2026-09-27 07:42:20 +00:00
2026-09-27 07:42:20 +00:00
2026-09-27 07:42:20 +00:00
2026-10-24 14:29:39 +02:00
2026-10-24 14:29:39 +02:00
2026-10-24 14:29:39 +02:00
2026-10-24 14:29:39 +02:00
2026-11-01 12:08:23 +01:00
2026-10-24 14:29:39 +02:00
2026-10-24 14:29:39 +02:00
2026-06-12 16:21:15 +02:00
2026-06-18 11:45:22 +01:00
2026-07-15 01:09:33 +02:00
2026-09-28 08:34:56 +02:00
2026-09-28 08:34:56 +02:00
2026-10-04 09:34:21 +02:00
2026-07-17 09:02:05 +02:00
2026-06-18 11:45:22 +01:00
2026-11-01 12:08:23 +01:00
2026-10-13 08:06:49 +00:00
2026-10-13 08:06:49 +00:00
2026-11-01 12:08:23 +01:00
2026-09-24 21:20:21 +02:00
2026-11-02 23:50:40 +00:00
2026-11-03 08:38:35 +00:00
2026-11-01 18:30:08 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:38:11 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:39:30 +00:00
2026-11-01 18:41:33 +01:00
2026-11-03 08:38:35 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-03 09:17:42 +00:00
2026-11-03 09:17:42 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:38:11 +00:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:38:53 +00:00
2026-11-03 08:38:53 +00:00
2026-11-03 08:38:35 +00:00
2026-11-01 18:41:33 +01:00
2026-11-02 23:50:40 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-10-23 01:00:07 +02:00
2026-07-16 09:40:29 +02:00
2026-11-01 12:08:23 +01:00
2026-11-03 08:38:35 +00:00