crush icon indicating copy to clipboard operation
crush copied to clipboard

feat: Reload MCP server

Open neomantra opened this issue 5 months ago • 4 comments

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 avatar Aug 12 '25 20:08 neomantra

@neomantra can you give my branch a try and see if it solves your issue?

taigrr avatar Aug 16 '25 19:08 taigrr

fwiw you can kill the mcp from outside and try to use it again within crush, which should then restart it.

caarlos0 avatar Aug 18 '25 14:08 caarlos0

@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.

neomantra avatar Aug 18 '25 14:08 neomantra

Loosely related to: #1361

LarsArtmann avatar Nov 12 '25 07:11 LarsArtmann