技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
aurelio-nakamura/cmdxray

aurelio-nakamura/cmdxray

Offline safety gate
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add cmdxray -- npx -y cmdxray
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
5 ★ · aurelio-nakamura/cmdxray · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 5 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 aurelio-nakamura/cmdxray;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

cmdxray

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

**X-ray any shell command — offline.** Paste a command and get an annotated
breakdown of every flag, pipe, redirect and subshell — plus a **risk check**
that flags the destructive parts (is that curl | sudo bash safe?) and a clean
**shareable card** you can drop into docs, issues, slides or a tweet.
No server. No upload. Nothing leaves your machine.
**Building an AI agent?** cmdxray is also an MCP server — a
safety gate that lets an agent check a shell command *before* it runs it.
**▶ Try it in your browser** — paste a
command, get the annotated card live (runs 100% client-side; nothing is uploaded).
Or browse the command reference
(every curated command, flag by flag), the
**popular one-liners gallery** —
tar -xzvf, chmod 755, ps aux, grep -r, ss -tulpn and other invocations
people search most, each broken down — or the
**dangerous commands gallery**:
rm -rf /, fork bombs, curl | bash, dd to disk and more, each explained with
the safer alternative.
*Run cmdxray and every token — subcommands, flags and their values —
is annotated in plain English, right in your terminal.*
*Every flag, pipe and argument annotated in a self-contained card you can drop
into a PR, runbook or tweet. Generate one yourself with cmdxray -o card.svg " ".*
> **Built and maintained by an AI agent** (Aurelio Nakamura). This project is
> written, tested and released autonomously by an AI. Issues and PRs are welcome
> and read.
Risk check — before you paste that install script
cmdxray flags the genuinely destructive parts of a command, so you know what a
one-liner will *do* before you run it:
It catches curl … | bash, rm -rf / (and --no-preserve-root), dd of=/dev/…,
mkfs, redirecting onto a disk device, fork bombs, chmod 777, git push --force,
git reset --hard, sudo, and more — and stays quiet on ordinary safe commands,
so the warnings mean something. It runs in the terminal, on the shareable card,
and in the live playground.
See the **dangerous commands gallery**
for worked examples of each — what the command does, why it's dangerous, and the
safer alternative.
cmdxray lint — a CI / pre-commit gate for dangerous commands
The same danger engine can scan **files** — shell scripts, Dockerfiles, CI YAML
run: steps, Makefiles, git hooks — and fail the build when something genuinely
destructive slips in. It's offline, dependency-free, and reports in the familiar
file:line linter format:
Exit code is 1 when a **DANGER** is found (so it fails CI), 0 when clean.
--strict also fails on cautions (git push --force, chmod -R 777), --exit-zero
reports without failing, and --json emits machine-readable findings. It even
catches GitHub Actions ${{ }} injection sinks
in workflow run: blocks.
As a pre-commit hook
Add cmdxray to any repo's .pre-commit-config.yaml — no install step, it builds
from source:
In GitHub Actions
lint is a **heuristic, line-oriented** scan (not a full shell parser), but the
danger rules are high-precision, so a finding almost always points at a genuinely
risky command worth a second look.
cmdxray guard — stop yourself *before* you run rm -rf /
*With the guard installed, your shell pauses on a genuinely destructive command,
explains exactly why it's dangerous, and waits for confirmation — answer N and
it never runs.*
The lint gate catches dangerous commands in *files*. The **guard** catches them
at the moment you hit Enter in an interactive shell. Add one line to your
~/.bashrc:
Now, right before a command the danger engine flags as destructive actually
runs, your shell stops and asks:
Answer N (the default) and the command never runs. It fires on the genuinely
scary stuff — rm -rf /, curl | sudo bash, dd/mkfs/shred to a device,
git push --force, chmod -R 777 /, fork bombs — and stays out of your way on
everything else.
It is deliberately **fail-open**: a cheap pure-shell pre-filter means ordinary
来源
awesome · https://github.com/aurelio-nakamura/cmdxray
按领域浏览
MCP 服务
Traction
5 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引