Skip to content

[MEDIUM] Claude Code setup ignores failed remove before running add #111

Description

@Daliys

Problem

The Claude Code setup path runs mcp remove as a silent best-effort step and ignores the result before running mcp add.

Evidence

  • Editor/MCPCliInstaller.ClaudeCode.cs:39-40 runs the remove command and discards the returned bool.
  • Editor/MCPCliInstaller.ClaudeCode.cs:43-44 immediately runs add, relying on the CLI/fallback path to handle any stale state.

Impact

If remove fails due to corrupted config or permissions, add may fail, duplicate, or fall back to direct .mcp.json editing while the CLI-managed state remains broken.

Suggested fix

Treat remove failures as actionable unless the CLI reports the server was already absent. Surface the remove error or include it in the fallback message.

Source report

Imported from audit report item: Editor/MCPCliInstaller.ClaudeCode.cs:39.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageImported or reported issue awaiting owner reviewpriority: mediumImportant defect or workflow gap with workaroundsurface: integrationsCLI installer and external tool integration surfacetype: correctnessIncorrect result, bad validation, or misleading success/failure behavior

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions