Skip to main content

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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-test-harness-pydantic-ai 5.2.0
File Size Uploaded
mcp_test_harness_pydantic_ai-5.2.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-test-harness-pydantic-ai 5.2.0
File Interpreter ABI Platform
mcp_test_harness_pydantic_ai-5.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / mcp_test_harness_pydantic_ai-5.2.0.tar.gz

Download URL mcp_test_harness_pydantic_ai-5.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c699c2767fd347d15701510be6079b626610f2d7e9af055d1bc24a38f4fe0547
BLAKE2b-256 checksum
How to use checksums
e61279ce075d7b57e60d2ec43c7b2f0503f50a2d9d428f55cca49ea7f3aecaea
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 Aug 16, 2026.

Transparency log

Release files / mcp_test_harness_pydantic_ai-5.2.0-py3-none-any.whl

Download URL mcp_test_harness_pydantic_ai-5.2.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
808960cc6b7b50a88bea79fce54beb3d961093d275830cb1a3fb1df4555eb675
BLAKE2b-256 checksum
How to use checksums
7fa52e44eb215a29c6d1038ff536e285461a2e214ef47a7d4c29ef68c81a3dfc
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 Aug 16, 2026.

Transparency log

Release history Release notifications | RSS feed

5.3.0

2 release files

This release

5.2.0 This release

2 release files

4.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page