TestOps MCP Server
An MCP server that connects AI agents to TestOps, enabling test case management, launches, defects, and analytics through natural language.
README
TestOps MCP Server
An MCP server that connects AI agents (Claude, Cursor, etc.) to TestOps — enabling test case management, launches, defects, and analytics through natural language.
Features
- Projects — list and inspect projects
- Test Cases — create, read, update, delete, search, and manage scenarios (steps)
- Test Plans — create, edit, view associated test cases
- Launches — browse launches and their test results
- Test Results — view and update statuses
- Defects — create, edit, browse
- Analytics — automation trend, status distribution, success rate
- Read-only mode — disable all write operations for safe environments
Quick Start
Prerequisites
- Node.js 20+
- Access to a TestOps instance
- TestOps API token
Installation
npm install -g testops-mcp
MCP Client Configuration
Add to your MCP client config (Claude Desktop, Cursor, Claude Code, etc.):
{
"mcpServers": {
"testops": {
"command": "testops-mcp",
"env": {
"TESTOPS_URL": "https://your-testops-instance.example.com",
"TESTOPS_TOKEN": "your-api-token"
}
}
}
}
Or with npx (no global install required):
{
"mcpServers": {
"testops": {
"command": "npx",
"args": ["-y", "testops-mcp"],
"env": {
"TESTOPS_URL": "https://your-testops-instance.example.com",
"TESTOPS_TOKEN": "your-api-token"
}
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
TESTOPS_URL |
Yes | TestOps instance URL (e.g. https://testops.example.com) |
TESTOPS_TOKEN |
Yes | API token for authentication |
TESTOPS_PROJECT_ID |
No | Default project ID (so you don't have to specify it in every request) |
TESTOPS_PAGE_SIZE |
No | Pagination page size (server default if not set) |
TESTOPS_READ_ONLY |
No | Set to true to disable all write operations |
TESTOPS_TIMEOUT_MS |
No | Request timeout in milliseconds for auth and API calls (default: 30000) |
TESTOPS_RETRY_MAX |
No | Retry count for transient read-request failures (default: 2) |
TESTOPS_RETRY_BASE_MS |
No | Base backoff delay in milliseconds for transient read-request retries (default: 250) |
TESTOPS_LOG_LEVEL |
No | Runtime stderr log level: error, info, or debug (default: error) |
TESTOPS_LOG_FORMAT |
No | Runtime stderr log format: json or pretty (default: json) |
Available Tools
Projects
| Tool | Description |
|---|---|
list-projects |
List all projects |
get-project |
Get project details by ID |
Test Cases
| Tool | Description |
|---|---|
list-test-cases |
List test cases in a project |
search-test-cases |
Search test cases by query |
get-test-case |
Get test case basic details |
get-test-case-overview |
Get full test case details (members, issues, custom fields, requirements, test keys) |
create-test-case |
Create a test case (with tags, links, members) |
update-test-case |
Update a test case (with tags, links, members, duration) |
delete-test-case |
Delete a test case |
get-test-case-scenario |
Get test case steps (Gherkin scenarios + manual UI steps) |
update-test-case-scenario |
Update test case scenario |
Test Case Sub-Resources
| Tool | Description |
|---|---|
get-test-case-issues |
Get issue links (Jira, YouTrack, etc.) |
set-test-case-issues |
Set issue links for a test case |
get-test-case-members |
Get members (owner, reviewers) |
set-test-case-members |
Set members for a test case |
get-test-case-custom-fields |
Get custom field values (Component, Priority, Team, etc.) |
set-test-case-custom-fields |
Update custom field values |
get-test-case-relations |
Get relations (related to, clones, duplicates, etc.) |
set-test-case-relations |
Set relations for a test case |
get-test-case-requirements |
Get linked requirements |
set-test-case-requirements |
Set requirements for a test case |
get-test-case-test-keys |
Get test keys |
set-test-case-test-keys |
Set test keys for a test case |
Test Plans
| Tool | Description |
|---|---|
list-test-plans |
List test plans |
get-test-plan |
Get test plan details |
create-test-plan |
Create a test plan |
update-test-plan |
Update a test plan |
get-test-plan-test-cases |
Get test cases in a test plan |
Launches
| Tool | Description |
|---|---|
list-launches |
List launches |
get-launch |
Get launch details |
get-launch-test-results |
Get test results for a launch |
Test Results
| Tool | Description |
|---|---|
list-test-results |
List test results |
get-test-result |
Get test result details |
update-test-result |
Update a test result |
Defects
| Tool | Description |
|---|---|
list-defects |
List defects |
get-defect |
Get defect details |
create-defect |
Create a defect |
update-defect |
Update a defect |
Analytics
| Tool | Description |
|---|---|
get-automation-trend |
Test automation trend over time |
get-status-distribution |
Test status distribution |
get-success-rate |
Test success rate |
Reference Data
| Tool | Description |
|---|---|
list-test-layers |
List available test layers (UI, API, Unit, etc.) with IDs |
list-workflows |
List workflows with their statuses and IDs |
Architecture
src/
├── index.ts # Entry point: MCP server initialization
├── config.ts # Environment variable configuration
├── client/
│ ├── auth.ts # OAuth authentication with JWT token caching
│ └── http-client.ts # HTTP client with automatic token injection
├── api/ # Typed API clients
│ ├── projects.ts
│ ├── test-cases.ts
│ ├── test-plans.ts
│ ├── launches.ts
│ ├── test-results.ts
│ ├── defects.ts
│ ├── analytics.ts
│ └── reference-data.ts
├── tools/ # MCP tool registration
│ ├── register-all.ts
│ ├── projects.ts
│ ├── test-cases.ts
│ ├── test-plans.ts
│ ├── launches.ts
│ ├── test-results.ts
│ ├── defects.ts
│ ├── analytics.ts
│ └── reference-data.ts
├── types/ # TypeScript interfaces
│ ├── common.ts
│ └── api-types.ts
└── utils/
├── formatting.ts # API response formatting for LLM readability
└── error-handler.ts # Tool error handling wrapper
Three-layer design:
- Client — HTTP transport with OAuth authentication and automatic token refresh
- API — typed methods for each TestOps entity
- Tools — MCP tools with Zod parameter validation and response formatting
Development
git clone <repo-url>
cd testops-mcp
npm install # also installs pre-commit hook via "prepare" script
npm run build
npm start
Testing
The project has 220 unit tests covering all layers (utils, config, client, API, tools).
npm test # run all tests once
npm run test:watch # run in watch mode
npm run check # lint + unit tests + build + docs/guardrail checks
npm run contract:drift # ensure fake backend route contracts match src/api/*
npm run eval:smoke # run end-to-end smoke eval against a fake local TestOps backend
npm run eval:matrix # run full local eval matrix across all tool groups and logging modes
A pre-commit hook automatically runs the test suite before every commit. If any test fails, the commit is blocked.
CI
GitHub Actions runs on every push to main and on every pull request.
checkruns on Node 20 and Node 22eval:smokeruns on Node 20eval:matrixruns on Node 20
The workflow file lives at .github/workflows/ci.yml.
Diagnostics
Runtime diagnostics are emitted to stderr only so they do not interfere with MCP stdout transport.
Examples:
TESTOPS_LOG_LEVEL=info TESTOPS_LOG_FORMAT=json testops-mcp
TESTOPS_LOG_LEVEL=debug TESTOPS_LOG_FORMAT=pretty testops-mcp
If the MCP client does not surface subprocess stderr clearly, reproduce the same server config in a terminal and inspect the logs there. Detailed guidance lives in docs/logging.md.
Repo Knowledge Base
Agent-facing repository guidance lives in:
AGENTS.mddocs/index.mddocs/architecture.mddocs/reliability.mddocs/security.mddocs/logging.mddocs/runbooks.mddocs/evals.md
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。