Skip to content

feat(cli): add mcp remove and list subcommands - #531

Open
alezander86 wants to merge 1 commit into
codemie-ai:mainfrom
alezander86:EPMCDME-14712
Open

feat(cli): add mcp remove and list subcommands#531
alezander86 wants to merge 1 commit into
codemie-ai:mainfrom
alezander86:EPMCDME-14712

Conversation

@alezander86

@alezander86 alezander86 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Add codemie mcp remove and codemie mcp list subcommands as thin wrappers over claude mcp remove/claude mcp list, matching the existing codemie mcp add flow.

Changes

  • Add codemie mcp remove <name> [--scope <scope>], rejecting names that look like flags before invoking claude.
  • Add codemie mcp list (no arguments/options).
  • Extract shared claude mcp execution/error-handling (interactive exec, ENOENT, signal termination, exit-code extraction from error message) into a reusable runClaudeMcpCommand helper used by add, remove, and list.
  • Document codemie mcp add/remove/list in docs/COMMANDS.md, including the general command list entry.

Testing

  • Tests added/updated
  • Manual testing done (lint + typecheck via pre-commit hooks)

Checklist

  • Code follows project standards
  • CI is green (npm run ci)
  • No merge conflicts with main

Resolves EPMCDME-14712

Add `codemie mcp remove` and `codemie mcp list` as thin wrappers over
`claude mcp remove`/`claude mcp list`, mirroring the existing `add`
subcommand. Extract the shared claude-mcp execution/error-handling
logic (interactive exec, ENOENT, signal termination, exit-code
extraction) into a reusable `runClaudeMcpCommand` helper used by all
three subcommands. Update docs/COMMANDS.md accordingly. Add unit tests
covering add/remove/list happy paths, --scope handling, invalid
name/URL guards, and claude/proxy resolution failures.

Resolves EPMCDME-14712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant