Skip to content

uninstall: npx MCP registration ownership check rejects setup-owned args layout #190

Closed as not planned

Description

@morluto

Summary

runUninstall() can fail to remove a default npx MCP registration because ownership detection in isOwnedRegistration() expects npx registrations to have args.length === 1, while setup writes npx -y <package> mcp.

Reproduction

  1. Configure a client with REA’s default registration:
    • command: "npx"
    • args: ["-y", "rea-agents", "mcp"]
  2. Run runUninstall() (or rea uninstall).
  3. Observe uninstall status for that client.

Expected

The REA rea registration should be considered owned and removed, matching configureJsonClient/configureTomlClient behavior.

Actual

isOwnedRegistration only accepts:

  • command === "npx" && args.length === 1 && args[0] === "mcp"
    so the default npx registration does not match and is retained as non-REA-owned.

Why this matters

Uninstall leaves an actionable MCP registration behind in common install modes, requiring manual cleanup.

Evidence

  • src/application/Setup.ts default client command: command = ["npx", "-y", PRODUCT_IDENTITY.packageName, "mcp"]
  • src/application/Uninstall.ts has ownership gate around lines 198-204 requiring only one npx argument and value mcp.

Activity

  1. N0zoM1z0 commented on Jul 14, 2026

    @N0zoM1z0
    Collaborator

    Triage on current main (6a3fd5b): this report is not reproducible. Since e651cb6, isOwnedRegistration() has matched the setup-owned npx layout exactly as ["-y", PRODUCT_IDENTITY.packageName, "mcp"]. The uninstall lifecycle coverage passes in the full suite.

  2. added
    bug
    area: setup
    on Oct 12, 2026
  3. added
    area: mcp
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mcparea: setupbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions