
MCP Failure Lab
io.github.cloudlabworks由 GitHub 账号 cloudlabworks 发布v0.1.2更新于 Nov 3, 2026
故意带有故障的 MCP 服务器,用于测试代理客户端如何处理工具错误和断开连接。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Deliberately faulty MCP server for testing how agent clients handle tool errors and disconnects.
概览
MCP Failure Lab 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Failure Lab,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Failure Lab
[OpenSSF Scorecard] [OpenSSF Best Practices]
A deliberately faulty MCP server and a bounded reference-client harness. v0.1.0, MIT. Built on the official MCP TypeScript SDK 2.3.1, not a replacement protocol implementation.
Try it
Requires Docker. The image uses Node 24 and pinned npm dependencies.
The last command prints JSON results and OpenAI-message-shaped traces from seven deterministic runs. No language model participates. Timings are observed elapsed milliseconds, not benchmarks. The test command exits nonzero on a regression; the demo command emits observations, not a grading verdict.
For local development: npm ci --ignore-scripts, then npm test.
From the published image (Official MCP Registry: io.github.cloudlabworks/mcp-failure-lab):
Verifying a release
From v0.1.2, each release has build provenance signed through Sigstore by the publish-mcp workflow. With the GitHub CLI:
The second command checks the source tarball from the GitHub Release. To verify offline, add --bundle mcp-failure-lab-0.1.2.tar.gz.intoto.jsonl (the provenance file attached to the same release).
Faults
Only the advertised lab_probe tool is affected. Initialization and discovery use the official SDK.
The transport wrapper corrupts result shape, not JSON framing; truncated frames, bad IDs, HTTP failures and authentication faults are not implemented.
Configuration is read at process startup. Scenarios reset per process.
LAB_DELAY_MS: integer 0–10000 (default 1000).
LAB_FAILURES: integer 0–10 (default 2).
Values must be plain decimal digits; an unset or empty variable uses the default, and anything else (0x10, 1e3, 7) stops the server with exit code 2.
The reference client retries only explicit tool errors, at most five attempts; protocol errors, timeouts and disconnects stop immediately.
The harness's tool-call deadline is 10–10000 ms; SDK connection/discovery deadlines are separate.
Retries intentionally have no backoff so the generated fixture exposes repeated calls; this is not recommended production retry policy.
Attach your own MCP client
Configure a test MCP connection to run this command, with stdin/stdout attached:
Call lab_probe with {"message":"probe"}.
There are no real downstream services, credentials, file-writing tools or listening network ports.
Client integrations beyond the included reference client are unverified.
Feed a failure into Agent Trace Clinic
From this repository, with Clinic checked out next to it:
Clinic should identify tool_loop, retry_storm and unhandled_tool_error on this fixture. These are heuristic leads: deliberate bounded retries can also trigger them. No token counts are invented.
Relationship to upstream
MCP conformance is the upstream authority for protocol tests. This project contributes a small fault surface for recovery experiments; it does not claim conformance certification. The official framework currently documents HTTP-based client/server scenario runners. This first release is stdio-only; an upstream scenario adapter and a Streamable HTTP target are next, not shipped capabilities.
Sources checked 2026-10-14:
Maintenance contract
One transport, one tool, six fault modes, one reference client. Pin SDK upgrades and rerun every fault test.
Owner: Cloud Lab Works / Waku. Gherkin review has not been assigned or completed.
Before public release: source/dependency review, an independent test pass, and publication approval.
Before cloud execution: bounded job budget, teardown, and measured runtime. No cloud account is required for this release.
No telemetry or remote reporting. Generated reports stay in ignored artifacts/.
Agent Reliability Lab
Open the public demo or read the experiment guide. Four controlled before/after cases connect the official MCP reference client to deterministic Clinic inspection. The public sample is recorded local evidence, not a live cloud execution. Cloud adapters and runbook are included.
Citation
If you use this project, please cite the accompanying preprint: MCP Failure Lab: Reproducible Tool-Failure Fixtures and Cross-Platform Traces for Testing Agent Reliability. DOI: 10.5281/zenodo.23720942. See the paper page for the abstract and PDF.
来源:README.md,提交 28d961e
工具
0版本历史
1- v0.1.2最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分