Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Seven tools over the tabnas parsing engine: parse, validate, diagnose, fixtures, compare.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://mcp.tabnas.dev/mcp打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"tabnas": {
"command": "npx",
"args": [
"-y",
"@tabnas/mcp"
]
}
}
}在终端中运行这条命令
claude mcp add --transport http tabnas https://mcp.tabnas.dev/mcpclaude mcp add tabnas -- npx -y @tabnas/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tabnas": {
"url": "https://mcp.tabnas.dev/mcp"
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"tabnas": {
"command": "npx",
"args": [
"-y",
"@tabnas/mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tabnas": {
"type": "http",
"url": "https://mcp.tabnas.dev/mcp"
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"tabnas": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tabnas/mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://mcp.tabnas.dev/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过域名 tabnas.dev 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(0.1.20)于29天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Spec Driven Development, Remote Desktop Commander, topo^alpin
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ 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.
Avalanche bulletins and mountain weather forecasts for any place in the Alps.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
The tabnas agent tooling: one TypeScript codebase, two front-ends: an MCP server (stdio) and the unified tabnas CLI, sharing a single core (ts/src/core.ts) so the two can never disagree. For each operation the CLI's --json output and the MCP tool result are byte-identical, and the test suite holds them to it.
The website page for this package: per-client setup, the tool contracts, the hosted endpoint's bounds: [tabnas.dev/mcp](https://tabnas.dev/mcp/).
Published as @tabnas/mcp. This repo is TypeScript-only: it is tooling over the engine, not a parity package, so there is no Go port.
npm install -g @tabnas/mcp # the `tabnas` CLI
npx --yes @tabnas/mcp # run the MCP server directly (stdio)
MCP client configuration (stdio):
{
"mcpServers": { "tabnas": { "command": "npx", "args": ["--yes", "@tabnas/mcp@ ", "mcp"] } } }
Fill in with the current version: npm view @tabnas/mcp version. This README does not name it: a repo cannot carry an exact pin of its own published version, because the commit that updates it becomes the next release's content, leaving it one release behind forever.
The server is started by the mcp subcommand of the CLI (tabnas mcp), which is exactly what the skills package's mcp.json invokes as npx --yes @tabnas/mcp@ mcp. (--yes matters: on a cache miss npx would otherwise prompt on the stdin the MCP transport owns. Pin an exact version so the tools cannot drift under an installed client: skills/mcp.json carries the real one, written from the registry by its tools/sync-mcp-pin.js and checked by tools/validate.js --online.)
| Tool | Answers | Result | |
|---|---|---|---|
parse | does this input parse, and to what tree? | {ok:true, tree} \ | {ok:false, diagnostic} |
validate_grammar | is this serialized GrammarSpec valid? | {ok:true, v} \ | {ok:false, errors:[{path,message}]} |
explain_parse_error | why did this parse fail? | {failed:false} \ | {failed:true, diagnostic, registry} |
test_grammar | do these TSV fixtures pass? | {pass, fail, rows:[{row,input,expected,got,ok}]} | |
list_plugins | what grammar plugins exist? | {plugins:[...]} | |
describe_plugin | one plugin's full descriptor | the tabnas.plugin.json object | |
compare_grammars | does a grammar change still accept what the old one accepted, and build the same trees? | {normalForm, proven[], observed[], changes[], counterexamples[], confidence, why} |
Notes on the contracts:
parse applies options first, then grammar. With no grammar the instance is exactly what new Tabnas() gives: the bare engine defines no rules, so every input yields an undefined tree (serialized as {"ok":true}).grammar argument is validated before it is used, by every operation that accepts one; an invalid grammar is rejected with the validate_grammar error shape {ok:false, errors:[{path,message}]}.validate_grammar layers: an ADR-10 security scan (below), structural validation against the bundled grammar.schema.json (Ajv, draft 2020-12), then an engine load in a fresh instance whose thrown message becomes the error. v is the grammar's declared builtin config-schema version (absent means 1).__proto__, constructor, or prototype anywhere in the tree (prototype-pollution defense, since the engine's grammar merge has no __proto__ guard); a ref key (live functions are not JSON); any function reference that is not a $-suffixed engine builtin; a plugins key, whether a request option or inside grammar.options (a plugin is live code); and grammars over 5000 rules (a CPU bound). "Validate this grammar" never becomes "run this code", or "pollute this process".options.parser.start set to a non-function) is caught and returned as the same clean {ok:false, errors:[{path:"",message}]} shape, so the CLI and the MCP tool agree.explain_parse_error joins the diagnostic with the bundled error-code registry entry ({code, message, hint}); registry is null for a code the registry does not know (for example, a plugin-declared code).test_grammar takes TSV content in the fleet fixture convention (@tabnas/support): line 1 is a header, the input column is escape-decoded, the expected column is JSON or ERROR / ERROR: . Columns default to positions 0 and 1; options.inputCol / options.expectedCol select by position or header name. Specs over 10000 rows are refused.MCP resources (served verbatim from the bundled data/): tabnas://schema/grammar, tabnas://schema/diagnostic, tabnas://errors, tabnas://plugins, tabnas://divergence.
tabnas parse [file|-] [--grammar g.json] [--json]
tabnas validate --grammar g.json [--json] tabnas diagnose [file|-] [--grammar g.json] [--json] tabnas test --spec fixtures.tsv [--grammar g.json] [--json] tabnas plugins [name] [--json] tabnas compare --a old.json --b new.json [--corpus dir|file] [--depth n] [--json] tabnas mcp # run the MCP server (stdio)
Input comes from file, or stdin when the argument is - or absent. The CLI never touches the network. tabnas mcp starts the stdio MCP server (the same server as npx @tabnas/mcp); it speaks JSON-RPC on stdout and prints nothing else there.
--json prints exactly the core result JSON: the same bytes the MCP tool returns for the same request (stable key order; the golden contract, enforced by ts/test/golden.test.js). Without --json you get a readable rendering; a parse failure prints the engine's own rendered error message.
Exit codes:
| Code | Meaning |
|---|---|
| 0 | success: parse succeeded / grammar valid / all fixture rows passed |
| 1 | the operation said no: parse failure, invalid grammar, fixture failures, unknown plugin |
| 2 | usage error: unknown flags or command, missing/unreadable files, malformed grammar JSON |
Every tool takes a serialized GrammarSpec, pure JSON. It does not take ABNF, EBNF, GBNF or jsonic source, and it never will: compiling those means running a compiler, and the tools' one hard rule is that a grammar is data, never code (ADR-10). Compile first, then pass the result.
const { abnfConvert, toPureSpec } = require('@tabnas/abnf')
const spec = toPureSpec(abnfConvert(abnfSource, { builtins: true })) // -> { options, rule, v, meta } — validates clean, safe to send
Use `toPureSpec`. It is the function for this, and the two obvious alternatives are both wrong:
abnfCompile() returns jsonic text, not an object. Useful for writing a grammar file; not what a tool argument wants.abnfConvert() alone returns a spec carrying ref (empty, when converted with builtins: true) and mark fields. The firewall rejects the *presence* of ref, not merely its contents, deliberately, since "empty enough" is not a property worth reasoning about at a security boundary, and m marks are not part of the serialized form. toPureSpec strips both and stamps v.toRecognitionSpec is the same thing for a grammar that only needs to decide accept/reject, without the tree-building builtins.
The equivalent for the other front-ends is tabnas parse --grammar g.json, where g.json is whatever your build step wrote.
compare)Two questions, reported separately, because they fail differently:
The second is the one users feel. A change that still accepts every historical document but reshapes the tree silently breaks every downstream consumer, and an acceptance-only test reports success.
The report carries evidence and confidence, never a bare verdict. There is deliberately no compatible: true field. Language inclusion is undecidable in general, so a tool that printed one would eventually be wrong in production:
proven[]. What was established statically, and on what basis. Anything outside the decidable subset is not-proven, which is a statement about this tool, not a claim that the grammars are incompatible.observed[]. What actually ran, and how much of it.changes[] / counterexamples[]. Concrete differences, with inputs.confidence + why. How much weight the *absence* of findings can bear. confidence: "low" with a stated reason is a successful run.The check that earns its keep is alternate ordering. Alternates are first-match-wins, so one inserted earlier can shadow a later one and narrow the accepted language while a set comparison calls it an addition. compare walks positions, not membership, and reports a shadowed alternate that used to be reachable.
--corpus takes a .tsv fixture file or a directory of them, loaded through @tabnas/support, the same loader the fixture runners use. Real inputs are the only tier that measures what your documents actually do:
tabnas compare --a v1.json --b v2.json --corpus ../json/test/spec
Exit code is 1 when any change is found, so it works as a release gate.
mcp.tabnas.dev serves the same seven tools over streamable HTTP (POST /mcp, plus GET /health and GET /.well-known/mcp), for agents that cannot run npx. Local stdio stays the recommended path: it is free, private, reproducible, and unlimited.
The hosted service is the same core, so it answers identically; it is also bounded, because it parses attacker-controlled text on shared infrastructure. A 256 KB body cap and 60 requests per minute per IP, both reported up front by /.well-known/mcp and named in the refusal (limit_exceeded / rate_limited) along with the local alternative. The rate limit is Cloudflare's, which counts per IP per data centre and approximately, so it is a shield against sustained abuse, not an exact quota, and a short burst may exceed 60 before refusals begin. Document content is never logged, stored, or used for training; telemetry records shape only: tool name, size *bucket*, duration, status, error code.
Published packages do not carry the fleet's contract files (the parser's npm files exclude schema/; plugin packages do not ship tabnas.plugin.json), so this repo commits generated copies in data/: the grammar and diagnostic schemas, the error-code registry, DIVERGENCE.md, and every fleet plugin descriptor (plugins.json, sorted by name). Regenerate from sibling checkouts (../ beside this repo) with:
cd ts && npm run gen-data
The build compiles data/ into ts/src/data-bundle.ts (generated, gitignored) and the code reads that static import, never the filesystem, because the hosted Worker does not have one. The test suite fails on a stale regeneration or a stale embed, and checks the embedded set against the directory rather than a hand-kept list. Derive, never duplicate (ADR-10).
data/grammar.schema.json gets the same treatment for a different reason: Ajv validates by generating JavaScript and calling new Function, which Cloudflare Workers forbid outright, so tools/build-validator.js precompiles the schema into ts/src/grammar-validator.js at build time. Same Ajv, same error shapes, compiled earlier.
cd ts
npm install npm test # builds first, then runs every test/*.test.js
`np
只显示了开头部分;其余内容请在仓库中阅读