testlink-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@testlink-mcpShow me the test cases for the login feature in the Demo project."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: TestRail MCP Server
Requirements
Node.js
^22.23.2 || ^24.18.1 || ^26.5.1TestLink 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
nvm use
npm ci
npm run build
TESTLINK_DEMO_MODE=true node dist/cli.jsFuture npm invocation after publication:
npx -y testlink-mcp@1.0.0MCP client configuration:
{
"mcpServers": {
"testlink": {
"command": "npx",
"args": ["-y", "testlink-mcp@1.0.0"],
"env": {
"TESTLINK_URL": "https://testlink.example.com/testlink",
"TESTLINK_DEV_KEY": "your-testlink-dev-key"
}
}
}
}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
Workflow | Tool | Purpose |
Start |
| Check configuration, compatibility, demo mode, and write policy |
Explore |
| List projects |
Explore |
| List plans in a project |
Explore |
| List builds in a plan |
Explore |
| Walk one suite level |
Analyze |
| Search cases in a bounded project/suite scope |
Analyze |
| Retrieve one normalized case |
Analyze |
| Retrieve safe attachment metadata |
Analyze |
| Inspect requirement links and membership in one required test plan |
Analyze |
| Inspect recent execution evidence |
Validate |
| Find incomplete or ambiguous case content |
Preview |
| Preview create/update and plan memberships |
Apply |
| Apply an unchanged confirmed sync preview |
Preview |
| Preview passed/failed/blocked reporting |
Apply |
| Apply an unchanged confirmed result preview |
All tools return:
{
"ok": true,
"data": {},
"meta": {
"source": "testlink",
"requestId": "..."
}
}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:
TESTLINK_WRITE_ENABLED=true npx -y testlink-mcp@1.0.0The 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
Variable | Default | Meaning |
| unset | TestLink base URL or complete XML-RPC endpoint |
| unset | Personal TestLink API key |
|
| Use deterministic local demo data |
|
| Permit confirmed apply tools |
|
| Request timeout, 100–300000 ms |
|
| Maximum XML response size |
| user state directory | Redacted JSONL operation ledger |
| unset | Optional additional CA bundle; TLS verification remains enabled |
Demo mode is explicit and wins over remote configuration:
TESTLINK_DEMO_MODE=true TESTLINK_WRITE_ENABLED=true node dist/cli.jsDevelopment
npm ci
npm run check
npm test
npm run eval
npm run build
npm audit --omit=dev --audit-level=high
npm pack --dry-runThe 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:
docker buildx build --platform linux/amd64,linux/arm64 --tag testlink-mcp:local --output type=oci,dest=testlink-mcp.oci.tar .Future image name after approval and publication: ghcr.io/eason0in/testlink-mcp:1.0.0.
Release policy
Version 1.0.0 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:
mcp-publisher validate server.jsonThe account-side setup and submission data for npm, the MCP Registry, Glama, and MCP.so are tracked in Marketplace submission checklist.
Public references
License
MIT
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows interaction with TestRail's core entities (projects, cases, runs, results, datasets) through a standardized protocol compatible with MCP clients like Claude Desktop.2320MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides integration with TestRail, allowing AI assistants to interact with TestRail projects, test cases, test runs, and results.1,3341
- AlicenseBqualityCmaintenanceA security-focused Model Context Protocol server that enables controlled local tool execution through strict network firewalls, filesystem protections, and rate-limiting policies. It features a plugin-based architecture for progressive tool discovery and includes reference implementations for web searching and bug tracking.15MIT
- AlicenseBqualityAmaintenanceAI-native Model Context Protocol (MCP) server for TestRail. Lets Claude, Cursor, Windsurf, and other AI assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with strongly-typed tool schemas and per-project custom field validation that helps LLMs generate valid TestRail requests on the first try.2681730Apache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Eason0in/testlink-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server