Skip to main content
Glama

cleanup

Clear all undo checkpoints from the stack to free up memory and maintain system performance.

Instructions

Clear all undo checkpoints from the stack

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler logic for the cleanup tool: clears the entire undo stack by setting it to an empty array.
    cleanup(): void { this.undoStack = []; console.error("[DEBUG] All checkpoints cleared"); }
  • MCP tool dispatch handler: calls changeTracker.cleanup() and returns success message.
    case "cleanup": { changeTracker.cleanup(); return { content: [ { type: "text", text: "✅ All undo checkpoints cleared", }, ], }; }
  • src/index.ts:61-68 (registration)
    Tool registration in TOOLS array, including name, description, and empty input schema.
    { name: "cleanup", description: "Clear all undo checkpoints from the stack", inputSchema: { type: "object", properties: {}, }, },
  • Input schema definition: accepts no parameters (empty object).
    inputSchema: { type: "object", properties: {}, },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/khalilbalaree/undo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server