Skip to main content

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

See the full reference in Tool Reference.

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, get_test_case_custom_fields
Search & Discovery Advanced search and project metadata discovery. list_test_cases, search_test_cases, get_custom_fields, list_integrations
Shared Steps Create and manage reusable step 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
Launch Management Manage launches, manual execution, reruns, and attachments. create_launch, list_launches, get_launch, list_launch_test_results, rerun_test_results_manually, start_manual_test_session, submit_manual_test_results, add_test_result_attachment, add_test_step_attachment
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

  1. Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Setup Credentials: Create a .env file with the variables below, or save CLI auth with lucius auth.
  3. 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:

  1. Download the latest lucius-mcp.mcpb from Releases.
  2. Open with Claude Desktop.
  3. 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:

# List available actions for an entity
uv run lucius test_case

# Execute an action
uv run lucius test_case get --args '{"test_case_id": 1234}'

# Show help for a specific entity/action
uv run lucius test_case get --help

# Save reusable CLI auth
uv run lucius auth --url https://example.testops.cloud --token <your_api_token> --project 123
uv run lucius auth status
uv run lucius auth clear

CLI Features:

  • 🎯 Type-safe entity/action invocation with validation
  • 🔐 Optional persistent CLI auth with native per-user config storage
  • 📊 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).

CLI auth precedence is:

  1. Explicit tool args such as api_token or project_id
  2. Environment variables
  3. Saved CLI auth config from uv run lucius auth
  4. Defaults

Saved CLI auth uses native config locations:

  • Linux/Unix: $XDG_CONFIG_HOME/lucius/auth.json or ~/.config/lucius/auth.json
  • macOS: ~/Library/Application Support/lucius/auth.json unless XDG overrides are explicitly set
  • Windows: %LOCALAPPDATA%\lucius\auth.json

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.

📂 Documentation

Full documentation is available in the docs/ folder:

🤝 Contributing

Contributions are welcome! Please see the Contribution Guidelines and the Development Guide for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lucius_mcp-0.11.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lucius_mcp-0.11.0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file lucius_mcp-0.11.0.tar.gz.

File metadata

  • Download URL: lucius_mcp-0.11.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for lucius_mcp-0.11.0.tar.gz
Algorithm Hash digest
SHA256 20dd5197e386f1bedb2ca8501f93c2092f98ad21ac706e26638eb2fb8868f103
MD5 8d6cb17ac328041f29c492d4b43ca69e
BLAKE2b-256 3bc9e02f22764f78b27088028a6ffa874330a90961055958da9621576febc088

See more details on using hashes here.

Provenance

The following attestation bundles were made for lucius_mcp-0.11.0.tar.gz:

Publisher: release.yml on ivanostanin/lucius-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lucius_mcp-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: lucius_mcp-0.11.0-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

Hashes for lucius_mcp-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 726cd56a9c44010ce3d3a972914382c360b0a4cf6bcede8cfff4b4801a9b7f52
MD5 e6719867efed3e61508bd5aef5ce640f
BLAKE2b-256 71ca8e87da54c4a8ebb54c379d8c9e2e8d3eccf2f6c9083bf8149c0ac615a0e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lucius_mcp-0.11.0-py3-none-any.whl:

Publisher: release.yml on ivanostanin/lucius-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page