Skip to main content
← Course 0 Syllabus (44 Lessons)/Part III · AI, MCP, Inference & Platforms (Ch 09–13)
COURSE 0 · CH 09 · 1,105 WORDS · 6 MIN READLIVE VM: lab4-rag-acl · TASK T13

9 AI applications agents and MCP

A model API is an external dependency with latency, rate limits, cost, evolving behavior, and possible failures. Your application owns validation, authorization, persistence, user-facing contracts, and recovery. A model does not replace those responsibilities.

Read Full Lesson + Split-Screen Linux VM Launch Guided Linux Quest (T13) →
WHAT YOU WILL BUILD & VERIFY IN THIS LESSON
  1. Add a model behind a service boundary
  2. Structured output and evaluation
  3. Retrieval and private data
  4. Agents as state machines
  5. What MCP provides
  6. Run the included adapter
  7. Tool design contract
  8. Remote MCP exercise
  9. Exit exercise
CRUCIBLE STUDIO VOICE EXCERPT

Outcome: add AI capabilities without giving a model uncontrolled authority. Prerequisites: backend, security, and durable-work chapters. Environment: the local read-only MCP adapter is runnable; paid model integrations and remote OAuth deployment are extension exercises. A model API is an external dependency with latency, rate limits, cost, evolving behavior, and possible failures. Your application owns validation, authorization, persistence, user-facing contracts, and recovery. A model does not replace those responsibilities. For the automation service, an AI extension might summarize submitted text. Define an output schema, maximum input length, maximum output tokens, deadline, and cost budget. Store provider/model/version metadata with the result. Keep provider credentials only in the worker that needs them. Do not make a private key a tool argument or embed it in a prompt.