
MCP Hook Conformance
io.studiomeyer由 studiomeyer.io 發布v0.1.3更新於 Oct 24, 2026
Audits MCP servers for Claude Code mcp_tool hook readiness: idempotency, latency, side-effects.
發布方自己的服務:StudioMeyer Crew
概覽
本機 CLI 測試工具,用來稽核 MCP 伺服器是否適合在 Claude Code 的 mcp_tool 鉤子中呼叫,檢查冪等性、延遲、副作用與確定性。
- 可以做什麼
- 對設定好的 MCP 伺服器執行稽核,輸出人類可讀、JSON 或 JUnit 報告,包含加權評分與問題代碼,並以結束代碼表示通過、失敗或設定錯誤。產生範例設定檔,並解釋個別問題代碼及其修正建議。檢查冪等性、確定性、延遲預算、透過狀態探針偵測唯讀工具的副作用,以及資料流與保留期的文件說明。請注意它是 CLI 工具而非 MCP 伺服器,本身並不使用 MCP 協定。
- 適用情境
- 適合在你維護或評估某個 MCP 伺服器、想確認其工具能否安全地從 Claude Code 的 Stop、PreCompact 或 UserPromptSubmit 等生命週期鉤子中呼叫時使用。也適合把可重複的一致性檢查加入 CI 流程。
- 執行需求
- 以 npm 套件形式在本機執行,需要 Node.js 20 或更新版本,可全域安裝或透過 npx 執行。需要一份 JSON 設定,指定目標伺服器的指令、參數與環境變數,以及選用的探針與門檻值。未宣告任何驗證或 API 金鑰。目標為 Claude Code 2.1.118 以上與 MCP 規範 2025-06-18;stdio 為主要傳輸,HTTP streamable 為實驗性。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Hook Conformance,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Part of the StudioMeyer MCP Stack — Built in Mallorca 🌴 · ⭐ if you use it
mcp-hook-conformance
[npm version] [npm downloads] [License] [Last commit] [GitHub stars]
Test-harness CLI that audits any MCP server for Claude Code v2.1.118 `mcp_tool` lifecycle-hook readiness.The third foundation pillar:
mcp-protocol-conformancesays: does the server speak the protocol?mcp-server-attestationsays: who signed this server?mcp-hook-conformancesays: is it safe to call this tool from a Stop, PreCompact, or UserPromptSubmit hook?
A note from us
We have been building tools and systems for ourselves for the past two years. The fact that this repo is small and has few stars is not because it is new. It is because we only just decided to share what we have built. It is not a fresh experiment, it is a long story with a recent commit.
We love building things and sharing them. We do not love social media tactics, growth hacks, or chasing stars and followers. So this repo is small. The code is real, it gets used, issues get answered. Judge for yourself.
If it helps you, sharing, testing, and feedback help us. If it could be better, an issue is more useful. If you build something with it, tell us at [email protected]. That genuinely makes our day.
From a small studio in Palma de Mallorca.
Install
Or run without install:
Quick start
Exit codes:
0audit passed (no FAILs)1audit produced at least one FAIL2config error (missing file, invalid schema, unknown suite name)
Subcommands
This is a CLI, not an MCP server. Do NOT run
mcp-hook-conformanceviamcp-inspector— the package declaresmcp.specVersionfor the targets it audits, not because it speaks MCP itself. Inspector will EACCES ondist/index.js(which is the library export) by design.
Audit suites
Suite scoring: PASS = 100, WARN = 60, INDETERMINATE = 50, FAIL = 0.
Tool score = weighted average across configured suites.
Aggregate score = mean of tool scores.
Config format
probes lets you pin specific arguments per tool and (for read-only tools) a stateProbe so the side-effects suite can detect mutations. Without a stateProbe the side-effects suite returns INDETERMINATE for that tool.
Finding codes
Run mcp-hook-conformance explain <code> for full remediation text.
Compatibility
Tested transports:
- stdio (primary)
- HTTP streamable (experimental, audit semantics same as stdio)
Reference smoke tests
The tests/smoke/ suite runs the audit against production tenants of mcp-nex and mcp-crm. Opt-in:
Snapshot drift triggers a manual review, not a CI fail.
Limitations (read these)
- Side-effect detection is not hermetic. Without a
stateProbewe cannot black-box prove a read-only tool is pure. We returnINDETERMINATEinstead of false-positive FAIL. - Latency is end-to-end stdio roundtrip. Includes JSON-RPC framing, not pure compute.
- DSGVO suite is keyword heuristic. It catches missing docs reliably; "looks compliant" is not legal advice.
- No auto-fix. This tool reports findings; you fix them.
About StudioMeyer
StudioMeyer is an AI and design studio based in Palma de Mallorca, working with clients worldwide. We build custom websites and AI infrastructure for small and medium businesses. Production stack on Claude Agent SDK, MCP and n8n, with Sentry, Langfuse and LangGraph for observability and an in-house guard layer.
License
MIT © 2026 Matthias Meyer (StudioMeyer)
來源:README.md,提交 fcf25e9
工具
0版本歷史
1- v0.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Studiomeyer 整合
StudioMeyer Crew
io.studiomeyer官方發布者
遠端 MCP 伺服器,為 Claude 提供代理角色、16 個工具與 3 個工作流程,宣稱不產生額外 API 費用。
StudioMeyer Memory
io.studiomeyer官方發布者
遠端雙時態 AI 記憶伺服器,具備知識圖譜與語意搜尋,讓助理跨工作階段持久記憶。

StudioMeyer MCP Suite
io.studiomeyer官方發布者
遠端 MCP 套件,整合 8 個伺服器、104+ 個工具,涵蓋記憶、社群、PDF、電子郵件、圖片、行事曆、排程與檔案。
StudioMeyer GEO
io.studiomeyer官方發布者
一個遠端、託管於歐盟的 MCP 伺服器,讓助理查看品牌或網站在八個大型語言模型平台上的能見度,共 30 個工具,多數不需 API 金鑰。
StudioMeyer CRM
io.studiomeyer官方發布者
StudioMeyer CRM 是遠端、AI 原生的 CRM 伺服器,為助理提供 37 個工具,涵蓋銷售管道、潛在客戶、健康分數與 GDPR 權利。