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 分

    請在儲存庫或註冊中心條目中宣告授權條款。