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

  1. Command should prompt for confirmation before deletion
  2. Should validate that the server exists before attempting deletion
  3. Should provide clear feedback on successful deletion
  4. Should handle errors gracefully (e.g., server not found, permission issues)
  5. Should update the MCP configuration file appropriately

Additional Considerations

  • Consider adding a --force flag to skip confirmation prompts
  • Consider adding a --dry-run flag to show what would be deleted without actually deleting
  • Ensure proper cleanup of any associated resources or cache files

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