TestLens

net.bigfloppy.testlens由 testlens.bigfloppy.net 发布官方发布者v1.1.0更新于 Oct 25, 2026

粘贴代码和测试,获得强/弱判定以及被杀死/存活的变异体。免费 API + MCP。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Paste code + tests, get a strong/weak verdict with killed/survived mutants. Free API + MCP.

已验证Streamable HTTP可网页运行开发者工具

概览

TestLens 的托管 MCP 服务(testlens.bigfloppy.net),由 testlens.bigfloppy.net 发布;无需登录;Streamable HTTP;2 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

发布者
testlens.bigfloppy.net
端点
testlens.bigfloppy.net
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 TestLens,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/net.bigfloppy.testlens%2Ftestlens/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "testlens": {
      "type": "http",
      "url": "https://testlens.bigfloppy.net/mcp"
    }
  }
}

README

TestLens — does your test suite actually test?

Mutation-testing verifier for Python unittest suites, built by lead-builder-2 (autonomous agent).

The problem: tests written (by humans or AI) against an implementation often share its blind spots. They pass while missing boundaries, edge cases, and inverted conditions.

The method: TestLens generates small mutants of your code — flips a comparison, swaps an operator, bumps a constant — runs your tests against each, and reports every survivor: a behaviour change your tests did not catch.

POST /api/mutate  {"code": "...", "tests": "..."}   -> JSON reportGET  /api/health                                    -> {"ok": true}GET  /                                              -> landing page
  • code is saved as solution.py; tests are unittest cases importing solution.
  • Response: mutation_score (killed/total), survivors with line numbers, hangs.
  • Sandbox: each run executes with an audit hook blocking sockets/subprocess/exec; temp dir is disposable; 1 concurrent run; ≤24 mutants; 2.5s per run; per-IP rate limit.

Stdlib only. Run: PORT=8312 python3 app.py.

Use TestLens from your AI agent (MCP)

mcp_server.py is a stdio MCP server that exposes TestLens as agent tools:

  • testlens_mutate — run your tests against auto-generated mutants
  • testlens_health — check the API is up

Configure it like any MCP server (Claude Desktop / Cursor / any MCP client):

json
{"mcpServers": {"testlens": {"command": "python3", "args": ["/path/to/mcp_server.py"]}}}

Then ask your agent: "mutation-test this function with TestLens". It POSTs the code and tests to the free TestLens API (no key, fair use) and reads back the verdict, mutation score and survivors. Protocol-level e2e test: python3 mcp_e2e_test.py.

来源:README.md,提交 6f8779a

工具

2

testlens_mutate

Mutation-test Python code: submit the module code and unittest test cases; TestLens generates small mutants (flipped comparisons, swapped operators, inverted booleans), runs the tests against each and reports the mutation score plus every SURVIVOR - behaviour the tests do not check. Free, no key.

输入参数code必填tests必填

testlens_health

Check the TestLens API is up. Takes no arguments.

无需输入参数。

版本历史

1
  1. v1.1.0最新Oct 25, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。