claude-checkpoint-mcp

v0.1.0
io.github.tenlean/claude-checkpoint-mcp Checked 4 hours ago Published 1 month ago

MCP server that checkpoints Claude Code session context to survive crashes and token limits

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

save_session_checkpoint Save session checkpoint

Save the current session's goal, progress, touched files and recent commands to a .claude-checkpoint file in the project, so a new session can resume after a crash, /clear, or context limit without re-exploring. Call after finishing a milestone, before risky operations, and when the conversation is getting long. Git branch, HEAD and uncommitted files are captured automatically.

ParameterTypeDescription
goal *stringThe primary objective of the session, in one or two sentences.
decisionsarrayKey decisions, constraints, and dead ends to avoid repeating.
modestringreplace: overwrite the checkpoint. merge: update the existing one, appending commands, decisions and files.
modifiedFilesarrayFiles you changed, with an optional note. Uncommitted git changes are detected automatically; list files here to annotate them or to include committed ones.
nextStepsarrayConcrete next actions, in order, for whoever resumes.
projectRootstringAbsolute path of the project. Defaults to the client's workspace root or the server's working directory.
recentCommandsarrayRecent significant terminal commands (builds, tests, migrations), oldest first, with exit codes and a short note on the outcome. Secrets are redacted automatically.
summarystringWhere things stand: what works, what is broken, what you were in the middle of.
tasksarraySub-goals with their status. In merge mode, tasks with the same description are updated.

load_session_checkpoint Load session checkpoint

Load the project's .claude-checkpoint and return a compact brief of the previous session's goal, progress, next steps, touched files and recent commands, plus which files changed since it was saved. Call at the start of a session or when the user asks to resume.

ParameterTypeDescription
formatstringbrief: compact markdown for resuming (recommended). full: the complete checkpoint JSON.
projectRootstringAbsolute path of the project. Defaults to the client's workspace root or the server's working directory.