Skip to main content
Glama

mcp-testops — MCP-сервер для Allure TestOps

MCP-сервер (stdio) поверх API Allure TestOps: проекты, тест-кейсы с шагами, тест-планы, запуски и результаты, справочники. 30 инструментов: 17 читают, 13 меняют; generic-вызова «любой путь под /api» нет сознательно (docs/03-tools-spec.md §7). Python 3.10+, официальный SDK mcp v2 (MCPServer из mcp.server) и httpx; сервер не слушает портов — клиент запускает его подпроцессом. Лицензия MIT.

Два способа работать, выбирайте один. Как MCP-сервер — 30 инструментов живут в клиенте, это удобно для долгой работы. Или как CLI: одна команда на вызов, сервер никуда не ставится и 30 описаний не висят в каждом запросе — npx -y @gribanoveu/mcp-testops call list_projects '{"search": "login"}'. Для агента второй способ описан скиллом testops-cli, первый — testops-mcp (см. «Скилл для агента»).

Установка

npx -y @gribanoveu/mcp-testops                                         # Node 18+, без установки
npm install -g @gribanoveu/mcp-testops                                 # глобально: команда mcp-testops
uvx --from git+https://github.com/gribanoveu/mcp-testops mcp-testops   # через uv, Python 3.10+
pip install https://github.com/gribanoveu/mcp-testops/releases/download/v0.2.2/mcp_testops-0.2.2-py3-none-any.whl

Обёртка npx Python не требует: при первом запуске она скачивает бинарник своей платформы (22–40 МБ) из Releases в ~/.cache/mcp-testops/ и дальше работает из него. Готовые бинарники лежат там же: darwin-arm64, linux-x64, linux-arm64, win32-x64.

Версия закрепляется на любой форме: npx -y @gribanoveu/mcp-testops@0.2.2. Чем эти пути различаются, что делать на Intel Mac и какие клиенты поддерживаются — docs/07-clients.md.

Related MCP server: Dependency-Track MCP Server

Настройка

Всё, что зависит от стенда, приходит из окружения: один пакет поднимается под разные проекты.

Переменная

Обязательна

По умолчанию

Смысл

TESTOPS_TOKEN

да

—

API-токен; без него старт прерывается с TESTOPS_TOKEN is not set

TESTOPS_BASE_URL

нет

https://testops.net

хост стенда

TESTOPS_PROJECT_ID

нет

—

проект по умолчанию для инструментов без project_id

TESTOPS_VERIFY_SSL

нет

false

проверка TLS; true на стенде с валидным сертификатом

TESTOPS_TIMEOUT

нет

60

таймаут запроса, секунды

TESTOPS_READ_ONLY

нет

false

true — регистрируются только read-инструменты (17 из 30)

MCP_SERVER_NAME

нет

testops

имя сервера в клиенте

Флаги принимают 1, true, yes, on в любом регистре. Токен уходит как Authorization: Api-Token <token>; при 401/403 попробуйте Bearer. Остальное — прокси, CA, ретраи, логи, почему TLS по умолчанию выключен — docs/08-limitations.md.

Подключение

Один JSON-объект mcpServers с command/args/env понимают почти все клиенты: Cursor (~/.cursor/mcp.json или .cursor/mcp.json), Claude Desktop (claude_desktop_config.json), Claude Code (.mcp.json), Gemini CLI (settings.json), Kiro (.kiro/settings/mcp.json), Kibo Agent (~/.kibo/mcp.json), Trae, Devin CLI, Factory Droid. Содержимое у всех одно:

{
  "mcpServers": {
    "testops": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@gribanoveu/mcp-testops"],
      "env": {
        "TESTOPS_BASE_URL": "https://testops.net",
        "TESTOPS_TOKEN": "****",
        "TESTOPS_PROJECT_ID": "65"
      }
    }
  }
}
  • токен в репозитории не храните: пишите "${env:TESTOPS_TOKEN}" — клиент подставит переменную окружения, а в git секрет не попадёт;

  • сервер видит только этот блок env — переменные вашей оболочки до него не доходят;

  • клиенты без строки type (Claude Desktop, Kiro) её просто игнорируют; TESTOPS_READ_ONLY — true, если нужен доступ без записи.

Claude Code

claude mcp add testops -e TESTOPS_TOKEN=... -e TESTOPS_BASE_URL=https://testops.net \
  -- npx -y @gribanoveu/mcp-testops

