# MCP in Depth: build MCP servers in TypeScript

> A hands-on course on the Model Context Protocol. Build RepoPilot, an MCP server for git repositories, from your first tool to testing, securing and shipping it.

Source: https://devaiper.com/courses/mcp-in-depth
Published: 2026-10-08

MCP is easy to describe and easy to get wrong. This course builds one server, **RepoPilot**, and adds one idea per part so you see why each design choice exists.

## What you build

RepoPilot lets an AI app read a git repository: history, diffs, code search, TODOs, files and review prompts. By the last part it has tests, a security sandbox, authentication and an npm package.

## How each part works

A short concept video explains the idea with drawings. A hands-on video builds that part live. The written version of each part appears on this site as it goes live, with the code you can copy.

## Course outline

1. What is MCP? Model Context Protocol explained (https://devaiper.com/courses/mcp-in-depth/what-is-mcp): The problem MCP solves, the host, client and server roles, and a hello-world server.
2. Build your first MCP server in TypeScript (coming soon): Real tools for RepoPilot: git log, git diff, code search and TODOs.
3. How to design MCP tools Claude can use (coming soon): Descriptions, structured output, errors, truncation and pagination.
4. Build an MCP client in TypeScript (coming soon): Connect to a server, list tools and run the loop with approvals.
5. MCP resources explained (coming soon): Expose files and data as context with static and templated URIs.
6. MCP prompts: slash commands for your server (coming soon): Reusable, user-invoked templates, plus progress notifications.
7. MCP transports: stdio vs HTTP and remote servers (coming soon): Run the same server locally and over Streamable HTTP.
8. MCP security: is it safe? How to secure your server (coming soon): Sandbox paths, validate arguments, confirm risky actions, require auth.
9. Test, monitor and ship your MCP server (coming soon): Contract tests, logging, an audit trail and publishing to npm.

## FAQ

### What do I need to take the MCP in Depth course?

Comfortable TypeScript, Node.js 20 or newer and a terminal. No prior MCP or AI-API experience is required; part 1 starts from zero.

### Which language does the course use?

TypeScript, with the official MCP TypeScript SDK, zod for schemas and tsx to run files. Every part is one tested state of the same project.

### What is RepoPilot?

The running project of the course: an MCP server that lets an AI app understand and work on a git repository. You extend it in every part.

