When using the claude-code module, if I restart a workspace it attempts to reinstall the mcp servers, but since they have already been installed, claude exits with an error code:
~/dev$ claude mcp add-json "foo" '{"args":["foo-mcp-server"],"command":"uvx"}'
MCP server foo already exists in local config
~/dev$ echo $?
1
This causes the install.sh script to fail on the first mcp server it hits that is already installed. Also, the report_tasks function is never run which breaks the task reporting features of the module.
I can work around it by manually checking if a mcp server exists and removing it in the pre install script, but perhaps it would be nice to build this functionality into the module.