Claude Code & MCP Masterclass
0/15 complete

Module 05 · Production AI Tooling

Capstone: Ship a Real MCP Integration for a Business Workflow

The capstone ships one authorized, bounded integration and its operating evidence. A successful chat demo is insufficient: the server must pass capability, security, correctness, failure, packaging, and handover gates.

// concept

Select the Workflow

Choose a low-risk task such as searching approved policies, retrieving one catalog item, preparing a quotation draft, or creating a support case draft. Define owner, users, goal, authoritative sources, prohibited actions, data classification, and measurable baseline.

Avoid first projects that transfer money, submit tax/legal records, publish broadly, or make employment, health, credit, or other rights-affecting decisions.

// concept

Build the Release Packet

  1. architecture and trust-boundary diagram;
  2. versioned tools/resources/prompts;
  3. strict schemas, authorization, and tenant isolation;
  4. secrets, egress, logging, retention, and deletion controls;
  5. deterministic unit/protocol/host tests;
  6. prompt-injection and abuse tests;
  7. timeouts, rate limits, idempotency, circuit, and recovery;
  8. package provenance, changelog, install/rollback/uninstall;
  9. runbook, alerts, owner, and incident route;
  10. client acceptance and data-processing authority.

// worked_example

Worked Example

A Faisalabad manufacturer needs sales staff to retrieve approved product facts and prepare quote requests. The MCP server exposes read-only get_product and draft-only prepare_quote_request. Price comes from the catalog; calculation is deterministic; sending and payment are absent.

Tests catch a tenant-filter omission and block launch. After repair, cross-tenant access, traversal, injected product text, duplicate draft, upstream timeout, token revocation, clean install, rollback, and uninstall all pass. The client owns the repository, registry, production identity, and runbook. A limited pilot measures preparation time and correction rate without claiming guaranteed revenue.

// failure_cases

Failure Cases to Diagnose

6 cases to diagnose

  • Generic “business tool” scope

    choose one outcome.

  • Server owns production admin credentials

    use least-privilege client identity.

  • Prompt instructions enforce security

    move controls to code.

  • Only happy path tested

    execute abuse and recovery matrix.

  • No capability diff on upgrade

    review changes before release.

  • Client cannot operate without builder

    complete ownership and handover.

// pakistan_angle

Pakistan Angle

Use PKR cost and local support hours, but base business/tax/legal facts on current authorized sources. Minimize CNIC, bank, customer, employee, and export data. Name any foreign processor and obtain authority.

Monetize the outcome ethically: discovery, secure integration, tests, deployment, monitoring, training, and support. Do not promise passive income, “10x” productivity, or error-free autonomy.

// hands_on

Hands-On Exercise

5 steps

  1. Define scope, baseline, and prohibited actions.

  2. Build all ten release-packet sections.

  3. Run the full acceptance matrix.

  4. Conduct limited authorized pilot and rollback drill.

  5. hand over accounts, code, artifacts, and runbook.

// completion_rubric

Completion Rubric

6 checks — tick as you verify

0/6

// sources

Sources

// check_yourself

Check yourself

4 questions · answers and options are taken word-for-word from this course

0/4
  1. 1 / 4 · diagnose

    Your work shows this failure mode: “Server owns production admin credentials.” What does the lesson tell you to do about it?