mcp-test-harness-pydantic-ai
Pydantic AI agents testing helpers for MCP Test Harness.
Author: Vaquar Khan -- https://github.com/vaquarkhan
Install
pip install mcp-test-harness-pydantic-ai
This automatically installs mcp-test-harness as a dependency.
Usage
from mcp_test_harness_pydantic_ai import assert_pydantic_ai_tool, mcp_tools_to_pydantic_ai_functions, create_pydantic_ai_test_config
async def test_tool(mcp_server):
await assert_pydantic_ai_tool(mcp_server, "my_tool", {}, expected_text="ok")
def test_schema_bridge(mcp_tools):
# mcp_tools from list_tools — convert for Pydantic AI SDKs
return mcp_tools_to_pydantic_ai_functions(mcp_tools)
cfg = create_pydantic_ai_test_config("python server.py", timeout=45)
Helpers
- Tool call assertion with optional text check
- MCP tool → Pydantic AI schema converter
mcp-test.yaml-shaped config builder
License
Non-commercial use only with mandatory attribution. See LICENSE.
Metadata
Release files for mcp-test-harness-pydantic-ai 5.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_test_harness_pydantic_ai-5.3.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_test_harness_pydantic_ai-5.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / mcp_test_harness_pydantic_ai-5.3.0.tar.gz
| Download URL | mcp_test_harness_pydantic_ai-5.3.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b737bbdac70274ea56bebc954cc99a55c29e6762ba2a8d3e1257464d35ea56f0
|
|
BLAKE2b-256 checksum How to use checksums |
a24b4ac564b82ce6910599238e6bea03354653e919cd397239c1aea3370fa4c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / mcp_test_harness_pydantic_ai-5.3.0-py3-none-any.whl
| Download URL | mcp_test_harness_pydantic_ai-5.3.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
895913d1a0888e531f650482d6c6147f30d1cd58a5b9d8cdd94889a69ef03767
|
|
BLAKE2b-256 checksum How to use checksums |
e586b22f1860357412c838346082bc9c0095cd0f829c5cabb7f6264827b65b68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency log