testy-mcp-server
by Lenni007007
README.md
# testy
QA skills and an MCP server for a self-hosted [Testy](https://testy.example) test-management
instance. Distributed as a plugin from the `mlg-qa` marketplace.
**Русская версия: [README.ru.md](README.ru.md).**
## Install with an agent
Paste this into OMP, Claude Code, or any host with a marketplace:
```text
Install the `testy` plugin from the `Lenni007007/testy-plugin` marketplace (marketplace name `mlg-qa`),
then run `testy-mcp-server configure` (the launcher from the installed plugin cache) and verify with
`testy-mcp-server doctor --live`. If a tool answers `configuration_error`, relay its `help` field to me.
```
<details>
<summary>The same by hand</summary>
```bash
# OMP
omp plugin marketplace add Lenni007007/testy-plugin
omp plugin marketplace update mlg-qa
omp plugin install testy@mlg-qa
# Claude Code
/plugin marketplace add Lenni007007/testy-plugin
/plugin install testy@mlg-qa
# Codex
codex plugin marketplace add Lenni007007/testy-plugin
# Gemini CLI
gemini extensions install https://github.com/Lenni007007/testy-plugin
```
</details>
## Configure
The server starts without credentials: the handshake succeeds, `testy_config` answers,
and every call that needs HTTP returns `configuration_error` with a ready-to-run
`help`. Nothing else breaks.
Claude Code asks for values itself (`userConfig` in `.claude-plugin/plugin.json`,
secrets in its credential store). Gemini CLI fills declared `settings`. For every other
host, write the per-user settings file:
```bash
P=$(ls -d ~/.omp/plugins/cache/plugins/mlg-qa___testy___* | sort -V | tail -1)
"$P/bin/testy-mcp-server" configure --url https://testy.example --project-id 13 --username <login>
"$P/bin/testy-mcp-server" doctor --live # exit 0 and authenticated: true
```
The password is prompted without echo, taken from `TESTY_PASSWORD`, or piped from a
secret manager (`--password-stdin`/`--token-stdin`). The file is
`~/.config/testy/plugin.env`, mode `0600`, and is refused inside a git repository.
Secrets never go into argv.
Settings resolution: `TESTY_ENV_FILE` (replaces everything) → the home file → the nearest
`.env` from the working directory upwards → `.env` next to the package. Process
environment overrides any file.
## Skills
| Skill | Purpose |
|---|---|
| `testy-autotest-metadata` | Bind one case to its autotest: `auto_name` plus project-scoped lifecycle labels resolved against the full label dictionary, and on explicit request `manual_unreviewed` → `reviewed`. One verified write via `testy_autotest_metadata_sync` |
| `testy-manual-review` | Review manual plan-test records or testcases: completeness, design techniques, duplicates, analogues, an interactive list of fixes. An external rules directory supplies project calibration without a release. Case labels are reported as-is; the codebase is not touched |
| `testy-case-search` | Find cases by mode (`manual`/`auto`) or by a project label; optional code-binding cross-check through `scripts/case_bindings.py` when the marker name is confirmed |
| `testy-case-contract` | The canonical Testy case contract: payload fields and their meaning, lifecycle labels, canonical links, the offline `testy_case_snapshot` envelope. Normative text in `references/case_contract.md` |
| `testy-review-finish` | Close a review: `manual_unreviewed` → `reviewed` through `testy_case_review_finish`, the plan-test status, and an optional plan-test comment. Asks the user on unrelated labels or several plans |
| `testy-create-skill` | Plugin-maintainer tooling: turn one request into one shipped capability, reusing the catalog or extending the single `api` server. Hidden from automatic invocation |
| `testy-plugin-analysis` | Plugin-maintainer tooling: analyse one agent session locally — inventory, normalization, measurements, evidence-backed report. Reads and writes nothing on its own |
Consumer skills need only the plugin. Maintainer skills operate on this checkout and
stay inside it. General engineering guides and consumer-specific procedures are not
distributed here.
Skills are also invoked directly by name: `$testy-autotest-metadata`,
`$testy-manual-review`, `$testy-case-search`, `$testy-case-contract`,
`$testy-review-finish`, `$testy-create-skill`, `$testy-plugin-analysis`.
## MCP server
`testy-mcp-server` is a stdio server exposing 137 tools over the Testy REST API: cases,
plans and their membership, results, comments, statuses, suites, labels, parameters,
users, attachments, review bundles, and autotest metadata. Lists support server-side and
local paging; writes are read-modify-write with a fresh read and verification.
Destructive operations require an `expected_version` and a confirmation equal to the
resource id.
Statuses come from the project status dictionary: writes accept a name or a number, an
unknown name fails with the available list. Lifecycle labels are resolved semantically
from the full project dictionary — zero matches is `not_found`, several are `ambiguous`,
never a first match.
Every response is the `{ok, data, meta}` envelope; read `structuredContent` of the MCP
result. The Python client `testy_mcp.TestyMcpClient` returns `data` alone.
`TESTY_MCP_PROFILE=core` narrows the catalog to the 62 tools the consumer skills need;
everything else answers `unsupported` before reaching Testy. The CLI flag `--profile`
wins over the variable.
## Layout
| Path | What it is |
|---|---|
| `plugin.json`, `mcp.json` | portable Agent Plugins 1.0.0 package |
| `.claude-plugin/plugin.json`, `.mcp.json` | Claude Code plugin and MCP manifest |
| `.claude-plugin/marketplace.json` | the `mlg-qa` marketplace catalog |
| `gemini-extension.json` | Gemini CLI extension |
| `bin/testy-mcp-server` | launcher that resolves the package from its own directory |
| `skills/` | shipped skills |
| `testy-mcp/` | the `testy-mcp` Python package: server, service, transport, client |
| `scripts/` | release gate and catalog smoke |
| `.github/workflows/ci.yml` | CI on `main` and pull requests |
The repository root **is** the plugin directory, and `testy-mcp/` stays at the root:
both the host cache and a direct package install pin that path.
## Verify
```bash
/mcp # shows testy:api
testy_capabilities # answers without credentials
testy_config # settings_file, setup_command, auth, missing
```
```bash
uv run --project testy-mcp --extra dev pytest testy-mcp/tests -q
uv run --project testy-mcp --extra dev python -m pytest skills/testy-create-skill/tests -q
uv run --project testy-mcp python scripts/release_check.py
uv run --project testy-mcp python scripts/catalog_smoke.py
```
CI (`.github/workflows/ci.yml`) runs the same four checks on push to `main` and on pull
requests.
Live surface check (needs reachable Testy):
```bash
uv run --project testy-mcp python skills/testy-create-skill/scripts/mcp_smoke.py --repo-root .
```
## Develop
A new shipped skill is created only through the repository gate:
```bash
omp -p --auto-approve --cwd . '/skill:testy-create-skill <capability description>'
```
The gate is `skills/testy-create-skill/scripts/skill_gate.py` (phases `draft` and
`release`); the normative rules are in
`skills/testy-create-skill/references/skill_authoring_standard.md`.
Current release: plugin version — `0.2.78`, package version — `0.2.46`.
Release: raise the plugin patch (and the package patch plus `uv.lock` for any change
under `testy-mcp/` outside tests), add the `CHANGELOG.md` entry, pass
`scripts/release_check.py`, commit, tag `v<plugin version>`. A published tag is never
moved or reused.
```bash
omp plugin marketplace update mlg-qa && omp plugin upgrade testy@mlg-qa
```
## License
[MIT](LICENSE) © Gregory Shayahmetov.
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessOutdated data