five46

io.github.sekharsdet由 GitHub 帳號 sekharsdet 發布v0.2.3更新於 Nov 3, 2026

BYOK, fully local AI agent that tests your app/API and writes a real Playwright spec on success.

概覽

AI 產生的概覽

本機 MCP 伺服器:用一句自然語言目標讓助理驅動真實應用程式或 API 進行驗證,並把成功的執行存成 Playwright 或 node:test 測試。

可以做什麼
  • 依目標對網址執行瀏覽器檢查,給出通過/失敗結論、截圖,失敗時附上根因推測
  • 依目標對 API 基底網址執行檢查,預設唯讀,除非解鎖寫入
  • 把成功的執行產生為獨立的 Playwright 或 node:test 測試檔,並輸出 JSON 報告、偵測不穩定的執行
  • 把使用者故事或驗收標準拆成獨立情境,逐條給出通過/失敗結論
  • 重複使用已儲存的登入工作階段,並在乾淨工作階段中或以變異斷言的方式驗證產生的測試
適用情境
適合想快速判斷某個功能或端點目前是否真的可用、又不想先手寫測試的情況,附帶產物是一份可重複執行的測試。也適合在 CI 或 PR 中依驗收標準對預覽部署做檢查。
執行需求
以本機 npm 套件 five46 透過 stdio 執行,僅限桌面。需要 Node.js、瀏覽器模式需一次性下載 Chromium,並需自備 LLM 供應商金鑰放在 FIVE46_LLM_API_KEY,以及在 FIVE46_LLM_PROVIDER 指定供應商(openai、anthropic、gemini、groq 或 bedrock;bedrock 時該變數填 AWS 區域)。需能連線到受測應用程式與 LLM 供應商。
安裝前請注意
應用程式資料與頁面內容會傳送給你選擇的 LLM 供應商,請先了解其資料處理方式。API 執行預設唯讀;FIVE46_MCP_ALLOW_WRITES 會解鎖 POST/PUT/PATCH,FIVE46_MCP_ALLOW_DELETES 會解鎖 DELETE 及看似具破壞性的瀏覽器點擊,請謹慎開啟。登入憑證以佔位符形式對 LLM 隱藏,但 FIVE46_LLM_API_KEY 是會計費的金鑰。執行結果不具確定性,專案仍在早期階段。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 five46,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

five46

[npm version] [npm downloads] [CI] [license: MIT] [node]

Say what should work, in plain English. An AI agent checks it against your real app or API, using your own LLM key, and hands you a real Playwright test.

[five46 driving a real browser through a login, add-to-cart, and checkout flow, then confirming the order was placed]

You just built something and want to know whether it actually works, before writing a test. Give five46 a goal like "log in and confirm the dashboard loads" or "create a user via POST, then confirm it via GET". An LLM (OpenAI, Anthropic, Gemini, Groq or AWS Bedrock, with your key) drives your real app or API one action at a time. It tells you honestly whether the goal was met, with a root-cause hypothesis when it wasn't. A successful run is saved as a standalone Playwright (or node:test) spec, so today's check becomes tomorrow's regression test, and running it needs no five46 or LLM.

Quick start

bash
npm install -g five46npx playwright install chromium   # one-time browser downloadfive46 config                     # pick a provider and paste a key (Gemini's is free)five46 doctor                     # confirms the key worksfive46 test http://localhost:3000 --goal "log in as [email protected] and confirm the dashboard says Welcome back"

You get a pass or fail (and a matching exit code), a report with screenshots and, for failures, a root-cause hypothesis, plus a five46-agent-*.spec.ts you can commit and run with npx playwright test. Testing an API instead? Use five46 api <base-url> --goal "...". It's read-only unless you pass --allow-writes.

Status: early and actively developed. Verified end-to-end against dozens of real-world sites and APIs.

Check every pull request

The five46 GitHub Action reads the Acceptance criteria section of a pull request's description and checks each item against the PR's preview deployment. It keeps one PR comment up to date with the verdict per criterion, why each failure failed, and a ready-to-commit spec for every criterion that passed.

yaml
on: deployment_status   # Vercel, Netlify and other preview deploysjobs:  five46:    if: github.event.deployment_status.state == 'success'    runs-on: ubuntu-latest    permissions: { contents: read, pull-requests: write }    steps:      - uses: sekharsdet/five46-action@v1        with:          url: ${{ github.event.deployment_status.target_url }}          api-key: ${{ secrets.FIVE46_API_KEY }}

How it compares

five46Playwright Test Agentsplaywright codegenCloud AI testing platforms
You provideA goal or acceptance criteria in plain EnglishA seed test and a request, inside an AI coding toolYour own clicksTest descriptions in their app
RunsCLI, CI, GitHub Action or MCP toolInside an AI coding tool, such as VS CodeLocally, while you clickTheir cloud
Built to give a pass/fail verdict on the appYes, with a root-cause hypothesisNot its focus: it generates and repairs testsNoYes
API testingYes (node:test output)Browser-focusedNoVaries
Proves assertions catch failuresYes (--verify mutation check)No built-in checkNoVaries
LLM and costYour key, any of 5 providersYour coding agent's modelNoneTheir subscription
Your app data goes toOnly your LLM providerYour coding agent's providerNowhereTheir platform
OutputPlain Playwright or node:test filesPlain Playwright filesPlain Playwright filesUsually their runner

Already working in an AI coding tool and growing a Playwright suite there? Playwright's own agents are a great fit, especially the healer for keeping existing tests green. five46 is for getting a verdict: is this feature working right now, in CI or on a PR, for a browser flow or an API, with any LLM you already pay for. More detail is in Why five46.

Highlights

  • Safe by default. API runs are read-only unless you unlock writes; destructive-looking clicks ("Delete account") are blocked unless allowed.
  • Login credentials never reach the LLM. It sees placeholders, and the real values are filled in locally. Log in once, then reuse the session.
  • Acceptance criteria in, verdicts out. --story splits a user story or ticket into independent scenarios and reports pass/fail per criterion.
  • Specs you can trust. --verify-clean-session re-runs the spec cold; --verify mutates its assertions and requires them to fail.
  • Works with any current key. If your provider retires a model, five46 finds a current one your key can use. You can also pin one with FIVE46_LLM_MODEL.
  • Fits your tools. CI-friendly exit codes, --report JSON for dashboards, flaky-run detection (--repeat), video recording, and an MCP server for IDE assistants.

Docs

  • Configuration: providers, getting a key, five46 doctor, choosing models
  • CLI reference: every command and flag, login sessions, API testing, story mode, verification, reports
  • MCP server: use five46 from an IDE-embedded AI assistant
  • Security model: what leaves your machine, what five46 guards, and what's your call
  • Why five46: design choices, the full feature list, comparisons
  • CHANGELOG

Known limitations

  • No closed shadow DOM traversal. Elements inside a mode: "closed" shadow root aren't visible to the agent's page snapshot (a closed shadow root is deliberately inaccessible to external tooling in general, not just five46). Open shadow roots, the overwhelming majority of real-world web components, work fine, as do <iframe> and <frame> content.
  • Chromium only for browser mode, with no Firefox or WebKit yet.
  • A run itself is not deterministic. The same goal against the same page can take a different path next time. The generated spec is the frozen, repeatable artifact.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md.

bash
git clone https://github.com/sekharsdet/five46.gitcd five46npm installnpm run buildnode dist/cli.js test <url> --goal "..."npm test

If five46 is useful to you, a ⭐ on GitHub helps other people find it.

License

MIT

來源:README.md,提交 6ae214b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分