-s user — для всех проектов (~/.claude.json), -s project — в .mcp.json проекта; проверить — claude mcp list.

VS Code (GitHub Copilot)

Ключ другой — servers вместо mcpServers, и type обязателен. Файл .vscode/mcp.json (или пользовательский профиль); секреты можно вынести в inputs:

{
  "servers": {
    "testops": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@gribanoveu/mcp-testops"],
      "env": { "TESTOPS_BASE_URL": "https://testops.net", "TESTOPS_TOKEN": "${input:testops-token}" }
    }
  },
  "inputs": [{ "id": "testops-token", "type": "promptString", "description": "TestOps API token", "password": true }]
}

Остальные форматы

  • Zed — .zed/settings.json, ключ context_servers (внутри command: {path, args, env}).

  • Codex CLI — TOML в ~/.codex/config.toml, таблица [mcp_servers.testops] с command, args, env.

  • OpenCode — opencode.json, ключ mcp с type: "local" и массивом command.

  • Транспорты бывают два: stdio (command/args, как здесь) и Streamable HTTP (url/headers, SSE — устаревший). Этот сервер работает только по stdio: портов не слушает и никуда не ходит, кроме стенда TESTOPS_BASE_URL.

Варианты с абсолютным путём к бинарнику и с Python-пакетом, а также полный список клиентов — docs/07-clients.md.

Скилл для агента

Скиллов два, и нужен один из них — они про одно и то же, но по-разному:

Скилл

Как работает

Когда брать

testops-mcp

агент вызывает 30 инструментов зарегистрированного MCP-сервера

обычный случай: посмотреть, что есть, менять аккуратно

testops-cli

агент выполняет ... call <tool> '<json>' в shell

сервер не нужен или контекст дорог: 29 143 символа описаний инструментов не висят в каждом запросе

У обоих рядом лежит aql.md: поля тест-кейсов, результатов и запусков, операторы, даты, подполя. Английский, как и docstring инструментов.

npx -y skills add gribanoveu/mcp-testops --skill testops-mcp    # Skills CLI, в проект; -g — глобально
npx -y @gribanoveu/mcp-testops skill                            # из npm-пакета: testops-mcp
npx -y @gribanoveu/mcp-testops skill testops-cli -g              # CLI-вариант, в ~/.agents/skills
npx -y @gribanoveu/mcp-testops skill --all -g                    # оба

Скиллы едут внутри npm-пакета и лежат в каталоге Kibo рядом с записью MCP-сервера.

Без MCP: вызов из терминала

Сервер умеет работать одноразовой CLI — тот же код, тот же ответ, но без регистрации в клиенте:

npx -y @gribanoveu/mcp-testops call --list                                  # 30 инструментов
npx -y @gribanoveu/mcp-testops call --schema list_launches                  # схема аргументов
npx -y @gribanoveu/mcp-testops call list_projects '{"search": "wowtax"}'   # вызов

То же из Python-пакета: python -m mcp_testops call …. stdout — только ответ инструмента, логи идут в stderr. Код возврата 0 — инструмент ответил (даже если внутри {"ok": false, …}), 1 — ошибка протокола или аргументы не JSON. Если токена нет, команда печатает, какие переменные выставить. Для агента такой режим описан в скилле testops-cli.

Разработка

pip install -e ".[test]"
pytest -q          # 69 тестов: 68 passed, 1 skipped — контрактный, пока нет снимка спеки

Сборка бинарников, scripts/refresh_spec.sh и публикация (trusted publishing по OIDC, staged-версии в npm) — docs/09-development.md.

Available Tools

30 tools
add_test_case_stepA

Add a step to a test case scenario and return {createdStepId, steps_count}.

Exactly one of body (step text), attachment_id, shared_step_id is required. parent_step_id makes the new step a child of an existing step.

Inputs: test_case_id (required), body, attachment_id, parent_step_id, +1 more. Returns: result

add_test_resultA

Record a test result in a launch and return {ok, id, name, launchId}.

status must be one of failed, broken, passed, skipped, unknown, in_progress; any other value fails here, without a request. duration, start and stop are milliseconds (int64). test_case_id is required: it is the case the result belongs to, and the stand answers 500 for a manual result without one. JSON-string arguments: tags_json [{"id": 3, "name": "smoke"}] links_json [{"name": "JIRA", "type": "issue", "url": "https://jira/browse/ABC-1"}] custom_fields_json [{"customField": {"id": 12, "name": "Severity"}, "name": "high"}]

