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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_test_harness_fastmcp-0.1.0.tar.gz.
File metadata
- Download URL: mcp_test_harness_fastmcp-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5027a42e45e74f149e9517b2650f0db45afcfdaac5b0c74d364df3cf758abe5
|
|
| MD5 |
d4d6825242defb7e4bfdaa3201f92174
|
|
| BLAKE2b-256 |
4463b20f55807a20a211c7bb1a673450b9ff01879d70b9a2d776d163ed31723f
|
Provenance
The following attestation bundles were made for mcp_test_harness_fastmcp-0.1.0.tar.gz:
Publisher:
publish-packages.yml on vaquarkhan/mcp-test-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_test_harness_fastmcp-0.1.0.tar.gz -
Subject digest:
e5027a42e45e74f149e9517b2650f0db45afcfdaac5b0c74d364df3cf758abe5 - Sigstore transparency entry: 1288737719
- Sigstore integration time:
-
Permalink:
vaquarkhan/mcp-test-harness@788e1826b84c6ed97264cb654e70de5298b8cea3 -
Branch / Tag:
refs/tags/pkg-mcp-test-harness-fastmcp - Owner: https://github.com/vaquarkhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@788e1826b84c6ed97264cb654e70de5298b8cea3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_test_harness_fastmcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_test_harness_fastmcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99d46136f9efb7e6da6f28c0580d69b305007cfe03d6161270034335d2dc3b8b
|
|
| MD5 |
7560c819e71569c8649b739c2d8c3b74
|
|
| BLAKE2b-256 |
69e4a7969dfc4c552a1356a39ba1221753370d7df77cc1a37ca56956b063c0ec
|
Provenance
The following attestation bundles were made for mcp_test_harness_fastmcp-0.1.0-py3-none-any.whl:
Publisher:
publish-packages.yml on vaquarkhan/mcp-test-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_test_harness_fastmcp-0.1.0-py3-none-any.whl -
Subject digest:
99d46136f9efb7e6da6f28c0580d69b305007cfe03d6161270034335d2dc3b8b - Sigstore transparency entry: 1288737815
- Sigstore integration time:
-
Permalink:
vaquarkhan/mcp-test-harness@788e1826b84c6ed97264cb654e70de5298b8cea3 -
Branch / Tag:
refs/tags/pkg-mcp-test-harness-fastmcp - Owner: https://github.com/vaquarkhan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@788e1826b84c6ed97264cb654e70de5298b8cea3 -
Trigger Event:
push
-
Statement type: