Skip to main content

Automated testing for MCP servers

Project description

mcptest

Automated testing for MCP servers. Like pytest, but for your tools.

PyPI License: MIT CI

Install

pip install mcptest-py

Quick start

# mcptest.yml
server:
  command: python my_server.py

tests:
  - name: "search works"
    tool: search_files
    input: { query: "hello" }
    assert:
      - status: success
      - result.length: "> 0"
$ mcptest run
✓ search works    search_files    45ms    2/2
1 passed · 45ms

Commands

mcptest run      # execute YAML test suite
mcptest audit    # auto-discover tools and check schema quality
mcptest check    # server health check (A–F grade)
mcptest init     # scaffold mcptest.yml from server's tool schemas

Full docs →

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

mcptest_py-0.1.0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

mcptest_py-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file mcptest_py-0.1.0.tar.gz.

File metadata

  • Download URL: mcptest_py-0.1.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mcptest_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91e25651ed0362f4ca65881fcaf09587d5ca2975c4db0bdda9eb3077d653be9c
MD5 68e527715b5afeafda6dc9b8d3dc3847
BLAKE2b-256 adeb1b612b6c1b3359b733b984d1ee501ed18515f51361f0aa31efa0ce29d5ad

See more details on using hashes here.

File details

Details for the file mcptest_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcptest_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mcptest_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 484e643adfa249d2a045c9a98e980ab394d9b828e2ee6b02879855094a2ff102
MD5 e54d5f0f0037fb152ed0438014f5580e
BLAKE2b-256 57e1f02b6d6a5227ba3b32606e52753b4fc44ba1404667745b150c7064890ab2

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