Interactive Model Context Protocol (MCP) Tutorial

1. Resources

Resources are data exposed by the server. They can be text or binary, and are identified by URIs.

2. Prompts

Prompts are reusable templates exposed by servers. They allow for dynamic arguments and context inclusion.

3. Tools

Tools are executable functions on the server, allowing LLMs to interact with external systems.

4. Sampling (Optional)

Sampling allows servers to request LLM completions. Note: not all clients support sampling.

5. Transports

Transports handle communication between clients and servers.

All transports use JSON-RPC 2.0 for message exchange.

6. Clients

Various clients implement the MCP, including:

Each client's MCP support varies. Consult their documentation for specifics.