
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.
概览
本地 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 服务商。
安装
在 SourceWeft 中
- 打开 控制台中的 five46,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
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
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.
How it compares
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.
--storysplits a user story or ticket into independent scenarios and reports pass/fail per criterion. - Specs you can trust.
--verify-clean-sessionre-runs the spec cold;--verifymutates 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,
--reportJSON 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.
If five46 is useful to you, a ⭐ on GitHub helps other people find it.
License
来源:README.md,提交 6ae214b
工具
0版本历史
1- v0.2.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分