Skip to main content

Model Context Protocol server for TestIO Customer API integration

Project description

TestIO MCP Server

Query TestIO test data through AI tools - no UI required.

Python 3.12+ FastMCP


Quick Start

Get started in 3 steps:

1. Setup (One-time configuration)

uvx testio-mcp setup

Creates ~/.testio-mcp.env with your API credentials and preferences.

Reference docs are copied to ~/.testio-mcp/ including .env.example for all available options.

2. Sync Data

uvx testio-mcp sync

Loads your products, features, and tests into local cache (~30s-2min).

3. Start Server

uvx testio-mcp serve --transport http

Runs at http://127.0.0.1:8080 (keep terminal open).

Next: Configure your AI client → MCP_SETUP.md

Optional: Open http://127.0.0.1:8080/docs for interactive API explorer.


Access Methods

Method Endpoint Best For
MCP http://127.0.0.1:8080/mcp Claude, Cursor, AI assistants
REST http://127.0.0.1:8080/api/* Scripts, dashboards, integrations
Swagger http://127.0.0.1:8080/docs API exploration, testing

Example: Same Query, Two Ways

# Via AI (MCP)
"What's the status of test 109363?"

# Via REST
curl http://127.0.0.1:8080/api/tests/109363/summary

Tools (17)

Data Discovery

Tool Example Query
list_products "Show all mobile apps"
list_tests "List running tests for product 598"
list_features "What features does product 598 have?"
list_users "Who are our testers?"
list_bugs "Show critical bugs for test 109363"

Entity Summaries

Tool Example Query
get_test_summary "Status of test 109363"
get_product_summary "Overview of product 598"
get_feature_summary "Details on feature 1234"
get_user_summary "Show tester 5678's activity"
get_bug_summary "Details on bug 91011"

Analytics & Reports

Tool Example Query
get_product_quality_report "Quality report for product 598"
query_metrics "Bug counts by severity for product 598"
get_analytics_capabilities "What metrics can I query?"

See ANALYTICS.md for the full analytics guide with query patterns and examples.

Search & Sync

Tool Example Query
search "Find bugs mentioning login"
sync_data "Refresh data for product 598"

Diagnostics

Tool Example Query
get_server_diagnostics "Check server health"
get_problematic_tests "Which tests failed to sync?"

Prompts (2)

Interactive workflows for common tasks:

Prompt Use Case
analyze-product-quality Deep-dive quality analysis with artifacts
prep-meeting Generate meeting materials from analysis

Resources (2)

Knowledge bases accessible via testio:// URIs:

Resource Content
testio://knowledge/playbook CSM heuristics and templates
testio://knowledge/programmatic-access REST API discovery guide

CLI Reference

# Configuration
uvx testio-mcp setup              # Interactive setup
uvx testio-mcp --version          # Show version

# Server
uvx testio-mcp serve --transport http              # HTTP mode (multi-client)
uvx testio-mcp serve --transport http --port 9000  # Custom port
uvx testio-mcp                                     # stdio mode (single client)

# Sync
uvx testio-mcp sync --status      # Check sync status
uvx testio-mcp sync               # Manual sync
uvx testio-mcp sync --force       # Full refresh

Data Flow

┌─────────────────────────────────────────┐
│  AI Client (Claude, Cursor)             │
│  or REST Client (curl, scripts)         │
└─────────────┬───────────────────────────┘
              ↓
┌─────────────────────────────────────────┐
│  TestIO MCP Server                      │
│  localhost:8080                         │
└─────────────┬───────────────────────────┘
              ↓
┌─────────────────────────────────────────┐
│  Local SQLite Cache                     │
│  ~/.testio-mcp/cache.db                 │
│  (queries: ~10ms, auto-sync: 1h)        │
└─────────────┬───────────────────────────┘
              ↓ (read-through cache + sync)
┌─────────────────────────────────────────┐
│  TestIO Customer API                    │
│  https://api.test.io/customer/v2        │
└─────────────────────────────────────────┘

Caching: Background sync refreshes products, features, and discovers new tests every hour. Bug and test metadata use read-through caching—refreshed on-demand when queried if stale (>1 hour). Immutable tests (archived/cancelled) always serve from cache. See CLAUDE.md for details on test mutability and caching logic.


Configuration

Created by uvx testio-mcp setup at ~/.testio-mcp.env:

Variable Description
TESTIO_CUSTOMER_API_TOKEN Your API token
TESTIO_CUSTOMER_NAME Your subdomain
TESTIO_CUSTOMER_ID Customer ID (default: 1)
TESTIO_PRODUCT_IDS Filter to specific products
TESTIO_HTTP_PORT Server port (default: 8080)

Full options: see .env.example (repo root or ~/.testio-mcp/.env.example for uvx users).


Client Setup

See MCP_SETUP.md for connecting:

  • Claude Desktop
  • Claude Code (CLI)
  • Cursor
  • Gemini Code

Troubleshooting

# Server won't start?
curl http://127.0.0.1:8080/health

# Data seems stale?
uvx testio-mcp sync --status
uvx testio-mcp sync --force

# Token issues?
uvx testio-mcp setup  # Reconfigure

Documentation


License

Proprietary - See LICENSE for terms.

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

testio_mcp-0.3.0.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

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

testio_mcp-0.3.0-py3-none-any.whl (311.8 kB view details)

Uploaded Python 3

File details

Details for the file testio_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: testio_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for testio_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 eb49c4a10697828551cb4d406c984a88ad3fbd66b853e1862843ba2b468bbd2e
MD5 e701940e81bc33f13c64917ea1a7738d
BLAKE2b-256 fe9da1e8275ffc091699b49454463cd93249184f09fc8252a508b67a5163a19c

See more details on using hashes here.

File details

Details for the file testio_mcp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: testio_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 311.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for testio_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d367330f8676f587a594aaddda4a7e0bb6e990b49f9d60eae750b55fc07d30
MD5 ffa94b7619e2bc4bb18be8e8ab20a042
BLAKE2b-256 ec9f298597319623dfc81de6639a784f6afc03823c1daa3d53ac658aa76609e2

See more details on using hashes here.

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