mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
* 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>