Python SDK reference
Start with the small package-root surface for ordinary synchronous tests:
python
from m3 import MCPTestKit, StdioServer, expectUse focused modules for the rest of the supported contract:
| Need | Reference |
|---|---|
| Core kit, direct operations, and agent sessions | Core execution |
| Server, result, policy, and operation values | Types |
| Execution assertions | Matchers |
| Typed traces | Observability |
| Evaluators and aggregation | Evaluations |
| Elicitation and managed input | Elicitation |
| Matrix cases | Matrices |
| Test doubles and snapshots | Testing utilities |
| Persistent and in-memory stores | Storage |
| Exceptions | Errors |
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.