Skip to main content
Glama

Local History MCP Server

by xxczaki

restore_from_history

Restore a file to a specific version from its local history by specifying the file path and history entry index. Optionally create a backup of the current file before restoration.

Instructions

Restore a file to a specific point in its local history

Input Schema

NameRequiredDescriptionDefault
createBackupNoWhether to create a backup of the current file before restoring
entryIndexYesThe index of the history entry to restore (0 = most recent)
filePathYesThe absolute path to the file to restore (e.g., "/Users/user/project/biome.json").

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "createBackup": { "default": true, "description": "Whether to create a backup of the current file before restoring", "type": "boolean" }, "entryIndex": { "description": "The index of the history entry to restore (0 = most recent)", "type": "number" }, "filePath": { "description": "The absolute path to the file to restore (e.g., \"/Users/user/project/biome.json\").", "type": "string" } }, "required": [ "filePath", "entryIndex" ], "type": "object" }
Install Server

Other Tools from Local History MCP Server

Related Tools

    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/xxczaki/local-history-mcp'

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