GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
MCP server that checkpoints Claude Code session context to survive crashes and token limits
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
CHECKPOINT_PROJECT_ROOT, CLAUDE_CODE_SESSION_ID你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"claude-checkpoint": {
"command": "npx",
"args": [
"-y",
"session-checkpoint-mcp"
],
"env": {
"CHECKPOINT_PROJECT_ROOT": "your-value",
"CLAUDE_CODE_SESSION_ID": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add claude-checkpoint --env CHECKPOINT_PROJECT_ROOT=your-value --env CLAUDE_CODE_SESSION_ID=your-value -- npx -y session-checkpoint-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"claude-checkpoint": {
"command": "npx",
"args": [
"-y",
"session-checkpoint-mcp"
],
"env": {
"CHECKPOINT_PROJECT_ROOT": "your-value",
"CLAUDE_CODE_SESSION_ID": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"claude-checkpoint": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"session-checkpoint-mcp"
],
"env": {
"CHECKPOINT_PROJECT_ROOT": "your-value",
"CLAUDE_CODE_SESSION_ID": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
CHECKPOINT_PROJECT_ROOT envCLAUDE_CODE_SESSION_ID env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 daniel-munoz 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.3.3)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Save your Claude Code session state locally, so a crash, `/clear`, or context limit doesn't make Claude rebuild context from scratch.
session-checkpoint-mcp is a local Model Context Protocol server with three tools:
save_session_checkpoint writes your session's working state to a small JSON file in the project.load_session_checkpoint turns that file back into a compact resume brief.list_session_checkpoints lists the checkpoints in the project, so you can pick which session to resume.Each Claude Code session gets its own checkpoint, so several sessions can share a directory without overwriting each other.
It runs entirely on your machine. Nothing is sent anywhere.
Fork of tenlean/claude-checkpoint-mcp by Tenzin. The repository keeps that original name. The server is published as session-checkpoint-mcp, and the Claude Code plugin is session-checkpoint.
A long Claude Code session builds up a lot of context:
Several things can wipe that out mid-task:
/clear to get a fresh window.The next session starts cold. To get back to where you were, Claude has to rebuild that context:
grep, git diff, ls, test runs, all just to rediscover state.Each of those turns resends the growing conversation as input, so the cost compounds.
`session-checkpoint-mcp` swaps that rebuild for one small, structured read:
| Without a checkpoint | With load_session_checkpoint | |
|---|---|---|
| Restoring the goal & constraints | You retype them, or Claude infers them | One section of the brief |
| Knowing what's done vs. pending | Re-derived from code and git | Task list with statuses |
| Knowing which files matter | Broad re-reading | Exact list of touched files, with notes |
| Knowing what changed since | Re-read everything to be safe | Only files whose content actually changed are flagged |
| Remembering failed attempts | Often repeated | Recorded under *Decisions & gotchas* |
The resume brief for a typical session is about 1.2 KB of markdown, a few hundred tokens. The example below is real output at that size.
The biggest saving comes from drift detection. At save time, the server records a content hash for every file with uncommitted changes. On load, it compares those hashes against the working tree and tells Claude exactly which files changed after the checkpoint. Everything else in the brief can be trusted as-is, so Claude re-reads only what it has to.
Session 1 Session 2 (after crash / /clear)
───────── ──────────────────────────────── Claude ──save_session_checkpoint──┐ ┌──load_session_checkpoint── Claude goal, tasks, summary, │ │ compact markdown brief next steps, decisions, ▼ │ + "changed since checkpoint" files, commands ┌─────────────────────┐ │ / │ server adds: │ .claude-checkpoint │◀── git: branch, HEAD, git branch/HEAD, │ .claude-checkpoint │ dirty files + hashes dirty files + hashes, │ .prev (backup) │ redacts secrets └─────────────────────┘
Claude Code passes each MCP server its session id (CLAUDE_CODE_SESSION_ID). The server uses it to give every session its own file, /.claude-checkpoints/ .json, so sessions that share a directory (/tmp, or wherever you run claude agents) never overwrite or merge into each other.
resumedFrom). The original is never modified. /.claude-checkpoint file, exactly as before. A .claude-checkpoint left by an earlier version shows up in the list as legacy.The session id an MCP server sees is the one it was started with:
| You… | The server sees | Result |
|---|---|---|
start a fresh claude (e.g. after a crash) | a new id | the list, so you pick what to resume |
run /clear | the same id as before the clear | the pre-clear checkpoint loads directly; later saves keep updating it |
run claude --resume | that id | that session's checkpoint loads directly |
run claude --continue, or --resume without an id | possibly a different id | the list |
Requirements: Node.js 20+ and git. Git is optional, but without it you lose drift detection.
git clone https://github.com/daniel-munoz/claude-checkpoint-mcp.git
cd claude-checkpoint-mcp npm install npm run build
The server entry point is now at dist/index.js.
From npm. The server is also published as session-checkpoint-mcp. In any of the configurations below, you can replace node /absolute/path/to/claude-checkpoint-mcp/dist/index.js with npx -y session-checkpoint-mcp:
claude mcp add --scope user checkpoint -- npx -y session-checkpoint-mcp
(The npm package claude-checkpoint-mcp is the upstream project's 0.1.0 release, not this fork.)
| Variable | Set by | Required | Default | What it does |
|---|---|---|---|---|
CHECKPOINT_PROJECT_ROOT | You (optional) | No | Unset: the client's root, then the server's working directory | Absolute path of the default project to checkpoint. Use it for clients with no current project, such as Claude Desktop. A projectRoot argument on a tool call takes precedence. |
CLAUDE_CODE_SESSION_ID | Claude Code, automatically | No | Unset: one shared .claude-checkpoint file | Picks this session's checkpoint file, .claude-checkpoints/ .json. You don't set it. See one checkpoint per session. |
As a plugin (easiest). This repo is also a Claude Code plugin marketplace. You don't need to clone or build anything:
claude plugin marketplace add daniel-munoz/claude-checkpoint-mcp
claude plugin install session-checkpoint@daniel-munoz
Restart Claude Code, then /mcp should show plugin:session-checkpoint:session-checkpoint as connected.
Upgrading from 0.2.x or earlier? The plugin was renamed from
claude-checkpoint-mcptosession-checkpointin 0.3.0, because Claude Code reserves theclaude-prefix for its own plugins. Uninstall the old plugin and install the new one:
`sh
claude plugin uninstall claude-checkpoint-mcp@daniel-munoz
claude plugin marketplace update daniel-munoz
claude plugin install session-checkpoint@daniel-munoz
`
The full tool names changed from
mcp__plugin_claude-checkpoint-mcp_claude-checkpoint__*tomcp__plugin_session-checkpoint_session-checkpoint__*. Update any permission allowlists insettings.json, hooks, or instructions that use the old names. Short names such assave_session_checkpointand your existing checkpoint files are unaffected.
Manual setup. If you cloned the repo, register the server once for your user account, so it's available in every project:
# Run from the claude-checkpoint-mcp directory
claude mcp add --scope user checkpoint -- node "$PWD/dist/index.js"
Use an absolute path. A user-scoped server is launched from whichever project you open Claude Code in. A relative path like
./dist/index.jswould resolve against *that* project, not this repo."$PWD/dist/index.js"expands to the absolute path when you run the command, which is what gets saved.
Check that it's registered:
claude mcp list
Inside a session, /mcp should show checkpoint as connected.
Project-scoped alternative. To share the server with a team through version control, add it to the project's .mcp.json:
{
"mcpServers": { "checkpoint": { "command": "node", "args": ["/absolute/path/to/claude-checkpoint-mcp/dist/index.js"] } } }
Either way, add the checkpoint files to the project's .gitignore, or to your global gitignore:
.claude-checkpoint*
claude_desktop_config.json)Open the config file:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
Add the server under mcpServers, using the absolute path to your local build:
{
"mcpServers": { "checkpoint": { "command": "node", "args": ["/absolute/path/to/claude-checkpoint-mcp/dist/index.js"], "env": { "CHECKPOINT_PROJECT_ROOT": "/absolute/path/to/your/project" } } } }
Restart Claude Desktop after saving the file.
Claude Desktop has no notion of a "current project". Use
CHECKPOINT_PROJECT_ROOTto set the default project, or have Claude passprojectRooton each call (*"save a checkpoint for /home/me/code/my-app"*). See project root resolution.
Any MCP client that supports the stdio transport can run the server:
node /absolute/path/to/claude-checkpoint-mcp/dist/index.js
npx -y session
只显示了开头部分;其余内容请在仓库中阅读