Inputs: name (required), status (required), launch_id (required), test_case_id (required), +12 more. Returns: result

close_launchB

Close a launch; the API answers 204. Results are read-only afterwards.

Inputs: launch_id (required). Returns: result

create_launchB

Create a launch and return {ok, id, name, projectId}.

tags_json: [{"id": 3, "name": "regress"}]; links_json: [{"name": "JIRA", "type": "issue", "url": "https://jira/browse/ABC-1"}].

Inputs: name (required), autoclose, tags_json, links_json, +2 more. Returns: result

create_test_caseA

Create a test case and return {ok, id, name, projectId}.

name is required, project_id defaults to TESTOPS_PROJECT_ID. JSON-string arguments: tags_json [{"id": 3, "name": "smoke"}] (the API requires the tag id) links_json [{"name": "JIRA", "type": "issue", "url": "https://jira/browse/ABC-1"}] members_json [{"id": 7, "name": "ivanov", "role": {"id": 1, "name": "MEMBER"}}] (role is an object RoleDto, not a plain string) custom_fields_json [{"customField": {"id": 12, "name": "Severity"}, "name": "high"}] (the API requires both id and name of the custom field) scenario_json {"steps": [{"type": "body", "body": "Open the form"}]} Ids for status_id, workflow_id and test_layer_id come from list_statuses and list_reference. More steps are added with add_test_case_step.

Inputs: name (required), automated, status_id, tags_json, +11 more. Returns: result

create_test_planB

Create a test plan and return {ok, id, name, projectId}.

base_rql is the AQL selection of the plan (e.g. tag.name = "smoke"). tree_selection_json: {"leafsInclude": [1001], "inverted": false} - the plan takes TreeSelectionDto, which has no filterId (that one belongs to running cases).

Inputs: name (required), tree_id, base_rql, project_id, +1 more. Returns: result

delete_launchB

Delete a launch together with all its results; the API answers 204.

Inputs: launch_id (required). Returns: result

delete_test_caseA

Delete a test case; the API answers 202 and moves it to the trash.

Without force a case that has run results may stay; force=true deletes it anyway, together with its scenario. Restoring a case is not exposed as a tool.

Inputs: test_case_id (required), force. Returns: result

delete_test_planA

Delete a test plan; the API answers 204. The test cases themselves stay.

Inputs: test_plan_id (required). Returns: result

get_launchC

Get one launch: id, name, projectId, closed, createdDate, autoclose, releaseId, tags, links.

Inputs: launch_id (required). Returns: result

get_launch_statisticA

Status counts of a launch as {passed: n, failed: n, broken: n, skipped: n, ...}.

Cheaper than listing the results: one request instead of paging through them.

Inputs: launch_id (required). Returns: result

get_projectC

Get one project by id: id, name, abbr, isPublic, isVersioned, launchCount, automationPercent.

Inputs: project_id (required). Returns: result

get_test_caseA

Get one test case by id: texts, status, workflow, testLayer, tags, links, flags.

Flags are automated, flaky, deleted and duration. The answer does NOT contain the scenario/steps (TestCaseDto has none) and says so with "steps_not_included": true - read them with get_test_case_steps.

Inputs: test_case_id (required). Returns: result

get_test_case_historyA

Which launches ran a test case, and with what result.

Answers "where was this case run": each row is {testResultId, launchId, launchName, status, start, stop, duration}. launch_id narrows to one launch, search narrows by result text. project_id defaults to TESTOPS_PROJECT_ID. The row of this endpoint carries no message and no testedBy - for those and the rest of the result, call get_test_result(testResultId).

Inputs: test_case_id (required), page, size, sort, +3 more. Returns: result

get_test_case_stepsA

Read the scenario (steps) of a test case.

as_tree=true (default) returns nested steps: {id, body, expectedResult, attachmentId, sharedStepId, children}. as_tree=false returns the raw scenarioSteps map by id. A case without a scenario answers "steps": []. A shared step appears as a node with sharedStepId plus a "sharedStep" object: {id, name, steps} with its own steps resolved. Attachment contents are not inlined either - only attachmentId.

Inputs: test_case_id (required), as_tree. Returns: result

get_test_planC

