
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 分