
Testlink Mcp
io.github.Eason0inPublished by GitHub account Eason0inv1.0.8Updated Oct 24, 2026
AI-friendly, safety-first TestLink MCP server
Overview
A local MCP server that lets an assistant explore, analyze and safely update TestLink 1.9.20 test projects, cases, plans and execution results.
- What you can do
- Check server capabilities, compatibility, demo mode and write policy, and list projects, test plans, builds and test suites one level at a time with bounded pagination. Search and read test cases, retrieve safe attachment metadata, inspect requirement traceability and recent execution history. Validate test cases for incomplete or ambiguous content. Preview test case creates and updates, plan memberships and execution results, then apply an unchanged preview with explicit confirmation. Writes are off by default and there is no delete tool.
- When to use it
- Useful when an assistant needs to work with an existing TestLink 1.9.20 instance: finding and reviewing test cases, checking traceability and execution evidence, or preparing and confirming test case and result changes. Demo mode lets you evaluate it without a real server.
- Requirements
- Runs locally over stdio as an npm package, so Node.js is required (the README states ^22.23.2, ^24.18.1 or ^26.5.1). A reachable TestLink 1.9.20 instance with its XML-RPC API enabled, plus TESTLINK_URL and the TESTLINK_DEV_KEY API key. TESTLINK_DEMO_MODE uses local synthetic data; TESTLINK_WRITE_ENABLED must be set to permit apply tools.
Installation
In SourceWeft
- Open Testlink Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 1fc4997
Tools
0Version history
1- v1.0.8LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts