Capstone: Tool-Using Agent with MCP
Build an agent that completes real multi-step tasks through MCP tools, with approvals, budgets, evals and a security review.
Advanced · about 40 hours · difficulty 5/5
Learn first: Model Context Protocol (MCP), Human-in-the-Loop Design, Prompt Injection and Defensive Design, Tracing and LLM Observability
This capstone shows you can build agents that are useful and safe. Pick a workflow with real multi-step value: triaging GitHub issues, planning trips from real APIs, managing a personal finance spreadsheet, or researching companies for job applications.
Requirements
- At least one custom MCP server that exposes your domain tools (for example a database or an internal API), plus one or two existing servers or built-in tools.
- Agent loop with explicit stop conditions, token and cost budgets, and step limits, built by hand or with an agent SDK.
- Tool design with clear descriptions, concise outputs, actionable errors and risk tiers.
- Human approval before any write or external action, with the agent pausing and resuming.
- Memory: persisted task progress or user preferences across sessions.
- Evals: 20 or more realistic tasks with automated checks for task success, correct tool usage and cost per task.
- Security review: a written threat model covering prompt injection through tool results, least-privilege credentials and what a compromised agent could do.
- Traces for every run that you can share as examples.
Stretch goals
Sub-agents for parallel research, a voice or chat front end, or a comparison of two models on your task suite.
What to show
A demo video, trace examples of success and failure, eval results, the threat model, and a reflection on what you would change for production.
Good enough to move on
Your agent completes most tasks in its suite within budget, never performs a write without approval, and you can walk an interviewer through one of its traces step by step.
Key concepts
- Choosing a multi-step workflow
- Custom MCP server
- Budgets and stop conditions
- Approval gates
- Task-suite evals
- Threat model write-up
- Sub-agents stretch goal
Mini project
Ship the agent described above with a custom MCP server, 20 evaluated tasks, an approval UI and a written threat model, and record a 3 minute demo walking through one full trace.
Check yourself
If an attacker controlled the content of one of your tool results, what is the worst thing your agent could do, and what stops it?