Free course · 9 parts · Intermediate
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.
Course outline
- 1What is MCP? Model Context Protocol explainedRead
The problem MCP solves, the host, client and server roles, and a hello-world server.
- 2Build your first MCP server in TypeScriptComing soon
Real tools for RepoPilot: git log, git diff, code search and TODOs.
- 3How to design MCP tools Claude can useComing soon
Descriptions, structured output, errors, truncation and pagination.
- 4Build an MCP client in TypeScriptComing soon
Connect to a server, list tools and run the loop with approvals.
- 5MCP resources explainedComing soon
Expose files and data as context with static and templated URIs.
- 6MCP prompts: slash commands for your serverComing soon
Reusable, user-invoked templates, plus progress notifications.
- 7MCP transports: stdio vs HTTP and remote serversComing soon
Run the same server locally and over Streamable HTTP.
- 8MCP security: is it safe? How to secure your serverComing soon
Sandbox paths, validate arguments, confirm risky actions, require auth.
- 9Test, monitor and ship your MCP serverComing soon
Contract tests, logging, an audit trail and publishing to npm.
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.
Frequently asked questions
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.