Skip to content

Quality & Reliability

Contract Testing with MCP: Building Self-Describing, Self-Testing APIs

with Moataz Nabil

Thursday 9 July 13:30 – 14:00 Stage 9

About This Session

Contract testing hasn’t evolved—but our systems have. Today’s APIs run in dynamic environments shaped by user context, feature flags, and increasingly, AI-driven behaviour. Yet most teams still rely on static OpenAPI specs, brittle consumer-driven contracts, and manually maintained test suites that quickly drift from reality. In this talk, you’ll discover how the Model Context Protocol (MCP) introduces a new approach: self-describing, self-testing APIs. By exposing runtime context—schemas, constraints, examples, and real usage scenarios—through MCP, services can automatically generate and maintain their own contract tests. This enables continuous compatibility between providers and consumers, reduces breaking changes, and transforms testing from a manual task into an automated, context-aware system. We’ll walk through a practical architecture showing how MCP fits into an API platform, and demonstrate a working example where an API generates its own contract tests and runs them in CI. If you build, test, or operate APIs, this session will change how you think about contracts, testing, and quality in distributed systems.

Topics

  • Generative AI (GenAI)
  • Quality Assurance (QA)
  • Testing