Allure TestOps MCP Server
Project description
Allure TestOps MCP Server
Lucius is a specialized Model Context Protocol (MCP) server for Allure TestOps, built with FastMCP and Starlette.
🎯 Motivation
Allure TestOps is a powerful tool with a huge API. When you're using an AI agent to manage your tests, it can easily get lost in the details or fail because of a small technical mistake.
Lucius makes this easier by giving your AI tools that are simple to use and hard to break:
- Clear Tools: Every tool is designed for a specific task, like "finding a test case" or "updating a launch".
- Helpful Errors: If an AI makes a mistake, Lucius doesn't just return a code—it provides an "Agent Hint" that explains exactly what went wrong and how to fix it.
- Solid Foundation: We follow a clean "Thin Tool" structure, meaning the logic is consistent and easy for both humans and AI to follow.
🛠️ Supported Tools
| Tool Category | Description | All Tools |
|---|---|---|
| Test Case Mgmt | Full lifecycle for test documentation. | create_test_case, update_test_case, delete_test_case, delete_archived_test_cases, get_test_case_details, list_test_cases, get_test_case_custom_fields |
| Search & Discovery | Advanced search and project metadata discovery. | search_test_cases, get_custom_fields, list_integrations |
| Shared Steps | Create and manage reusable sequence sequences. | create_shared_step, list_shared_steps, update_shared_step, delete_shared_step, delete_archived_shared_steps, link_shared_step, unlink_shared_step |
| Test Layers | Manage test taxonomy and auto-mapping schemas. | list_test_layers, create_test_layer, update_test_layer, delete_test_layer, list_test_layer_schemas, create_test_layer_schema, update_test_layer_schema, delete_test_layer_schema |
| Test Hierarchy | Organize suites and assign tests in tree paths. | create_test_suite, list_test_suites, assign_test_cases_to_suite, delete_test_suite |
| Custom Fields | Project-level management of custom field values. | list_custom_field_values, create_custom_field_value, update_custom_field_value, delete_custom_field_value, delete_unused_custom_fields |
| Test Plans | Manage Test Plans and their content. | create_test_plan, update_test_plan, delete_test_plan, list_test_plans, manage_test_plan_content |
| Defect Mgmt | Track defects, linkage, and automation rules. | create_defect, get_defect, update_defect, delete_defect, list_defects, link_defect_to_test_case, list_defect_test_cases, create_defect_matcher, list_defect_matchers, update_defect_matcher, delete_defect_matcher |
🚀 Quick Start
- Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh - Setup Credentials: Create a
.envfile with the variables below. - Run Server:
uv run start
Basic .env for Quick Start
| Variable | Description | Example |
|---|---|---|
ALLURE_ENDPOINT |
Allure TestOps base URL | https://example.testops.cloud |
ALLURE_PROJECT_ID |
Default Allure project ID | 123 |
ALLURE_API_TOKEN |
Allure API token | <your_api_token> |
MCP_MODE |
MCP transport mode for Lucius runtime | stdio |
🔌 Claude Desktop Integration
The easiest way to use Lucius in Claude Desktop is via the .mcpb bundle:
- Download the latest
lucius-mcp.mcpbfrom Releases. - Open with Claude Desktop.
- Configure your Allure credentials in the UI.
💻 Claude Code Integration
To add Lucius to Claude Code, use the following command from within your project directory:
claude mcp add --transport stdio --scope project \
--env ALLURE_ENDPOINT=https://example.testops.cloud \
--env ALLURE_PROJECT_ID=123 \
--env ALLURE_API_TOKEN=<your_api_token> \
--env MCP_MODE=stdio \
testops-mcp -- uvx --from lucius-mcp --refresh start
Project-scoped text config example (.mcp.json):
{
"mcpServers": {
"testops-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"lucius-mcp",
"--refresh",
"start"
],
"env": {
"ALLURE_ENDPOINT": "https://example.testops.cloud",
"ALLURE_PROJECT_ID": "123",
"ALLURE_API_TOKEN": "<your_api_token>",
"MCP_MODE": "stdio"
}
}
}
}
🧠 Codex Integration
To add Lucius to Codex (CLI or IDE extension), use:
codex mcp add testops-mcp \
--env ALLURE_ENDPOINT=https://example.testops.cloud \
--env ALLURE_PROJECT_ID=123 \
--env ALLURE_API_TOKEN=<your_api_token> \
--env MCP_MODE=stdio \
-- uvx --from lucius-mcp --refresh start
Text config example (~/.codex/config.toml or project .codex/config.toml):
[mcp_servers.testops-mcp]
command = "uvx"
args = ["--from", "lucius-mcp", "--refresh", "start"]
[mcp_servers.testops-mcp.env]
ALLURE_ENDPOINT = "https://example.testops.cloud"
ALLURE_PROJECT_ID = "123"
ALLURE_API_TOKEN = "<your_api_token>"
MCP_MODE = "stdio"
For detailed setup, including Claude Desktop (MCPB) integration, see Setup Guide.
💻 Command-Line Interface (CLI)
Lucius also provides a universal CLI entry point for direct tool execution from the command line:
# Download pre-built binary for your platform
wget https://github.com/ivanostanin/lucius-mcp/releases/latest/download/lucius-linux-x86_64
chmod +x lucius-linux-x86_64
./lucius-linux-x86_64 --help
# List available actions for an entity
./lucius-linux-x86_64 test_case
# Execute an action
./lucius-linux-x86_64 test_case get --args '{"test_case_id": 1234}'
# Show help for a specific entity/action
./lucius-linux-x86_64 test_case get --help
CLI Features:
- 🎯 Type-safe entity/action invocation with validation
- 📊 Multiple output formats (JSON, table, csv, plain)
- 🔍 Per-action help with parameters and examples
- 🛡️ Clean error messages with guidance
- 📦 Standalone binaries for Linux, macOS, and Windows
For local CLI binary builds with Nuitka, use Python 3.13 (the build scripts and CI workflow enforce this).
For full CLI documentation and installation instructions, see CLI Guide.
📡 Telemetry
Lucius collects privacy-preserving usage telemetry to improve tool quality. Telemetry is enabled by default and sends metadata
to https://stats.ostanin.me, an endpoint operated by the project owner (no third party has access to this endpoint).
If this is acceptable in your environment, staying opted in helps improve Lucius over time. If you want to opt out, set
TELEMETRY_ENABLED=false in your environment.
No API tokens, test content, or tool arguments are sent.
See Telemetry & Privacy for the full data dictionary and telemetry behavior details.
Shell Completions
Pre-generated shell completions are available in deployment/shell-completions/
for bash, zsh, fish, and PowerShell. They are generated from the current
entity/action route matrix:
python3 deployment/scripts/generate_completions.py
Load one in your shell profile, for example:
source deployment/shell-completions/lucius.bash
📂 Documentation
Full documentation is available in the docs/ folder:
- Architecture & Design
- Tool Reference
- Configuration & Setup
- Telemetry & Privacy
- Development Guide
- AI Agent Protocol
🤝 Contributing
Contributions are welcome! Please see the Contribution Guidelines and the Development Guide for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lucius_mcp-0.8.3.tar.gz.
File metadata
- Download URL: lucius_mcp-0.8.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c912f3391a7a8d5d68c724cafd31ae3e85496123c0e647e58911107bab4355b3
|
|
| MD5 |
7927814a8d080c1c10b2ca3737238b3c
|
|
| BLAKE2b-256 |
f8f1bb018245212a9187a505f3a3798ecd6857dbc5b33fa219aa204ad93ee062
|
Provenance
The following attestation bundles were made for lucius_mcp-0.8.3.tar.gz:
Publisher:
release.yml on ivanostanin/lucius-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lucius_mcp-0.8.3.tar.gz -
Subject digest:
c912f3391a7a8d5d68c724cafd31ae3e85496123c0e647e58911107bab4355b3 - Sigstore transparency entry: 1342793589
- Sigstore integration time:
-
Permalink:
ivanostanin/lucius-mcp@57eec1c994e3281428cd21b9c6bae9cd8dcb8e22 -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/ivanostanin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57eec1c994e3281428cd21b9c6bae9cd8dcb8e22 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lucius_mcp-0.8.3-py3-none-any.whl.
File metadata
- Download URL: lucius_mcp-0.8.3-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19459c7088df77363feea2c6b0b5555da31a87b096e98ffbc91f9c33c96d1566
|
|
| MD5 |
4e0036b8d768f1934ed56328a4854244
|
|
| BLAKE2b-256 |
d87165521b0f37b5e2c9e1856d3eba5652f157e1d5961521b314f3f2c24667f4
|
Provenance
The following attestation bundles were made for lucius_mcp-0.8.3-py3-none-any.whl:
Publisher:
release.yml on ivanostanin/lucius-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lucius_mcp-0.8.3-py3-none-any.whl -
Subject digest:
19459c7088df77363feea2c6b0b5555da31a87b096e98ffbc91f9c33c96d1566 - Sigstore transparency entry: 1342793615
- Sigstore integration time:
-
Permalink:
ivanostanin/lucius-mcp@57eec1c994e3281428cd21b9c6bae9cd8dcb8e22 -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/ivanostanin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@57eec1c994e3281428cd21b9c6bae9cd8dcb8e22 -
Trigger Event:
push
-
Statement type: