MCP lesson 07 · Secure and contract-test MCP
2026-07-28 core · deterministic JSON-RPC fixtures
Atlas Release Evidence Server. Read-only evidence, deterministic scoring, and an explicit evaluation Task across replicas and protocol eras.
01 · Smallest useful mechanism
MCP tests must cover version and capability behavior, schemas, transports, authorization, tenant isolation, tool effects, content injection, handle security, caching, retries, and observable outcomes.
A conformant server can still be unsafe for your product, principal, or data.
02 · Experiment
Deterministic protocol fixture
This workbench uses inspectable JSON-RPC fixtures and injected failures. It does not make live calls or execute external effects.
Protocol workbench · atlas-assurance-v2
Injected failure
The server passes JSON-RPC tests but changes descriptions, follows a redirect, and returns injected instructions.
The trace has not run.
Commit to an implementation, then inject the failure and inspect the actual state transitions.
03 · Implementation brief
Your learning artifact
Stored only in this browser. No account required; course reset does not delete it.
04 · Check your understanding
Primary sources · verified 2026-08-02
Servers evolve independently, and their descriptions or results enter model context. A small metadata change can alter model tool selection even when the method remains protocol-conformant.
Common mistake: Passing the MCP inspector proves a server is production-safe. Protocol tools can verify conformance; product safety still depends on trust, permissions, semantics, deployment, and representative adversarial tests.
Transfer exercise: Change a tool description without changing its schema and measure whether the host exposes, approves, or selects it differently.
Next: The capstone now asks you to ship a modern stateless server with a dual-era strategy and an evidence-backed host integration.