๐Ÿค– API Patterns & Practices: APIs for Agents & LLMs
Home Chapters Examples Diagrams Bibliography GitHub โ†—
Home / Ship
Part 6 2 chapters

Ship

Publish the tool surface and gate its drift in CI before an agent ever calls it in production.

Chapter 31

Publish the Tool Surface

One Quarkus build serves an MCP tool surface over Streamable HTTP and stdio, and publishes the same surface as llms.txt, so the version string can never drift between the three.

20 minutesRead โ†’
Chapter 32

CI for Agent-Facing APIs

Two CI gates, a contract-drift check and a schema-compatibility rule the registry itself enforces, block a merge before an agent ever calls the broken version.

20 minutesRead โ†’
โ† Previous part Test and automate Next part โ†’ Run in production

API Patterns & Practices: APIs for Agents & LLMs

A pattern catalog for building APIs that AI agents and LLMs consume: REST and GraphQL as MCP tools, event-driven agent wakeups on Kafka, and the identity, traffic and observability guardrails a production agent-facing surface needs. Built on Quarkus, Apache Camel and Kafka; every pattern states a stack-neutral contract that transfers to Python/FastAPI and Strawberry GraphQL.

References

  • Model Context Protocol โ†—
  • Quarkus โ†—
  • Apache Camel โ†—
  • Apache Kafka โ†—
  • Quarkus LangChain4j โ†—

Project

  • View on GitHub โ†—
  • Issues โ†—
  • patterncatalyst โ†—
Open source ยท Apache 2.0 (code), CC BY 4.0 (prose) Last built 2026-11-21