Feature Request: Add Delete Functionality to /mcp Command
Resolved 💬 4 comments Opened Jul 29, 2025 by hemanth Closed Jan 5, 2026
Feature Request: Add Delete Functionality to /mcp Command
Summary
Add delete/remove functionality to the /mcp slash command in Claude Code CLI to allow users to remove MCP server configurations.
Current Behavior
The /mcp command currently supports:
- Listing configured MCP servers
Requested Feature
Add the ability to delete/remove MCP server configurations through the /mcp command.
Proposed Implementation
Add a delete subcommand to the /mcp command with the following syntax:
/mcp delete <server-name>
or
/mcp remove <server-name>
or
1.
2.
// Select the server and hit `x`
Use Case
Users need to be able to remove MCP servers that are:
- No longer needed
- Misconfigured and need to be recreated
- Causing conflicts or issues
- Being replaced with updated configurations
Expected Behavior
- Command should prompt for confirmation before deletion
- Should validate that the server exists before attempting deletion
- Should provide clear feedback on successful deletion
- Should handle errors gracefully (e.g., server not found, permission issues)
- Should update the MCP configuration file appropriately
Additional Considerations
- Consider adding a
--forceflag to skip confirmation prompts - Consider adding a
--dry-runflag to show what would be deleted without actually deleting - Ensure proper cleanup of any associated resources or cache files
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