> Markdown version of [/events/world-congress-2026-europe/sessions/1030-contract-testing](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1030-contract-testing). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Contract Testing with MCP: Building Self-Describing, Self-Testing APIs - **Date:** Thursday, Jul 9, 2026 - **Time:** 11:30–12:00 (30 min) - **Room:** Stage 9 - **Event:** World Congress 2026 Europe ## Recording [Watch recording](https://www.wearedevelopers.com/videos/100040-contract-testing-with-mcp-building-self-describing-self-testing-apis) ## Description 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. ## Speaker ### [Moataz Nabil](https://www.wearedevelopers.com/@moataz-nabil) Software Engineering Manager at AVIV Group ## Related talks at this congress - [Building APIs for Agents vs Systems. Is MCP the answer?](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1322-building-apis-for) — Adam Bird - [From APIs to MCP: Enterprise Governance, Registry, and Controls](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1376-from-apis-to-mcp) — Stefan Mesquita - [MCP is all you need to make an AI-agent consume your RESTful API](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/956-mcp-is-all-you-need) — Nikos Delis - [API, MCP or MCP App? Choosing the right surface for AI agents](https://www.wearedevelopers.com/events/world-congress-2026-europe/sessions/1336-api-mcp-or-mcp-app) — Rishabh Budhiraja, Rishi Deorukhkar