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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_test_harness_fastmcp-3.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 7f13775f271160f29f04eec17a6726910dd455fe0f36c87f0f4268ca8024c929
MD5 9831cd39dfa4424eae1d7076dfe57679
BLAKE2b-256 eebf67e491130b210ef08ddd25d3bc3cefbddda50b724d48cc95ca39bb91ecee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_test_harness_fastmcp-3.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c69c08d31a8f38bd27eed23b327b9b32d782c34fd65c16bf452adf05402ff07
MD5 ea974ab045d03911430249ac61eb51de
BLAKE2b-256 434075ca1f0593a600a74e9b3827c2bc252df61a7658689c911185f8a5ba6786

See more details on using hashes here.

Provenance

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