clear_sessions
Clear empty sessions and invalid messages
How to use it
Project documentation lists clear_sessions for the Claude Code Sessions MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Claude Code Sessions
claude mcp add claude-sessions -- npx claude-sessions-mcpOther tools in Claude Code Sessions (10)
Delete message and repair UUID chain
Delete session (moves to backup folder)
Get files changed in a session
List Claude Code projects
List sessions in a project
Preview sessions to be cleaned
Rename a session
Split session at a specific message
Start Web UI
Stop Web UI