Tern
Model Context Protocol (MCP) server for Tern E2E testing platform
Connector by zyf8827 · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/zyf8827-tern
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 13 read · 10 write · 2 delete · 2 not yet classified
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- Not scanned yet
- Runs as
- Node.js package
Tools by what they do 27
Read from the source code; the running server may list different tools.
Read 13 · Look things up without changing anything.
tern_get_casetern_get_executiontern_get_failure_summarytern_get_runtern_get_screenshottern_get_suitetern_list_casestern_list_environmentstern_list_projectstern_list_runstern_list_schedulestern_list_suites
Show 1 more tools
tern_list_workers
Write 10 · Create, change, send or run things.
tern_add_projecttern_cancel_runtern_create_suitetern_reruntern_retry_failedtern_run_casestern_set_case_quarantinetern_sync_projecttern_update_suitetern_wait_run
Delete 2 · Delete, drop, revoke or wipe things.
tern_delete_runtern_delete_suite
Not yet classified 2 · We could not tell from the name and description.
tern_preview_runtern_resync_cases
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
TERN_TOKEN
Other settings (environment variables or headers).
TERN_URL
Tools (27)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
tern_add_project添加一个 git 用例仓库作为测试项目(自动 clone + 首次同步)。默认 HTTP 协议,可用账号密码;SSH 必须提供私钥 PEM(运行在容器内,不会使用宿主机密钥)。仓库根目录需要 tern.yaml
tern_cancel_run结束一次测试运行。默认强制结束:运行立即收敛为 cancelled(不等 worker 回执),中断 worker 上该用例的全部阶段(含尚未开始执行/登录中的条目),worker 不在线时重连后补发中断;force=false 为软取消:仅通知已进入执行阶段的用例。
tern_create_suite创建测试集(项目内可命名复用的用例选择 + 执行前提绑定)。选择器 = 筛选条件 + 显式包含/排除(排除优先);空选择器 = 项目全量。env/account 是运行该集时的缺省环境与账号(AUTH_ACCOUNT,只覆盖未声明 auth 的用例),run 显式指定可覆盖
tern_delete_run删除一次测试运行:级联删除执行记录/事件,并清理截图、trace、日志等产物文件(不可恢复)。进行中的运行需 force=true
tern_delete_suite删除测试集(历史 run 靠 scope 快照不受影响;引用它的定时任务触发时会明确报错)
tern_get_case获取单个用例的元数据、完整源码与最近执行记录
tern_get_execution查询单条用例某次执行的详情:错误、日志尾部、产物清单(截图/trace URL)
tern_get_failure_summary获取一次运行的失败摘要:按错误签名聚类分组(同签名 = 同类失败),每组含代表性用例、截图 URL、日志尾部与跨 run 历史(首见/出现次数)。诊断批量失败的首选工具
tern_get_run查询一次测试运行的状态与逐用例结果。runId 不传时返回最近一次运行
tern_get_screenshot获取某次用例执行的失败截图,以图片返回(多模态模型可直接查看失败现场)
tern_get_suite获取单个测试集详情:选择器、环境/账号绑定、健康度与命中数
tern_list_cases查询测试用例列表(默认一页 20 条)。可用 project / version / module / tags(tagMode any=任一命中, all=全部命中)/ excludeTags / 关键字多维度过滤
tern_list_environments列出项目环境与变量清单(清单来自用例仓库 tern.yaml 的 env.variables;环境值在平台配置,secret 不回显)。发起运行前可用它确认环境是否配齐
tern_list_projects列出平台上的所有测试项目(用例 git/local 仓库)及用例数量、最近同步状态、git 认证摘要(secret 不回显)
tern_list_runs分页列出测试运行(默认一页 20 条),可按 status / project / env / createdBy / workerId / 关键字 / 创建时间筛选
Show 12 more tools
tern_list_schedules列出定时任务(cron、环境、下次触发时间、最近一次运行)
tern_list_suites列出项目测试集:可命名复用的用例选择 + 环境/账号绑定。返回命中数与健康度(悬空引用/空集/环境缺值)——发起运行前选集的主入口
tern_list_workers列出所有执行 Worker 及其状态
tern_preview_runrun 创建 dry-run 预览(不执行不落库):与 tern_run_cases 同参,返回去重后的条目总数、按环境分组的命中构成(每组的来源测试集与条数)、各测试集命中数与去重明细——发起前自查选择是否写对
tern_rerun重跑某次测试运行的全部用例(沿用源运行的环境/参数/worker/trace 选项);只复跑失败用例用 tern_retry_failed
tern_resync_cases全量更新并重新扫描所有项目用例(git 拉取 + 重扫 + lint/打包校验)
tern_retry_failed基于某次测试运行中失败的用例创建新运行并执行(修复后验证的标准动作)
tern_run_cases创建并执行一次测试运行。必须指定 project(或只用 caseIds/suites,且须同属一个项目)。可覆盖该项目的多个 version / module / tag。suites 引用平台测试集(可多个:各自用各自绑定的环境,按「用例×环境」去重执行)。env 引用平台环境(显式指定时会覆盖拉平所有测试集的环境绑定)。workerId 缺省则所有空闲 worker 并行。wait=true(默认)阻塞到结束
tern_set_case_quarantine手动隔离/解除隔离一条用例(flaky 治理)。隔离的用例默认不参与新建运行,但仍可显式 caseIds 点名执行;手动设置优先于自动规则
tern_sync_project强制更新一个项目:git 仓库会 fetch + reset --hard + clean -fdx(丢弃一切本地修改)后重新扫描用例。写完用例 push 之后调用它让平台生效
tern_update_suite更新测试集(只改提供的字段;改名会联动引用它的定时任务)
tern_wait_run阻塞等待测试运行结束并返回最终统计
Signals
- Last release
- Sep 22, 2026 (1 month ago)
Details
- Registry name
io.github.zyf8827/tern- Version
- 0.3.0
- Auth
- API key
- Packages
- npm @zyf8827/tern-mcp
- License
- License unknown
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- Official MCP Registry
Cite this page
Tern MCP server. Agent Mart. https://agentmart.dev/connectors/zyf8827-tern (last updated 2026-10-24)