# 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. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/ai-engineer/capstone-agent
Last updated: 2026-11-28

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)](https://www.internhack.in/roadmaps/tracks/ai-engineer/mcp), [Human-in-the-Loop Design](https://www.internhack.in/roadmaps/tracks/ai-engineer/human-in-the-loop), [Prompt Injection and Defensive Design](https://www.internhack.in/roadmaps/tracks/ai-engineer/prompt-injection), [Tracing and LLM Observability](https://www.internhack.in/roadmaps/tracks/ai-engineer/tracing-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?

## Free resources

- [Model Context Protocol documentation](https://modelcontextprotocol.io/) (MCP)
- [Anthropic: Building effective agents](https://www.anthropic.com/engineering/building-effective-agents) (Anthropic)
- [OWASP Top 10 for LLM Applications](https://genai.owasp.org/llm-top-10/) (OWASP)

Previous: [Capstone: Production RAG Assistant](https://www.internhack.in/roadmaps/tracks/ai-engineer/capstone-rag-assistant) · Next: [AI Engineering Portfolio and Interviews](https://www.internhack.in/roadmaps/tracks/ai-engineer/portfolio-career)

## More in Capstone Projects and Portfolio

- [Capstone: Production RAG Assistant](https://www.internhack.in/roadmaps/tracks/ai-engineer/capstone-rag-assistant)
- [Capstone: Tool-Using Agent with MCP](https://www.internhack.in/roadmaps/tracks/ai-engineer/capstone-agent)
- [AI Engineering Portfolio and Interviews](https://www.internhack.in/roadmaps/tracks/ai-engineer/portfolio-career)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [AI Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/ai-engineer)
