Use native pytest with mcp-eval fixtures and markers.
mcp-eval run
executes decorator- and dataset-style tests. Use pytest
for plain pytest tests.
mcp_session
: access the session (metrics, assertions)mcp_agent
: a TestAgent
bound to the session@pytest.mark.mcp_agent(<Agent|AgentSpec|name>)
: per‑test agent override@pytest.mark.network
, @pytest.mark.slow
@pytest.mark.parametrize
for breadth, or mix with mcp-eval’s @parametrize
in decorator tests.