feat: Reload MCP server
Regarding keeping MCP servers alive, along the lines of #424, it would be useful to be able to reload an MCP server without having to restart Crush.
This could be exposed in the TUI or as a bundled MCP tool itself.
The use case is for the development of MCP Server with crush hosting that MCP server.
@neomantra can you give my branch a try and see if it solves your issue?
fwiw you can kill the mcp from outside and try to use it again within crush, which should then restart it.
@taigrr thanks for the ping, I reviewed the code and like the direction, but am blocked on other things until midweek.
@caarlos0 After you fixed that issue last week, I added a --once flag to my MCP server to assist with that! I used an mcp-go AfterToolCall hook which invokes os.Exit(). Not pretty, but it helped with my use case.
Loosely related to: #1361