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.6.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.6-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_test_harness_fastmcp-3.0.6.tar.gz
Algorithm Hash digest
SHA256 0ef9c72bafe10985e8aba43dcb8f40ae739fb57e590cd4c581a303dd5433b47f
MD5 98365e025ad92e33edd9a6261fe2302f
BLAKE2b-256 23800b4d06af224e052bfdf661339040b7e8dbc51b23ed986266150cce12c98a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_harness_fastmcp-3.0.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_test_harness_fastmcp-3.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 888e0742da119e4fedc74c27e97f2970b1ca59407f62c379e7d33f3a45e16141
MD5 34d1352895c84f1fdbb253f7f01b4826
BLAKE2b-256 e777a9e950b1d3fe4a070c5fe813086bb01a19bc361e70fe5c7141e83ef25e5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_harness_fastmcp-3.0.6-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