Get one test plan: id, name, projectId, baseRql, testCasesCount, treeSelection.

Inputs: test_plan_id (required). Returns: result

get_test_resultA

Get one test result: status, duration, message, trace and the text fields.

hidden marks a retry or a result hidden by a user; parameters holds the values of a parameterized run. The *Html duplicates are dropped. For the small table of a whole launch use list_test_results or get_launch_statistic.

Inputs: test_result_id (required). Returns: result

list_launchesA

List launches of a project: id, name, closed, createdDate, statistic.

statistic holds status counts as the API returns them, e.g. {passed, failed, broken, skipped, unknown} or StatisticDto with inProgress, pending and total; it is absent when the launch shape carries none. The API answers with two different launch shapes; both are read into this summary.

search narrows by launch name: it becomes the launch AQL name ~= "" on /api/launch/__search. rql takes a launch AQL query instead (name ~= "release", tag = "smoke", job = "jenkins_master", closed = true, ev["OS"] = "Linux", createdDate > 1672531200000); rql wins over search. A plain search= on the launch list is ignored by the stand and answers 400 on dates, so filtering goes through AQL. project_id defaults to TESTOPS_PROJECT_ID; sort defaults to "created_date,DESC".

Inputs: rql, page, size, sort, +3 more. Returns: result

list_projectsA

List TestOps projects, ordered by name.

search: substring of the project name, filtered by the server (the parameter is query there; its own search= is ignored and answers 400 on non-ASCII names). favorite: only starred projects. page starts at 0, size is capped at 100. Returns {content, totalElements, totalPages, number} with id, name, abbr, isPublic, isVersioned, launchCount, automationPercent per project.

Inputs: page, size, search, favorite. Returns: result

list_referenceB

List a reference dictionary by kind: workflow, testlayer, custom_field or tag.

Returns id and name of every entry - they are what create_test_case wants in workflow_id, test_layer_id and custom_fields_json. custom_field is project scoped (project_id defaults to TESTOPS_PROJECT_ID) and takes query; each custom field also carries required and singleSelect, which is what decides whether a value must be given and whether it is one of a list. tag is filtered and paged on the server: the full dictionary is hundreds of thousands of entries, so pass query (a piece of the tag name) to get the ones you need.

Inputs: kind (required), page, size, query, +1 more. Returns: result

list_statusesA

List test statuses (id, name, color) - they give status_id for create_test_case.

workflow_id narrows the answer to one workflow. The endpoint takes no project id: statuses are defined by workflows, not by projects.

Inputs: page, size, sort, workflow_id. Returns: result

list_test_casesA

List test cases of a project as rows: id, name, status, automated.

A row carries only what the stand puts there - on a 2026 stand that is id, name, status, automated; testLayer and flaky appear when the row has them. Rows carry no description and no steps: read one case with get_test_case and its steps with get_test_case_steps. Deleted cases are not listed; search_test_cases(deleted=true) shows the bin. project_id defaults to TESTOPS_PROJECT_ID. sort: "property,ASC|DESC", e.g. "createdDate,DESC"; the stand takes one field only.

Inputs: page, size, sort, project_id. Returns: result

list_test_plansA

List test plans of a project: id, name, projectId, baseRql, testCasesCount.

project_id defaults to TESTOPS_PROJECT_ID. search filters the returned page by name on the client: the API has no text filter for plans - its own search= answers 400 on most strings and never narrows a list - so totalElements stays the project-wide count and content holds the matches of this page.

Inputs: page, size, search, tree_id, +1 more. Returns: result

list_test_resultsB

List results of a launch: id, name, testCaseId, status, duration, message, trace, start, stop.

status is one of failed, broken, passed, skipped, unknown, in_progress. message and trace are the failure text and the stack, when the run produced them - so a failed result is readable without a second call. hidden marks a result that is a retry or was hidden by a user; the API keeps those in the launch, so check the flag before counting. parameters carries the values of a parameterized run, empty otherwise - it is what tells two rows with the same name apart.

Inputs: launch_id (required), page, size, sort. Returns: result

reopen_launchB

Reopen a closed launch so results can be added again; the API answers 204.

Inputs: launch_id (required). Returns: result

run_test_casesA

Create a launch with one manual result per selected test case.

