
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 权利。