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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_test_harness_fastmcp-2.0.2.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-2.0.2.tar.gz
Algorithm Hash digest
SHA256 b29b3ab3e7302e40fb8bd20ef7be3c43ff4a2015f4fa0ee30c2b11c0d73ad0ac
MD5 b2281c6ccd796b3ea67478535f42b83c
BLAKE2b-256 bc05f75b9bafaa73f7c548ac8dbb71ce6651e256264d7d7296a51d030126ad0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_test_harness_fastmcp-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5404b6c0cc0279e6b453e604633ca9127a0dae8b70420fe0e9291d0c833b600
MD5 927fb323e9bf6d50400b175af0f9f748
BLAKE2b-256 54e93e3fbc7d5ba9f90ee2ab50570e814e32bdf665422c858a336c8c579f50bc

See more details on using hashes here.

Provenance

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