Files
crush-code-agent-ide/internal
Carlos Alexandro Becker cd3ef8dbd4 fix: do not init MCP client on every tool request (#459)
* fix: do not init mcp client on every call

Right now it inits each mcp client multiple times, one when discovering tools at startup, and then every time we call any tools.

This makes it so we reuse the client from startup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* wip

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* refactor: even better approach

* fix: unused param

* refactor: more improvements

* fix: if list tools fails, remove client

* fix: improve slice

* chore: smaller changes

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-08-01 15:22:47 -03:00
..
2025-08-01 08:04:30 +02:00
2025-07-28 22:44:20 -03:00
2025-07-05 17:29:16 +02:00
2025-07-05 17:33:57 +02:00
2025-07-28 10:55:42 -03:00
2025-07-26 12:38:00 +02:00
2025-06-30 18:16:16 -03:00
2025-07-23 15:13:22 -03:00
2025-07-29 15:13:51 +02:00
2025-06-24 15:12:53 +02:00
2025-06-07 20:57:32 +02:00
2025-07-28 10:55:42 -03:00