Key words and examples
Every key word in this course in everyday language, and every real-world example with its picture. Use it to look things up or to revise.
🔑 Key words (27)
27 of 27 words
- Annotation
- A hint on a tool, such as read-only or destructive, so hosts can warn users.From: Resources, Prompts and Good Tool Design
- Client
- A connector inside the host. Each one talks to one server.From: Hosts, Clients, Servers and the Three Building Blocks
- Command
- The program the host runs to start your server, like python.From: Connecting Your Server to an AI App
- Config
- A small settings file that lists the servers to start.From: Connecting Your Server to an AI App
- Decorator
- A label line starting with @ that adds extra behaviour to a function.From: A Notes Server in Python
- Destructive tool
- A tool that writes or deletes, so a mistake can cause harm.From: Project: Build an MCP Server for a Real Tool
- Docstring
- A short text inside the function. The model reads it as the description.From: A Notes Server in Python
- Error case
- A test where you give bad input on purpose to see what happens.From: Project: Build an MCP Server for a Real Tool
- Full path
- The complete address of a file, starting from the top folder.From: Connecting Your Server to an AI App
- Host
- The AI app the user sees, like a chat app or a code editor.From: Hosts, Clients, Servers and the Three Building Blocks
- MCP
- Model Context Protocol: shared rules for connecting AI apps to tools and data.From: What MCP Is and Why It Exists
- MCP Inspector
- A free developer tool for trying an MCP server by hand.From: Testing with the MCP Inspector
- OAuth
- The "Sign in with..." flow where the user approves access.From: Remote Servers, Auth and Security
- Open standard
- A shared set of rules that anyone can use.From: What MCP Is and Why It Exists
- Prompt
- A ready-made request the user can pick, like a weekly review.From: Resources, Prompts and Good Tool Design
- Prompt injection
- Hidden instructions inside data, like an email, that try to steer the AI.From: Remote Servers, Auth and Security
- Protocol
- An agreed way of talking, like the rules of a phone call.From: What MCP Is and Why It Exists
- Resource
- Data the app can read, with an address like notes://all.From: Resources, Prompts and Good Tool Design
- Scope
- One permission on a token, like reading notes.From: Remote Servers, Auth and Security
- Security note
- A short text on what the server can reach and how that is limited.From: Project: Build an MCP Server for a Real Tool
- Server
- A small program that offers abilities from one tool or data source.From: Hosts, Clients, Servers and the Three Building Blocks
- Standard error
- A separate channel for logs. It does not mix with the messages.From: Testing with the MCP Inspector
- Standard output
- The channel where print() writes. A stdio server sends its messages there.From: Testing with the MCP Inspector
- Task-shaped
- Built around a whole job the user wants, not one small technical call.From: Resources, Prompts and Good Tool Design
- Token
- A temporary pass the app gets instead of the user's password.From: Remote Servers, Auth and Security
- Transport
- The way messages are carried: stdio on your computer, or HTTP on the web.From: Hosts, Clients, Servers and the Three Building Blocks
- Type hint
- A note like text: str that says what kind of input is needed.From: A Notes Server in Python
🏠 Real-world examples (8)
Lesson 1
MCP is one shared way to connect AI apps to tools and data. You build the connection for a tool once. Then every app that uses MCP can use it.
📌 Build the connector once, use it in every MCP app.
Lesson 2
Hosts, Clients, Servers and the Three Building Blocks
The host is the AI app you see. Inside it, each client talks to one server. A server offers tools, resources and prompts from one tool or data source.
📌 Model picks tools, app picks resources, user picks prompts.
Lesson 3
You write a normal Python function. You add the line @mcp.tool() above it. The name, type hints and docstring then tell the model how to use it.
📌 Clear names, type hints and docstrings are the manual for the model.
Lesson 4
Testing with the MCP Inspector
The MCP Inspector lets you try your server by hand. You see the tools, call them yourself and read any errors. Do this before you connect an AI app.
📌 Test the server by hand before you connect an AI app.
Lesson 5
Connecting Your Server to an AI App
The host app keeps a small settings file. For each server it stores a name and the command that starts it. The host then starts your server for you.
📌 Name plus command, and always the full path.
Lesson 6
Resources, Prompts and Good Tool Design
Give the model a few clear tools, each built around a job the user wants done. Add resources for data to read and prompts for ready-made requests.
📌 Fewer, clearer, task-shaped tools beat many tiny ones.
Lesson 7
Remote Servers, Auth and Security
A remote server runs on the web for many users. It must know who is calling and what they may do. It uses tokens with limited permissions, not passwords.
📌 Give a pass for one door, not a key to every door.
Lesson 8
Project: Build an MCP Server for a Real Tool
In this project you build an MCP server for one tool you really use. You design it and test it by hand. Then you connect it to an AI app and write a security note.
📌 Design, test by hand, connect, then limit the access.