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

Code Guardian

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

安装

概览

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

Safe to run? Will it work? Complete? An A-F grade for any repo, plus a verify loop. Never runs it.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: CODE_GUARDIAN_LLM_URL, CODE_GUARDIAN_LLM_MODEL

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "code-guardian": {
      "command": "uvx",
      "args": [
        "code-guardian-mcp",
        "mcp"
      ],
      "env": {
        "CODE_GUARDIAN_LLM_URL": "your-value",
        "CODE_GUARDIAN_LLM_MODEL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add code-guardian --env CODE_GUARDIAN_LLM_URL=your-value --env CODE_GUARDIAN_LLM_MODEL=your-value -- uvx code-guardian-mcp mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "code-guardian": {
      "command": "uvx",
      "args": [
        "code-guardian-mcp",
        "mcp"
      ],
      "env": {
        "CODE_GUARDIAN_LLM_URL": "your-value",
        "CODE_GUARDIAN_LLM_MODEL": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "code-guardian": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-guardian-mcp",
        "mcp"
      ],
      "env": {
        "CODE_GUARDIAN_LLM_URL": "your-value",
        "CODE_GUARDIAN_LLM_MODEL": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • CODE_GUARDIAN_LLM_URL env
    Optional: local model for the explain tool (Ollama /api/chat or an OpenAI-compatible /v1/chat/completions URL)
  • CODE_GUARDIAN_LLM_MODEL env
    Optional: model name for the explain tool

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Code Guardian 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, topo^alpin

替代选择

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

如何看卡片:★ 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昨天更新
安装

topo^alpin

作者:topoalpin.app

Avalanche bulletins and mountain weather forecasts for any place in the Alps.

在云端运行今天更新
安装

作者的 README

打开 README

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

code-guardian

Status: active development -- changelog

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

0 FAIL findings on 8 of 8 clean, well-known repositories, scanned without running them.

A deterministic A-F grade for any repo -- is it safe to run, will it work, is it complete -- for people about to run code they did not write.

Quick start (60 seconds)

From a clean Python 3.11+ environment (no other dependencies):

pip install code-guardian-mcp

code-guardian scan /home/user/project # the grade, every finding with file:line; exit 0, 1 or 3 code-guardian plan /home/user/project --top 3 # the three fixes worth the most Overall points

Success looks like a first line code-guardian 0.6.0 scan of , then a status: COMPLETE line and four score lines. On a one-file project it takes well under a second. To give the same tools to an AI client, add the MCP server (see MCP server for Claude Desktop and other clients):

claude mcp add code-guardian -- uvx code-guardian-mcp mcp

Proof

Run on 2026-11-05 from a fresh clone of the v0.6.0 tag, with code-guardian-mcp==0.6.0 installed from PyPI:

python tools/calibrate.py

Result: 0 FAIL findings on 8 pinned repositories (5 well-known Python projects and 3 sibling guardians).

python -m pytest -q

1386 passed, 82 skipped in 147.56s (0:02:27)

Caveat: this is static analysis. A grade A is "nothing the scanners recognise", not "proven safe". Python is analysed in full, JavaScript and TypeScript at token level, and every other language gets the secret scan and the repo-hygiene checks only.

Before you run a repository you did not write, or merge a change an AI assistant made, you want to know whether it is dangerous, whether it is broken and what is missing. code-guardian answers that from the source alone, in one command that tells you three things about any repo without running it:

  • Safe: is it safe to run?
  • Works: will it work?
  • Complete: does it have what it needs?

Each is a score out of 100 (higher is better), combined into an Overall score and an A–F grade. Scores come only from deterministic checks with fixed weights: same repo, same version, same output, every time. On top of that:

  • Orphan code: functions, classes and modules nothing reachable from the project's entry points uses, judged against a small goal contract.
  • An optional plain-English explanation from a local model, which never adds, removes or rescores a finding.
  • A verify loop for AI-assisted changes: run it before and after every change to learn what the change fixed, what it broke, what to fix next, and whether the scan itself can be trusted (see The verify loop).

It parses the code (ast for Python; a small lexer for JavaScript and TypeScript; json, tomllib and configparser for manifests; regular expressions for secrets) and never executes, imports or installs it. A scan makes no network calls. Python 3.11+, standard library only.

One of four free, MIT-licensed guardians for people running local models, each answering one question from the outside: tool-guardian (what do my tools cost the window?), context-guardian (will this session hit the limit?), stack-guardian (is my stack healthy?), code-guardian (is this code safe to run?).

Who it is for. Anyone running local AI models, or code an AI assistant wrote, on their own machine: you cloned a repository, or an assistant just rewrote a module, and you want a verdict before you run it. It is the fourth of four free, MIT-licensed guardians, each answering one question about a local setup from the outside:

guardianthe question it answers
code-guardian (this one)is this codebase safe to run, will it work, does it have what it needs?
stack-guardianis my home AI stack healthy — nodes, loaded models, GPUs, tailnet peers?
context-guardianwill this session hit the model's context limit and die?
tool-guardianwhat are my MCP servers' tool definitions costing the context window?

Install it as `code-guardian-mcp`; code-guardian on PyPI is an unrelated project by someone else. You get a CLI, a GitHub Action, a pre-commit hook and an MCP server. The MCP side is a hand-written stdio server speaking MCP protocol 2024-11-05 — no SDK, no dependencies (see ADR 0003) — and it is stdio only: to reach it over a network, put an authenticating proxy in front of it rather than exposing the process. One maintainer, best effort: issues and pull requests get a reply when evenings allow, and there is no paid support (CONTRIBUTING.md, SECURITY.md).

What it analyses

Python is analysed in full, JavaScript and TypeScript at token level, and every other language gets the secret scan and the repo-hygiene checks only. Every report prints a coverage: line saying which files were analysed and how, e.g. coverage: 40 Python analysed; 112 JavaScript/TypeScript analysed (token level); 9 .go secret-scan only, and coverage.languages in the JSON gives the same with the checks that ran.

languagefilesdepthwhat runs
Python.pyfullevery Safe, Works and Complete check, from the parse tree (ast)
JavaScript / TypeScript.js .mjs .cjs .jsx .ts .tsxtokensthe secret scan, the Safe checks and the Works checks marked JavaScript / TypeScript in the tables below, run on a token list
everything elseGo, Rust, shell, .vue, .svelte and the restsecret scan onlykey shapes, manifest and install-hook reading (package.json, setup.py, pyproject.toml, ...) and the Complete checks (licence, README, CI, .env.example)

What "token level" means. A lexer cuts each JavaScript or TypeScript file into tokens, telling strings, template literals, comments, regular expressions and JSX text from code, so a sink named in a string or a comment is never a finding. It is a lexer, not a parser: a check reads call sites, imports, assignments and object-literal properties off the tokens, one statement deep, and follows nothing between statements or functions. The checks are exec.dynamic, exec.shell, deser.unsafe, net.egress, net.bind_all, tls.off, obfuscation, fs.outside, privacy.pii_log and dom.html_sink (Safe) and works.syntax, works.import_unresolved, works.relative_missing, works.entry_missing and works.tests_missing (Works). Not ported from the Python side: privacy.pii_prompt, works.test_no_assert, works.todo_stub, works.commented_code, works.dead_flag and the orphan (dead code) check; coverage.languages.javascript.not_checked lists them. Nothing is installed, imported or run: no npm, no node.

Generated files. A declaration file (*.d.ts), a minified or bundled file (*.min.js, *.min.mjs, *.bundle.js) and any JavaScript or TypeScript file with a line longer than 2,000 characters in its first 8 KB are counted as generated (files.generated). They get the secret scan and the obfuscation and exec.dynamic token checks only, an exec.dynamic WARN there is reported at INFO, and they get no Works check.

When there is neither Python nor JavaScript / TypeScript source, Works is not scored (n/a (no Python or JavaScript), null in JSON), Safe is labelled partial, Overall comes from the scored dimensions only, and the status is PARTIAL. A repo whose source is mostly in other languages is also PARTIAL with the same scores (rule in Scan status). PARTIAL means "do not read this grade as covering the whole repo"; it never fails --fail-on on its own. What the token level cannot see is in Limitations.

Install

pip install code-guardian-mcp

The distribution is code-guardian-mcp (code-guardian on PyPI is someone else's project); the commands are code-guardian and code-guardian-mcp. To run the MCP server without installing anything: uvx code-guardian-mcp mcp.

From a clone (for the tests):

git clone https://github.com/LuminariSoftwares/code-guardian.git

cd code-guardian python -m venv .venv .venv\Scripts\activate # Windows; macOS/Linux: source .venv/bin/activate pip install -e ".[test]" python -m pytest -q

The [test] extra is pytest, build and jsonschema — the whole suite needs them, and the package's own runtime dependencies stay empty. See CONTRIBUTING.md.

The app

code-guardian ui shows the same scan as a page in your browser, in plain words, for people who use AI to write code but do not read code well. code-guardian ui PATH checks that folder first; code-guardian ui alone opens the page and you pick a folder there. It prints one line, code-guardian ui: open http://127.0.0.1:8765/#t=…, and opens that link in your browser; the part after #t= is a key for this run, so use the printed link, not just the address. The page never changes your files, and the grade and findings are the ones code-guardian scan gives.

Settings

The gear at the top of every screen opens three choices: Theme (Dark, the default, or Light), Text size (Normal, Larger or Largest) and whether the Luminari name shows at the top. Your choices are kept by this browser only, not in a file on the computer and not by code-guardian, so another browser or a private window starts from the defaults. The page never turns light because your computer is set to light; light is only ever your choice.

Sizes

Every screen fits a phone, a narrow side window (about 520 px wide) and a full or wide screen, at all three text sizes, with nothing cut off: on a phone or in a side window the summary becomes one line under the tabs that you tap to open, and the file list on the Code screen becomes a drawer. The phone is shown below; the same screen at the other sizes is result_520x900.png (side window) and result_1280x800.png (full screen).

Every file

The Code screen lists every file the check saw, not only the files with a finding, and gives each file one word. A file with a safety finding is marked High, Medium or Low by its worst one. The filter above the list picks which files you see, each with its count:

  • All files: every file the check saw.
  • Files with findings: files with at least one finding of any kind.
  • No known risks found: a Python fil

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

问 PopNx