Skip to content
Reference

Python SDK reference ​

Start with the small package-root surface for ordinary synchronous tests:

python
from m3 import MCPTestKit, StdioServer, expect

Use focused modules for the rest of the supported contract:

NeedReference
Core kit, direct operations, and agent sessionsCore execution
Server, result, policy, and operation valuesTypes
Execution assertionsMatchers
Typed tracesObservability
Evaluators and aggregationEvaluations
Elicitation and managed inputElicitation
Matrix casesMatrices
Test doubles and snapshotsTesting utilities
Persistent and in-memory storesStorage
ExceptionsErrors

Each page explains ownership, inputs, results, and failure behavior. Exact signatures are checked against the release's public export contract.

Use the Python API inventory for exact signatures, model fields, and public methods across every declared module.