claude-checkpoint-mcp

v1.1.0
io.github.daniel-munoz/claude-checkpoint-mcp Checked 4 hours ago Published 11 days 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 this session's checkpoint in the project (.claude-checkpoints/<session-id>.json; a client without a session id gets one on its first save, returned as session), 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. Subagents must not call this: they share the parent session's checkpoint. Report progress to the par…

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.
resumedFromstringSelector of the checkpoint this session resumed from, as given by load_session_checkpoint. Pass it on the first save after loading another session's checkpoint: a merge save then builds on it, and the…
sessionstringThis conversation's session id, as returned by an earlier save. Omit on Claude Code. Not for picking a checkpoint to read: use load_session_checkpoint's checkpoint, then resumedFrom.
stepstringThe workflow step this session runs. Defaults to CHECKPOINT_WORKFLOW_STEP, then to the checkpoint being continued.
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.
workflowIdstringThe workflow run this session is a step of, for workflow engines. Defaults to CHECKPOINT_WORKFLOW_ID, then to the checkpoint being continued. Omit in ordinary sessions.

load_session_checkpoint Load session checkpoint

Load this session's checkpoint and return a compact brief of its 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. If this session has no checkpoint but others exist in the project, it returns a list instead: show it to the user, ask which one to resume, and call again with `checkpoint` set to its selector. After loading another session's checkpoint, pass that selector as `resumedFrom` on the next save_session_checkpoint call.

ParameterTypeDescription
checkpointstringWhich checkpoint to load, as a selector from list_session_checkpoints: a session id, or 'legacy'. Omit to load this session's own checkpoint.
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.
sessionstringThis conversation's session id, as returned by an earlier save. Omit on Claude Code. Not for picking a checkpoint to read: use load_session_checkpoint's checkpoint, then resumedFrom.
workflowIdstringLoad the newest checkpoint of this workflow run, whichever session saved it (for workflow engines). Not with checkpoint.

list_session_checkpoints List session checkpoints

List the checkpoints saved in the project (one per Claude Code session, plus a legacy .claude-checkpoint if present), newest first, with each one's goal, last-saved time, branch and whether all its tasks are done. Use it when the user wants to resume a different or older session; load one with load_session_checkpoint's `checkpoint`.

ParameterTypeDescription
limitintegerMaximum number of checkpoints to return, newest first. 0 returns all of them.
projectRootstringAbsolute path of the project. Defaults to the client's workspace root or the server's working directory.
sessionstringThis conversation's session id, as returned by an earlier save. Omit on Claude Code. Not for picking a checkpoint to read: use load_session_checkpoint's checkpoint, then resumedFrom.
workflowIdstringList only the checkpoints of this workflow run.