
Testlink Mcp
io.github.Eason0in由 GitHub 账号 Eason0in 发布v1.0.8更新于 Oct 24, 2026
AI-friendly, safety-first TestLink MCP server
概览
一个本地 MCP 服务器,让助手浏览、分析并安全更新 TestLink 1.9.20 的测试项目、用例、计划与执行结果。
- 可以做什么
- 检查服务器能力、兼容性、演示模式与写入策略,并按层级分页列出项目、测试计划、构建和测试套件。搜索并读取测试用例,获取安全的附件元数据,查看需求追溯关系和近期执行记录。校验测试用例内容是否不完整或含糊。预览用例新建与更新、计划归属和执行结果,再凭明确确认应用未变更的预览。写入默认关闭,且没有删除工具。
- 适用场景
- 适合助手需要操作已有 TestLink 1.9.20 实例的场景:查找和审阅测试用例、核对追溯关系与执行证据,或准备并确认用例与结果变更。演示模式可在没有真实服务器时用于评估。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行,需要 Node.js(README 写明 ^22.23.2、^24.18.1 或 ^26.5.1)。需要可访问且已启用 XML-RPC API 的 TestLink 1.9.20 实例,以及 TESTLINK_URL 和 TESTLINK_DEV_KEY API 密钥。TESTLINK_DEMO_MODE 使用本地合成数据;需设置 TESTLINK_WRITE_ENABLED 才能启用应用类工具。
安装
在 SourceWeft 中
- 打开 控制台中的 Testlink Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
testlink-mcp
An AI-friendly, safety-first Model Context Protocol server for TestLink 1.9.20. It exposes normalized discovery and analysis tools, bounded cursor pagination, structured output, and preview-before-apply writes over stdio.
This repository is a clean implementation based on TestLink's public XML-RPC interface and the public MCP SDK. It has no dependency on a private TestLink package or private source tree.
Highlights
- Starts without credentials so MCP clients can discover all tools, resources, and prompts.
- Explicit deterministic demo mode for evaluation and onboarding.
structuredContent,outputSchema, tool annotations, cursor pagination, and stable error codes.- Attachment metadata only; attachment content and base64 payloads are removed.
- Writes disabled by default. There is no delete tool.
- Every apply requires
confirm: true, an unexpired single-use 10-minute preview, and an unchanged server snapshot. - Side-effect calls are never automatically retried; apply attempts are written to a redacted operation ledger.
- Runtime guard blocks unsupported/EOL odd Node releases and security patch levels below the declared floor.
Safe write demo
[TestLink MCP safe write flow: preview, inspect a diff, then explicitly confirm the apply]
The demo uses synthetic data only. It shows the required safety boundary:
Preview a proposed change, inspect the bounded diff, then call apply
with the exact preview ID and confirm: true. No write happens during preview.
The editable source frames are in
docs/assets/testlink-safety.
Requirements
- Node.js
^22.23.2 || ^24.18.1 || ^26.5.1 - TestLink 1.9.20 with its XML-RPC API enabled
The development and container baseline is Node 24.19.0 LTS. CI also runs Node 22.23.2 and 26.7.0.
Quick start
Future npm invocation after publication:
MCP client configuration:
Do not put real credentials in tracked files. Copy .env.example to an ignored .env, or inject environment variables from your MCP client/secret manager.
Tools
All tools return:
Failures use ok: false with { code, message, retryable, details? }. Consumers should branch on error.code, not message text.
Safe write workflow
- Search for an existing case and retrieve its current version.
- Validate the desired test case.
- Call the relevant preview tool.
- For a create, provide the TestLink
authorLogin;desiredCase.suiteId,summary, andstepsare also required by TestLink 1.9.20. - Show
proposedChangesto the user and obtain explicit confirmation. - Call apply with the preview ID and
confirm: truewithin 10 minutes. - A confirmed apply consumes its preview before any side effect. After any success, conflict, or failure, create and review a new preview before trying again.
- If apply returns
OUTCOME_UNKNOWN, do not retry. The remote write may have succeeded; reconcile the TestLink case, plan membership, or execution result first.
Enable writes only in the server process that should perform them:
The default ledger path is ~/.local/state/testlink-mcp/operations.jsonl. Override it with TESTLINK_LEDGER_PATH. Before a remote write, the server persists an attempted row; it then records applied or outcome_unknown. The ledger contains hashes and redacted outcomes, not developer keys.
Configuration
Demo mode is explicit and wins over remote configuration:
Development
The offline tool-selection eval checks that common user intents select search, validation, preview, and apply tools distinctly. It is deterministic and does not send data to an external model.
Docker
The image runs as a non-root user and uses Node 24.19.0. Build without pushing:
Future image name after approval and publication: ghcr.io/eason0in/testlink-mcp:1.0.8.
Release policy
Version 1.0.8 is release-ready but publication remains an explicit action. The protected release workflow requires a signed version tag, reruns the complete test/eval/audit/SBOM/package gates, publishes npm with provenance, publishes a multi-architecture GHCR image with SBOM and provenance, creates a GitHub Release, and finally publishes the validated MCP Registry entry.
A separate protected live-smoke workflow verifies the installed package against a real TestLink 1.9.20 instance using read-only calls. Its URL and developer key must be stored as environment secrets and are never written to logs.
The package manifest and server.json share the MCP name io.github.Eason0in/testlink-mcp. Registry validation can be run without publishing:
The account-side setup and submission data for npm, the MCP Registry, Glama, and MCP.so are tracked in Marketplace submission checklist.
Public references
- TestLink 1.9.20 source and release branch
- Model Context Protocol TypeScript SDK
- Official MCP Registry publisher commands
License
MIT
来源:README.md,提交 1fc4997
工具
0版本历史
1- v1.0.8最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分