Skip to main content

FastMCP server testing helpers for MCP Test Harness

Project description

mcp-test-harness-fastmcp

FastMCP server testing helpers for MCP Test Harness.

Author: Vaquar Khan -- https://github.com/vaquarkhan

Install

pip install mcp-test-harness-fastmcp

This automatically installs mcp-test-harness as a dependency.

Usage

from mcp_test_harness_fastmcp import assert_fastmcp_tool, assert_fastmcp_resource

async def test_echo(mcp_server):
    await assert_fastmcp_tool(mcp_server, "echo", {"message": "hi"}, expected_text="hi")

async def test_config(mcp_server):
    await assert_fastmcp_resource(mcp_server, "config://app", expected_text='{"debug": true}')

License

Non-commercial use only with mandatory attribution. See LICENSE.

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

mcp_test_harness_fastmcp-3.0.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

mcp_test_harness_fastmcp-3.0.8-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_test_harness_fastmcp-3.0.8.tar.gz.

File metadata

  • Download URL: mcp_test_harness_fastmcp-3.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for mcp_test_harness_fastmcp-3.0.8.tar.gz
Algorithm Hash digest
SHA256 1b47e5ff5c27bb44d6c25d851f6f8984d778eb59a54ef4a4f85d0d895c333100
MD5 3b3ae6bf72df6c47aa72468dfbe3ad7a
BLAKE2b-256 a24beca8457df0bb8732c5f34af04e292428cbe1212c15b39838495a4ad54518

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_harness_fastmcp-3.0.8.tar.gz:

Publisher: publish-packages.yml on vaquarkhan/mcp-test-harness

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

File details

Details for the file mcp_test_harness_fastmcp-3.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_test_harness_fastmcp-3.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d5cf61c7065330e807718c5126254475077455ba013eaa2206c9fe5d57dd47c6
MD5 aa1d8f1c04dedac2d6f56491bf96c5e4
BLAKE2b-256 fe7c6cb6dd85f0d8c1ba3e9d54e9f7f01c8601fbeb99f4a44f10686c36eee9f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_harness_fastmcp-3.0.8-py3-none-any.whl:

Publisher: publish-packages.yml on vaquarkhan/mcp-test-harness

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