Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Agents, Skills, and MCP / Week 12

Model Context Protocol

Build an extensible agent with a protocol integration. Connect a real local client and server to the existing runtime and skills.

Your lessons

  1. 01

    Model Context Protocol roles and versioned requests

    60 minutes planned · 7 sections
    Start →
  2. 02

    Building a local protocol integration

    60 minutes planned · 7 sections
    Start →
  3. 03

    Securing a protocol server

    60 minutes planned · 7 sections
    Start →

// Put it into practice

An extensible agent with a protocol integration

  1. Download week12.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Trace complete request and response examples for the chosen revision and contrast direct function calling.
  3. Lesson 2: Run a read-only documentation server and client using compatible pinned dependencies.
  4. Lesson 3: Threat-model local and remote connection paths and exercise allowed and denied project requests.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 12 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W12-LAB

Week 12: An extensible agent with a protocol integration

Connect a real local client and server to the existing runtime and skills.

Extend the guided artifact rather than start a second project. Versioned discovery, resource reading, allowed and denied tool calls, bounded execution, and logs are reproducible.

What to produce

  • An extensible agent with a protocol integration
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Versioned discovery, resource reading, allowed and denied tool calls, bounded execution, and logs are reproducible.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Phase milestone

M03

Extensible Tool-Using Agent

Build an extensible AI agent with tools, reusable skills, and MCP.

Execution is bounded; permissions are enforced; test evidence and logs are reproducible.

What to produce

  • Agent loop, tool registry, skills, and local MCP integration
  • Bounded execution, permission handling, and logs
  • Repeatable tests for allowed and denied operations

Check your work

  • Execution is bounded; permissions are enforced; test evidence and logs are reproducible.
  • Setup and reproduction steps are complete.
  • Known limitations are explicit; no unsupported security or quality claims.
Self-assessment rubric
Functional integration · 30 points
Required components work together in a reproducible end-to-end workflow.
Security and reliability · 25 points
Boundaries, failure handling, and recovery are demonstrated with evidence.
Evaluation evidence · 25 points
Appropriate test set, clear measures, honest interpretation, and traceability.
Documentation and explanation · 20 points
Architecture, setup, tradeoffs, and limitations are understandable.

// Retrieve before you reread

Week 12 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. A client targets protocol 2026-07-28. What startup and request behavior matches that target?
2. A server lists a summarization prompt template. What has the client received?
3. A resource-list response contains nextCursor and one entry. The client needs a complete inventory. What should it do?
4. A process server prints a diagnostic banner to standard output before a response. Why is this a defect?
5. A useful server description asks for environment credentials before a public search. Which action preserves the boundary?
6. A lab runs a real local client/server but tests credential audience using an unsigned dictionary. Which report is accurate?

Next: week 13 →