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.

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_pydantic_ai-4.0.1.tar.gz (2.8 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_pydantic_ai-4.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_test_harness_pydantic_ai-4.0.1.tar.gz.

File metadata

File hashes

Hashes for mcp_test_harness_pydantic_ai-4.0.1.tar.gz
Algorithm Hash digest
SHA256 2d883933aa96445063623884c582ac3d329566a2875d7796e6409ce2a05eabbd
MD5 b872f6cdabfde4b2840cfca4c79749ef
BLAKE2b-256 074b6fabe13d56787977a9f6516c265c354f746f66ed623d9e2dff920d46aa53

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_test_harness_pydantic_ai-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 376d0fefe719817c3bd64749843e65378dec032b5915e0b48aaca0c4799e01f9
MD5 995ae6fe1cbaab7d701af39eac972099
BLAKE2b-256 3ded276f57a64a56384572a5ee83394648b69fe4cea1c95326daebfc7ab1742a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_harness_pydantic_ai-4.0.1-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