Skip to content

bug: Claude Code module install script exits if mcp server exists #656

@brent-at-aam

Description

@brent-at-aam

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions