claude-checkpoint-mcp
v1.1.0MCP 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…
| Parameter | Type | Description |
|---|---|---|
goal * | string | The primary objective of the session, in one or two sentences. |
decisions | array | Key decisions, constraints, and dead ends to avoid repeating. |
mode | string | replace: overwrite the checkpoint. merge: update the existing one, appending commands, decisions and files. |
modifiedFiles | array | Files you changed, with an optional note. Uncommitted git changes are detected automatically; list files here to annotate them or to include committed ones. |
nextSteps | array | Concrete next actions, in order, for whoever resumes. |
projectRoot | string | Absolute path of the project. Defaults to the client's workspace root or the server's working directory. |
recentCommands | array | Recent significant terminal commands (builds, tests, migrations), oldest first, with exit codes and a short note on the outcome. Secrets are redacted automatically. |
resumedFrom | string | Selector 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… |
session | string | This 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. |
step | string | The workflow step this session runs. Defaults to CHECKPOINT_WORKFLOW_STEP, then to the checkpoint being continued. |
summary | string | Where things stand: what works, what is broken, what you were in the middle of. |
tasks | array | Sub-goals with their status. In merge mode, tasks with the same description are updated. |
workflowId | string | The 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.
| Parameter | Type | Description |
|---|---|---|
checkpoint | string | Which checkpoint to load, as a selector from list_session_checkpoints: a session id, or 'legacy'. Omit to load this session's own checkpoint. |
format | string | brief: compact markdown for resuming (recommended). full: the complete checkpoint JSON. |
projectRoot | string | Absolute path of the project. Defaults to the client's workspace root or the server's working directory. |
session | string | This 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. |
workflowId | string | Load 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`.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of checkpoints to return, newest first. 0 returns all of them. |
projectRoot | string | Absolute path of the project. Defaults to the client's workspace root or the server's working directory. |
session | string | This 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. |
workflowId | string | List only the checkpoints of this workflow run. |