stdio
The host starts your server as its own process, and the two exchange messages over standard input and output.
Mirage Academy · Course · Advanced · MCP
Aimed at engineers and technical product people working on AI features. You build an MCP server step by step, connect an agent to it and make it safe with scopes, least privilege and tests. The capstone is a business capability server with a connected agent.
The course
Watch the short intro, then see what the first six chapters teach.

You want an AI agent to do real work in your business, but every custom integration is fragile and hard to secure. This course shows you how to expose those capabilities through MCP, safely. Start with the shape of MCP. The host runs the agent. Its client speaks to your server over stdio or streamable HTTP. The server exposes tools, resources and prompts, and returns results the agent can use. Then you make it safe. A vague tool gets a clear name and schema. Broad access becomes least privilege. Untrusted text is treated as possible injection. And every change is tested and versioned. The course ends with a capstone: a business capability server with a connected agent. You build it chapter by chapter, from transports to testing. If that is the agent you need, enroll and start with chapter one.
What you learn
Starts with: Why MCP Exists and the Three Roles
Starts with: Names and descriptions
Starts with: Resources and URIs
Starts with: stdio framing
Starts with: The skeleton
Starts with: The host loop
What you build
Seen from the outside in, the server you build in the capstone has these layers. Each one is taught in its own chapter.
stdio or streamable HTTP carries the messages between client and server.
Tokens and scopes decide what a caller may do.
Tools, resources and prompts with names, schemas and results an agent can use.
The function of your business that the agent needs. The capstone builds one.
Model Context Protocol explained: one tool call, step by step →
Tools
A tool is what an agent calls. The five lessons of the chapter are the five rows below.
Field · Example valueIllustration written for this page
name, descriptionget_invoice, Fetch one invoice by numberRow 1: name, description.
inputSchemainvoiceId: string (required)Row 2: inputSchema.
resulttext, structured or linked contentRow 3: result.
isErrora flag in the resultRow 4: isError.
annotationsreadOnlyHint: trueRow 5: annotations.
Transports
Chapter 4 teaches stdio and streamable HTTP, and how to choose between them.
The host starts your server as its own process, and the two exchange messages over standard input and output.
Your server runs at an address, and clients send their messages to it over HTTP.
Authorization and security
Chapters 7 and 8 cover authorization, scopes and least privilege. This example shows the rule on a small invoice server. Pick a task and switch the scopes.
Tools of the server
get_invoiceReadsinvoices:readNeeded by the taskCallablelist_customersReadscustomers:readRefusedsend_reminderWritesinvoices:writeRefusedissue_refundWritespayments:writeRefusedVerdictWorks with exactly the scopes the task needs.
The rule: a tool is callable only if the token carries its scope. A task works when every tool it calls is callable. Scopes the task does not use are extra, and removing them is least privilege.
Works with exactly the scopes the task needs.
A token carries scopes, and a task that needs more asks for more.
Give a token only what the task needs.
Treat text that comes from a tool as untrusted.
The security chapter also covers rug pulls, shadowing, confused deputy and SSRF.
Testing and operating
Chapter 9 covers testing, versioning and operating MCP servers.
Example cases
| A test sends | The server gives |
|---|---|
| A valid call with every field | A result the agent can use |
| A call with a required field missing | A refusal with an error |
| A value at the edge of its range | The same answer every time |
| A tool whose schema changed | A new version, announced to clients |
Lesson 1 of chapter 9.
Lesson 2 of chapter 9.
Lesson 3 of chapter 9.
Lesson 4 of chapter 9.
Lesson 5 of chapter 9.
The path
Five lessons per chapter. The first lesson of each chapter is printed under its name.
01Understand
Why MCP Exists and the Three Roles
Names and descriptions
Resources and URIs
02Build
stdio framing
The skeleton
The host loop
03Secure
When it applies
Poisoned descriptions and results
04Ship
Contract tests
Specify, build, test, connect and trace, review and release.
How you learn it
Three things come with the course: lessons, an AI coach and a certificate.
Each lesson pairs a short visual explanation with questions, a task and a quiz.
The Academy's AI coach asks follow-up questions while you explain what you learned out loud. It is an AI.
This course comes with a certificate. The Academy says it is Mirage's own statement, not a state-recognized degree.
It is an Advanced course with ten chapters on building an MCP server that exposes business capabilities to an AI agent, safely. The last chapter is a capstone.
Engineers and technical product people working on AI features. The course is listed at Advanced level.
You build a business capability server with a connected agent. The five lessons are specify, build, test, connect and trace, and review and release.
That page explains one tool call step by step and the limits the Academy sets for recorded MCP calls. This page describes the course: ten chapters on building servers and clients.
Two: stdio and streamable HTTP. Chapter 4 also covers stdio framing and lifecycle, headers and validation, and choosing a transport.
Yes. Chapter 7 covers authorization and permissions, and chapter 8 covers tool poisoning, injection and least privilege.
The AI-assisted software development course teaches how to work with coding agents. Its page is linked in the path section above.
The chapter list, the lessons and enrollment are on the course page.