feat(cli): add mcp remove and list subcommands - #531
Open
alezander86 wants to merge 1 commit into
Open
Conversation
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
alezander86
force-pushed
the
EPMCDME-14712
branch
from
September 3, 2026 17:38
6f14c24 to
ab92bfb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
codemie mcp removeandcodemie mcp listsubcommands as thin wrappers overclaude mcp remove/claude mcp list, matching the existingcodemie mcp addflow.Changes
codemie mcp remove <name> [--scope <scope>], rejecting names that look like flags before invokingclaude.codemie mcp list(no arguments/options).claude mcpexecution/error-handling (interactive exec,ENOENT, signal termination, exit-code extraction from error message) into a reusablerunClaudeMcpCommandhelper used byadd,remove, andlist.codemie mcp add/remove/listindocs/COMMANDS.md, including the general command list entry.Testing
Checklist
npm run ci)mainResolves EPMCDME-14712