Learning path
Agents and MCP
An AI agents and MCP course for developers: build a tool-using agent with a clear stop condition, then expose your own data and actions with an MCP server.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat you will be able to do
- Explain the agent loop: model, tools, results and a stop condition
- Build a small agent that logs every step it takes
- Describe MCP hosts, clients, servers, transports and primitives
- Build and test an MCP server, then connect it to a coding agent
- Tell when a job needs MCP and when it needs A2A, and send a task from one agent to another
- Limit what an agent can do when its inputs are untrusted
Steps
Step 1: What is an AI agent? A plain explanation
An AI agent is a language model that uses tools in a loop until a task is done. What that means in practice, what agents are good at and where they go wrong.
Start with the plain explanation of the agent loop before building one.
Step 2: MCP explained: hosts, clients, servers and transports
What MCP is and how the Model Context Protocol connects AI apps to tools and data: hosts, clients, servers, transports and what the 2026-07-28 spec changed.
Step 3: Build your first agent in Python
Three tools, a hard turn limit, a clear stop condition and a log of every tool call it makes.
Python track. The next step is the same agent in TypeScript; do one or both.
Step 4: Build your first agent in TypeScript
Tools that search and read notes, a step limit, a clear stop condition and logged steps.
TypeScript alternative to the previous step, built with the AI SDK.
Step 5: Add human approval to agent actions
Pause risky tool calls, show the exact arguments, resume on approve or reject, then log and test it.
Extends the agent you just built: risky tool calls pause until a person approves the exact arguments.
Step 6: Multi-agent systems: when one agent is not enough
Orchestrator-workers, subagents and handoffs compared on context, cost and failure modes.
Optional: read when one agent is no longer enough, before you split the work across several.
Step 7: Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
Python track. The TypeScript version follows; pick the language your team ships in.
Step 8: Build an MCP server in TypeScript
Build a small MCP server with the official TypeScript SDK v2, test it from the command line and in MCP Inspector, then connect it to Claude Code or Cursor.
TypeScript alternative to the previous step, using the official SDK.
Step 9: Build an MCP server for an internal API
Two read-only tools, tested in MCP Inspector and called from Claude Code, Codex or Cursor.
Step 10: Build an MCP App: an interactive UI inside the chat
Add an interactive UI to a TypeScript MCP server with the MCP Apps SDK: a ui:// resource, a view that calls tools, a test in MCP Inspector and a text fallback.
Optional: add an interactive view to the server you just built, with a text fallback for hosts that cannot show it.
Step 11: Connect two agents with the A2A protocol
Publish an agent card, send a task from one local agent to another with the official Python SDK, and see where MCP fits.
MCP connects an agent to tools; A2A connects one agent to another. Build both once and you will know which problem each one solves.
Step 12: Prompt injection basics for builders
How direct and indirect prompt injection work, why agents with tools raise the stakes, and the design choices that limit the damage when no complete fix exists.
Step 13: Context engineering techniques: what the model should see
What to put in a model's context at each step, what to leave out, and how instruction files, retrieval and tools fit.
Read it last: once you have built an agent, the advice on tool descriptions and result size makes more sense.
Agents and MCP quiz
9 questions with explanations. Your score is saved when you are signed in.
Final quiz
Related paths
MCP in production
Connect clients, build and test servers for a team, secure remote servers and keep up with changes to the MCP specification.
AI foundations
The working vocabulary of modern AI, from prompting and structured output to retrieval, MCP, Agent Skills and prompt injection.
Production AI agents: approval, multi-agent and evals
For engineers moving past single-agent demos: add code-level approval gates, context isolation, multi-agent patterns and automated evals you can trust in CI.