
Spec Score Mcp
io.github.openpoem由 GitHub 账号 openpoem 发布v2.0.2更新于 Oct 24, 2026
Score your specs before feeding them to an LLM. MCP server with radar chart visualization.
概览
对书面规格说明按四个维度打分,返回平衡分与结论,并生成 SVG 雷达图。
- 可以做什么
- 该服务器提供三个工具:spec_score 从完整性、清晰度、约束和具体性四个维度为规格说明打分(每项 0.0-1.0),并返回平衡分与结论,如 SHIP IT、ALMOST、DRAFT、VAGUE、UNBOUNDED、OVER-CONSTRAINED 或 SKETCH;spec_visualize 根据分数生成 SVG 雷达图;spec_compare 将两份已打分的规格说明并排比较。它还会指出最弱的维度并给出修改提示。打分本身由助手完成,算法只衡量各维度的均衡程度。
- 适用场景
- 适合在把功能规格或设计文档交给助手实现之前使用,以便尽早发现含糊或没有边界的需求。也适合把蓝图与已完成实现做对比,或反复修改规格说明直到达到可开工的结论。
- 运行要求
- 作为本地 stdio 进程在用户机器上运行,通过 npm 包 spec-score-mcp 安装;README 的安装方式会克隆仓库、执行 npm install 和 npm run build,再把构建后的入口注册到助手。需要 Node.js。未声明任何认证、环境变量或请求头。仅支持桌面端,不提供网页可执行版本。
安装
在 SourceWeft 中
- 打开 控制台中的 Spec Score Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Spec Score MCP
Score your specs before Claude builds from them.
A balanced spec produces balanced code. An unbalanced spec produces creative fiction.
The problem
When your spec is detailed on some axes but vague on others, Claude doesn't ask for clarification — it fills in the blanks. The result compiles, the tests pass, but it's not what you meant.
This tool catches that before you start building. It scores your spec on 4 axes, tells you which one is weakest, and gives you a concrete tip to fix it.
4 axes
Each axis scores 0.0 to 1.0. The balance score measures how evenly the 4 axes are covered.
Balance matters more than individual scores. A spec scoring 0.50 on all 4 axes (balance: 0.97) will produce better output than one scoring 0.95 / 0.95 / 0.20 / 0.90 (balance: 0.58). Why? That one weak axis — constraints at 0.20 — is exactly where Claude will improvise. You described what to build in detail, but forgot to say what's out of scope. So Claude builds everything you asked for, plus features you didn't.
On the radar chart: an even diamond beats a sharp spike.
Verdicts
Not SHIP IT yet? The tool tells you which axis is weakest and what to add. Fix that axis, re-score, repeat. Most specs reach SHIP IT in 2-3 rounds.
Install
The 3 tools are now available in every Claude Code session.
Usage
Slash commands
Clone this repo to get the built-in slash commands:
Reads the file, scores it, and writes a my-feature-spec.md.scored.md with scores, verdict, tip, and a radar chart.
Scores both files and writes a compared.scored.md with side-by-side radar charts.
Direct tool use
The 3 MCP tools work in any Claude Code conversation:
Ask Claude: "Score this spec", "Show me the radar chart", or "Compare these two specs".
Example: from UNBOUNDED to SHIP IT
This tool scoring its own spec — four rounds, each fixing the weakest axis:
Round 1: the idea
[Round 1: UNBOUNDED (0.12)]Build a spec scoring tool
One axis is high (clarity — the goal is clear), everything else is near zero. Claude would build... anything. A web app? A CLI? A VS Code extension? No way to know.
Round 2: add context
[Round 2: ALMOST (0.67)]Build an MCP server that scores specs on 4 axes: completeness, clarity, constraints, specificity. Each axis is 0.0-1.0. Returns a balance score and verdict.
Now Claude knows what to build. But constraints are still weak — it might add auto-fixing, CI integration, a database.
Round 3: add boundaries
[Round 3: SHIP IT (0.84)]Three tools: spec_score, spec_visualize, spec_compare. Non-goals: no auto-fixing, no CI integration, no storage.
Crossed the threshold. Claude now knows what to build AND what not to build. Specificity is still the weakest axis.
Round 4: add testable details
[Round 4: SHIP IT (0.95)]Balance = 1 - sqrt(variance)/mean. SHIP IT > 0.75, ALMOST > 0.60, plus pattern-based verdicts. Node.js, MCP SDK, stdio transport.
Four rounds: 0.12 → 0.67 → 0.84 → 0.95. Each round fixed exactly one thing.
The math
- Claude scores each axis (0.0 - 1.0)
- Normalize the vector:
v / ||v|| - Balance:
1 - sqrt(variance) / mean - Verdict: balance threshold + axis pattern matching
The scoring intelligence comes from Claude, not from the algorithm. The algorithm only measures balance.
Project structure
OpenPoem — spec-score-mcp
MIT License.
© 2026 OpenPoem. [email protected]
来源:README.md,提交 b92ddae
工具
0版本历史
1- v2.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分