Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Find and remove invisible Unicode: zero-width, tag smuggling, bidi, homoglyphs. Offline.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ghostchars": {
"command": "npx",
"args": [
"-y",
"ghostchars",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add ghostchars -- npx -y ghostchars mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ghostchars": {
"command": "npx",
"args": [
"-y",
"ghostchars",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ghostchars": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ghostchars",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 ghostchars 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.2)于37天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, LickityClick
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Create, edit and track LickityClick short links, campaigns and click stats from your AI assistant.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Find and remove invisible Unicode characters and machine-writing punctuation, in text and in documents. Everything runs on your machine: no network, no telemetry, no account, and zero runtime dependencies.
npx ghostchars clean -i notes.md # clean a file in place, atomically
cat draft.md | npx ghostchars inspect # what is hiding: line:col, codepoint, name npx ghostchars check --bar text # the gate: exit 1 if the tree is dirty npx ghostchars report draft.md # habits that make a draft read as machine written npx ghostchars clean -i essay.docx # documents too: .docx, .odt, .html
Needs Node 22 or newer. The whole package is a launcher and three bundles: the CLI, the document reader, and the MCP server. Only the first is loaded unless you name a document or start the server.
clean reads stdin or the files you name, writes the cleaned text to stdout, or rewrites each file in place with -i. With --check it writes nothing and exits 1 if anything would change.
inspect lists every suspicious character with its line, column, codepoint, Unicode name and the flag that would act on it. It changes nothing and exits 1 when it finds something.
report measures the habits that make a draft read as machine written: sentence length uniformity, stock transitions, tell words, dash density, tricolons, hedging, missing specifics. It is not a detector and emits no probability.
check holds a whole tree to a bar and prints every file that would change, with exact character positions. This is the command for CI and for a pre-commit hook. Configure surfaces and pins in ghostchars.json.
mcp runs a Model Context Protocol server on stdin and stdout, so an agent can call clean_text, inspect_text, style_report and check_paths as tools instead of shelling out.
help prints the commands, help prints one command's flags, and help --json prints the whole surface as one machine-readable document. version prints the version.
The thirteen cleaning switches, their spellings and their meanings are exactly the Python reference CLI's, because it is the same engine underneath.
| flag | what | why it is not default |
|---|---|---|
| (default) | zero-width space, word joiner, byte-order mark, soft hyphen, invisible math operators, bidi overrides, free-floating tag characters, noncharacters, reserved default-ignorable codepoints, every other format control | |
-a, --aggressive | glue characters even when they are load-bearing | breaks emoji sequences, Persian, Indic, subdivision flags |
-s, --spaces | no-break and other exotic spaces to a plain space | |
-n, --newlines | CRLF, CR, NEL, LS and PS to a plain newline | changes line endings |
--bidi | bidi marks and isolates even next to right-to-left text | breaks mixed Hebrew and Arabic |
--controls | C0 and C1 control characters, keeping tab and the line endings | |
--pua | private-use characters | breaks icon-font glyphs |
--punct | em and en dashes, curly quotes, ellipsis and minus to ASCII | typography, not hiding |
--confusables | look-alike Cyrillic and Greek letters to Latin, only inside mixed-script words | rewrites letters; opt in on principle |
--nfc, --nfkc | Unicode normalisation before anything else runs | NFKC rewrites letters and is lossy |
--gutters | the quote bar a terminal draws at the start of a line (U+258C to U+258F, U+2502, U+2503) and one space after it, keeping indentation and box-drawn table rows | a directory tree or a drawn box can start a line with the same bar |
--trailing | trailing spaces and tabs at the end of every line | markdown hard breaks |
--collapse | a run of two or more spaces inside a line to one | |
--max | all of the above except --nfc, which --nfkc supersedes |
Default cleaning is context aware. It strips a zero-width joiner sitting between two Latin letters and keeps the one inside a family emoji or a Persian word. It strips free tag characters, which is how text is smuggled into a message, and keeps a complete subdivision flag. It strips a left-to-right mark in English text and keeps one next to Hebrew. -a turns that judgement off.
An option can only be turned on. There is no way to turn one off, because the reference CLI has none either.
A bar is a named set of options, so a person or an agent picks one word instead of thirteen booleans.
| bar | options | use it for |
|---|---|---|
default | none | invisible characters only. Nothing legitimately needs them |
text | -s --punct | anything a person will read. This is the bar for your own prose |
max | the twelve of --max | everything, including confusables and NFKC. Lossy |
Resolution order is fixed, so the result is always predictable:
--bar,--max if given,So --bar text --collapse is -s --punct --collapse, and --bar max --punct is still just max.
max folds look-alike Cyrillic and Greek letters and applies NFKC, which rewrites letters. Do not run it over text you did not write. It is not offered as a gate bar at all: see check below.
clean and inspect recognise a document by its extension and handle it structurally.
| extension | how | extra flags |
|---|---|---|
.docx | the package is unzipped, every text node is cleaned, the zip is rewritten | --metadata, --rsids |
.odt | the same, through the ODF parts | --metadata |
.html, .htm | text nodes only. Tags, attributes, script and style are untouched | |
| anything else | plain text |
--as text forces plain-text treatment of any path, which is what the Python reference CLI does with an .html file.
Without -i, a cleaned document is written to .clean beside the original, or to the path you give with -o.
inspect on a document prints the character report over the concatenated document text, then what hides around that text: hidden runs, white-on-white and tiny runs, tracked changes, comments, the count of distinct rsid editing-session ids, metadata fields, macros, media. --metadata blanks the authoring fields and drops custom properties; --rsids removes the editing-session fingerprint.
Hidden runs, comments and tracked changes are reported and never removed. Deleting them changes the document, and that stays a human call.
Out of scope here: PDF, images, .pptx, .xlsx, .rtf, .doc, .epub and .pages. check does not open documents at all.
ghostchars check [--bar default|text] [option flags]
[--config ] [--no-config] [--git|--no-git] [--max-bytes N] [--limit N] [--fix] [--json] [--verbose] [paths...]
--bar accepts exactly default and text. There is deliberately no max gate bar: max turns on confusables and NFKC, which target scripts and symbols rather than typography, and a gate that condemns legitimate Cyrillic, Greek and emoji content gets deleted by the people who installed it. The default bar is default, for the same reason: typography is a house style and has to be opted into.
With no path arguments, check finds files with git ls-files, so it honours the same ignore rules your repository already has and still sees files that are new and not yet added. Outside a repository, or with --no-git, it walks the tree instead and skips node_modules, build output, virtual environments and every directory whose name starts with a dot, except the ones coding agents read instructions from (.cursor, .github, .claude, .agents, .windsurf, .devin, .gemini, .codex, .clinerules, .continue, .kiro, .roo). --git makes a git that cannot be used a hard error, whether or not you named paths, so CI cannot silently switch strategy between one container and another. Path arguments are always walked rather than looked up in git, so --git asserts that git was available and reports "discovery": "walk". Results are sorted by path, so the output never depends on directory order. A directory the walk cannot open is an error on stderr and exit 2, never a silent omission.
A file is skipped, silently and without failing the run, when its extension is a known binary one, when it is larger than --max-bytes (2 MiB by default), when one of its first 8192 bytes is NUL, or when it is not valid UTF-8. A file you name on the command line is different: you asserted it is text, so both content checks stop applying to it, the strict decode decides, and a decode failure is an error that exits 2.
check finds 's own ghostchars.json even when you run it from somewhere else: with no config beside the working directory, the search moves up from each path you named, stopping at that path's repository root. Two paths governed by two different config files is an error, because one run has one root and a pin is written relative to it. --verbose prints which config was used.
Put it at the root of the tree, or point at it with --config.
{
"version": 1, "surfaces": [ { "id": "invisibles", "bar": "default", "include": ["**/*"], "exclude": ["vendor/"] }, { "id": "prose", "bar": "text", "include": ["/*.md", "src/messages/*.ts"], "decodeEscapes": true, "pins": { "docs/glyphs.md": 12 } } ], "maxBytes": 2097152 }
A surface names a bar (or an options list, one of the two, never both), the globs it covers, and its pins. A file that matches no surface is not checked at all. An exclusion wins over everything, including a path you named explicitly. An unknown key is an error that lists the known keys, so a typo in pins is never silently ignored.
The glob subset is ** for any run of path segments, * for any run inside one segment, and ? for one character. No braces, no character classes.
decodeEscapes resolves \uXXXX and \u{XXXX} to the characters they render before the file is checked. Turn it on for a source file whose strings a person reads, and leave it off everywhere else: a table of codepoints is full of escapes that match characters rather than ship them.
A pin says a file changes by exactly N characters on purpose. It is enforced in both directions.
| pinned | measured | result |
|---|---|---|
| none | 0 | passes, silently |
| none | N greater than 0 | FAIL changed, every character listed |
| N | N | passes |
| N | M, and M is not N | FAIL pin-mismatch: changes M characters, but exactly N are pinned |
| N greater than 0 | 0 | FAIL pin-stale: pinned as deliberately dirty but now changes nothing. Unpin it |
That last row is the one people forget. It catches a pin that went stale when somebody quietly fixed the file.
docs/post.md: the text bar would change this file:
docs/post.md:1:26 U+2014 EM DASH Ghostchars is a text tool it finds what a reader cannot see. docs/post.md:2:43 U+200B ZERO WIDTH SPACE There is a zero width space in this one.
ghostchars: 1 file would change, 3 scanned
The two placeholders stand for the real characters. This file is held to the text bar itself, so it names a codepoint where it would otherwise print one.
One path:line:col U+XXXX NAME line per offending character, and the source line printed once per distinct line number. Exit 1. When everything passes, one line: ghostchars: 3 files pass the text bar. --verbose also names the files that passed.
npx -y ghostchars check --bar text
That is the whole step. Never pass --fix in CI. --fix cleans the failing files in place and then re-checks, which turns a red build green without anyone reading what changed. It also skips pinned files and names them, because fixing one would inv
只显示了开头部分;其余内容请在仓库中阅读