Select the cases with one of: ids (comma separated or JSON array of tree leaf ids, becomes selection.leafsInclude), leafs_include (explicit JSON array) or filter_id (saved filter); ids and leafs_include are mutually exclusive. The API field is leafsInclude: there is no leafIds and no rql in the selection. assignees: comma separated user logins; tags_json: [{"id": 3, "name": "regress"}]. Returns {ok, launchId, name, projectId}.

Inputs: launch_name (required), ids, assignees, filter_id, +4 more. Returns: result

search_test_casesA

Search test cases with AQL (the API calls it rql) and return full cases.

Give either rql or name. name becomes the AQL query name ~= "" on the server (substring match), nothing is filtered client-side.

Test-case AQL, as the stand accepts it (docs.qameta.io/reference/aql): name ~= "login" (substring), name = "Login smoke" (exact), name != "x" tag = "smoke", tag in ["smoke", "regress"], not tag = "smoke" status = "Active", workflow = "Default Manual", layer = "API" automation = true, flaky = false, muted = true cf["Severity"] = "high", cfv in ["high"], role["Owner"] = "user1" id >= 100, createdDate > 1672531200000 (dates are epoch milliseconds, unquoted) conditions join with and / or, group with parentheses, negate with not

Field names are not the DTO's: automation (not automated), layer (not testLayer), tag = "smoke" (not tag.name = "smoke"). Run validate_aql first when unsure. Returns {content: [case fields], rql, totalElements, totalPages, number}.

Inputs: rql, name, page, size, +3 more. Returns: result

update_test_caseA

Update fields of a test case; only the arguments you pass are sent.

An empty string means "leave the field alone" unless clear=true, where an empty string clears the field. JSON-string arguments are the same as in create_test_case.

Inputs: test_case_id (required), name, clear, duration, +13 more. Returns: result

update_test_planA

Update fields of a test plan; only the arguments you pass are sent.

An empty string means "leave the field alone" unless clear=true, where an empty string clears the field. tree_selection_json: {"leafsInclude": [1001], "inverted": false}.

Inputs: test_plan_id (required), name, clear, tree_id, +2 more. Returns: result

validate_aqlA

Check an AQL query (the API calls it rql) before running search_test_cases.

Returns {ok, valid, count}: count is how many test cases the query selects, so a typo is caught before a real search. project_id defaults to TESTOPS_PROJECT_ID; deleted=true counts removed cases too. rql is required.

Inputs: rql, deleted, project_id. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 30 tools

    Disambiguation4/5

    Most tools target a distinct resource+action, and the descriptions actively disambiguate the tricky pairs (list_test_cases vs search_test_cases, get_test_case vs get_test_case_steps, list_test_results vs get_test_result vs get_launch_statistic). The main residual overlap is launch/result creation: run_test_cases, create_launch, and add_test_result all produce results-bearing launches, which an agent could plausibly confuse despite the explanations.

    Naming Consistency5/5

    Every tool follows a predictable verb_noun snake_case pattern (list_*, get_*, create_*, update_*, delete_*, add_*, search_*, close_/reopen_launch, run_test_cases, validate_aql). Resource nouns are used consistently (test_case, launch, test_result, test_plan, project) and the lifecycle verbs map cleanly onto the CRUD family.

    Tool Count3/5

    30 tools is on the heavy side and reflects a broad domain (cases, steps, launches, results, plans, projects, references, AQL validation), but several are thin one-liners (get_project, get_launch, close_launch, reopen_launch) that could have been folded into a generic get/update. The surface feels larger than strictly necessary for the apparent scope.

    Completeness3/5

    Test plans have full CRUD, but the lifecycle is uneven elsewhere: test cases support create/read/update/delete yet steps are add-only (no update/delete step) and restore-from-trash is explicitly not exposed; launches lack update; results are add/read-only with no update or delete. Core workflows are workable, but these gaps will cause dead ends for agents doing maintenance tasks.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP clients to query projects, fetch findings, trigger analysis, upload CycloneDX BOMs, and check async token status against an OWASP Dependency-Track instance via stdio.
      9
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to interact with the Crewmeister API over local stdio, covering operations for members, teams, time tracking, salary exports, and related platform resources.
      Apache 2.0
    • A
      license
      B
      quality
      C
      maintenance
      Enables external agents to manage an ARTEX instance over its Web API via stdio, supporting authentication, route discovery and invocation, file transfers, SSE event reading, and optional isolated Chromium UI automation.
      10
      AGPL 3.0