原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Context Guardian

作者:LuminariSoftwares版本 0.15.0i★ –i在你的电脑上运行
注册名称io.github.LuminariSoftwares/context-guardian

安装

概览

作者提供的说明(英文原文)

40 turns: 1,130,722 tokens upstream -> 161,141. A fail-open compaction proxy for local models.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "context-guardian": {
      "command": "uvx",
      "args": [
        "context-guardian",
        "mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add context-guardian -- uvx context-guardian mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "context-guardian": {
      "command": "uvx",
      "args": [
        "context-guardian",
        "mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "context-guardian": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "context-guardian",
        "mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 LuminariSoftwares 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18354 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18354 个服务器的 95% 更新
  • 基础检查结果等于或优于此分类中其他 18354 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Context Guardian 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.15.0)于前天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Qemu MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Qemu MCP

作者:0xmortuex

Boot and drive QEMU VMs from an AI agent: keys, screenshots, serial. No guest agent.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Context Guardian

Status: active development -- changelog

mcp-name: io.github.LuminariSoftwares/context-guardian

A 40-turn session: 1,130,722 tokens sent upstream without it, 161,141 with it.

A compaction proxy for OpenAI-compatible local backends that fails open, so a long session stops dying at the context limit.

Quick start (60 seconds)

Local model CLI, through the proxy:

pip install context-guardian && context-guardian   # proxy on :8786 in front of Ollama on :11434; set OPENAI_BASE_URL=http://localhost:8786/v1

context-guardian-doctor # second terminal: checks the install and the running proxy, prints a fix: line for anything wrong

With an AI agent: paste one line, "Install context-guardian (docs: https://raw.githubusercontent.com/LuminariSoftwares/context-guardian/main/llms.txt) and point my client at it". llms.txt is the whole install, configure, recall and limits story in one short file an agent can read.

Another backend or window: see examples/ or Configure. Your client's settings: Point your client at the proxy. After a compaction, context-guardian-recall " " searches the archived originals (the summary the model receives names the exact command and the MCP tools).

DeepSeek Harness: dsh plugin --profile web add dsh-context-guardian, then npm run setup -- --apply in the installed package. Full steps: Install both.

Claude Code:

pip install context-guardian

context-guardian-claude-code install # prints the hooks and the claude mcp add command; changes nothing context-guardian-claude-code install --apply # backs up ~/.claude/settings.json, merges the hooks, prints the diff claude mcp add --scope user --transport stdio context-guardian -- uvx context-guardian mcp

Details: Claude Code.

Proof

python scripts/bench_proxy.py --turns 40 --seed 1
turns=40 tokens_before=1130722 tokens_after=161141 compactions=27

Run 2026-11-05 on v0.15.0, Python 3.11, against a stub upstream.

623 passed, 1 warning in 106.22s (0:01:46)

python -m pytest -q, run 2026-11-05.

The bench runs against a stub upstream, not a real model; the token figures are the same on any machine. Fails open. If a summary fails, comes back empty or anything in the proxy raises, the request goes upstream exactly as your client sent it. Ollama (daily use) and DeepSeek Harness 0.1.2-alpha.2 are tested; the other backends and clients in Compatibility are configured from their documentation and marked untested.

Quick start · Prove it · Client settings · Claude Code · DeepSeek Harness · Recall · MCP server · Configure · Limits · Your data · Troubleshooting · Changelog

What it does. When a conversation is about to outgrow the model's context window, Context Guardian summarises the older turns, keeps the recent ones verbatim and forwards a request that fits. Everything it folds away is archived on disk, sealed in a hash chain you can verify, and indexed so a model can skim it in a few hundred tokens and open only what it needs. It runs on your machine, with no telemetry: nothing leaves it except the requests you were already sending to your own backend, and one cached PyPI version check you can turn off.

Who it is for.

  • Local-model coding CLIs behind any OpenAI-compatible endpoint (Ollama, LM Studio, vLLM, LiteLLM): the proxy sits in between and compacts before the backend rejects the request.
  • DeepSeek Harness users: a native compaction engine, one row in your agent preset, same archive.
  • Claude Code users: Claude Code compacts its own window; its hooks archive every session into the same sealed, searchable archive, without changing how Claude Code connects, and the MCP server lets it search what was archived.

One scripted session, sent straight to a backend with an 8,192-token window and then through the proxy (python examples/demo_overflow.py: a stub backend on 127.0.0.1 that rejects anything over its window; tests/test_demo_overflow.py checks this block is what it prints):

stub backend on 127.0.0.1, 8192-token window, one scripted session sent twice

turn tokens direct to backend through context-guardian 1 1075 ok ok 2 2226 ok ok 3 3376 ok ok 4 4526 ok ok 5 5676 ok ok 6 6827 ok ok 7 7977 ok ok, compactions so far: 1 8 9127 400 overflow ok, compactions so far: 2 9 10278 400 overflow ok, compactions so far: 3 10 11451 400 overflow ok, compactions so far: 4 11 12624 400 overflow ok, compactions so far: 5 12 13798 400 overflow ok, compactions so far: 6 direct: rejected from turn 8 on. proxy: 12/12 turns answered, 6 originals archived.

<!-- demo-overflow:end -->

Fails open. If a summary fails, comes back empty or anything in the proxy raises, the request goes upstream exactly as your client sent it. The same holds for every seal, index, receipt and journal write: one that fails logs a warning, and the request goes ahead unchanged.

Prove it

Three commands turn "lossless on disk" and "it helps" from claims into numbers you can check.

context-guardian-recall --verify --all     # every run: OK, or the first break and what kind

context-guardian-recall --receipts --since 7d context-guardian-recall --savings --since 7d # how much smaller the requests were; add --json for scripts

`--verify` walks each run's chain.jsonl: one line per archived file with the SHA-256 of its bytes on disk, chained to the line before it. It reports OK per run, or the first break: content-changed, file-missing (deleted with no prune record), entry-edited, entry-reordered, chain-forked, unsealed-file or anchor-mismatch. Spans removed by GUARDIAN_KEEP_SPANS are reported as pruned, as expected. It exits 0 only when every checked run is OK. --heads prints each run's chain head, and --seal-existing seals an archive written before 0.12.0, with every line marked "backfilled": true because it was sealed late. The MCP tool get_seal_status runs the same check from inside a client.

The seal is tamper-evident, not tamper-proof. Anyone who can write the archive directory can edit a span and rehash every chain line after it. Set GUARDIAN_SEAL_ANCHOR_PATH to a file somewhere they cannot reach, such as synced storage with history or another disk: every new head is copied there, and --verify then catches a chain that was rewritten afterwards. The format is specified in docs/ARCHIVE_FORMAT.md, so you can check it with a verifier of your own.

`--receipts` adds up the counts every recall and every compaction leave behind: archive size, recall calls (CLI and MCP), spans opened, the share of the archive actually read back, tokens kept out of the window, recall tool calls the model made through the proxy, and seal status. Receipts hold numbers only: no message text, no query text, no paths and no run ids, and nothing is sent anywhere. `--share` prints the same as a five-line block you can paste anywhere:

Context Guardian receipts (last 7d)
  • 40 compactions, ~512,000 tokens kept out of the window
  • 85 spans archived (2.3 MB), sealed, all runs verify
  • 14 recall calls opened 6 spans; 3.2% of the archive was read back
  • local only: no telemetry, nothing left this machine

(Illustrative numbers. Your own come from --receipts --share.)

`--savings` is the other half: how much smaller the forwarded requests were. It reads the compaction log (GUARDIAN_LOG_PATH) and the receipts, and every figure is counted, none estimated: the request sizes before and after each compaction (the proxy's own count for the request, exact on llama.cpp and vLLM and an estimate elsewhere, see What this does *not* do), the oversized pasted messages cut to head + tail, summaries reused without a summariser call, and recall reads. A dry run never counts, because it forwards the request unchanged. --since AGE takes 30m, 24h, 7d or 2w; a bad AGE exits 2. --json prints one object with the keys window, compactions, tokens_before, tokens_after, tokens_kept_out, pct_smaller, oversized_spills, summaries_reused, recall_calls and chars_returned.

Context Guardian savings (last 7d)

compactions 35 requests 145,332 -> 14,819 tokens (89.8% smaller) kept out 130,513 tokens oversized 1 pasted message(s) cut to head + tail summaries 0 reused (no summariser call) recall 3 call(s), 3,170 chars returned

(Output from a scripted 40-turn stub session against a fake backend, not a real log. Your own come from --savings.)

Point your client at the proxy

The proxy compacts OpenAI-style POST /v1/chat/completions requests. Every client below is configured from its own documented settings; none of these four has been tested against the proxy yet, so please open an issue with what you see.

clientwherewhat to set

| Claude Code | environment | Claude Code speaks the Anthropic Messages API (/v1/messages). The proxy compacts it too when GUARDIAN_UPSTREAM_URL serves that API (the summary call goes to the same upstream's /messages with your key and goes into system):

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx