Ce que vous devez savoir avant
Vous commencez

Débute 5 July 2026 09:03

Se termine 5 July 2026

00 Jours
00 Heures
00 Minutes
00 Secondes
course image

Protocole de Contexte de Modèle : Sujets Avancés

Déployez des agents IA en production en utilisant le kit de développement ADK de Google, le moteur d'agent Vertex AI, Cloud Run et Memory Bank pour un état persistant entre les sessions.
via DataCamp

160 Cours


2 hours

Amélioration optionnelle disponible

Avancé

Progressez à votre rythme

Free Trial Available

Amélioration optionnelle disponible

Aperçu

Go beyond MCP basics with sampling, notifications, roots, and the STDIO and StreamableHTTP transports in Python. You've built an MCP server that exposes a few tools - now it's time to make it behave like the ones running in production.

Advanced MCP is where servers delegate work to clients, report on what they're doing, respect filesystem boundaries, and talk to clients across very different transports. Master Core MCP Features Start with sampling, which lets a server hand a prompt back to the client's language model instead of holding its own API key.

Then stream log and progress notifications so learners watching a 30-second tool call can see it working, and use roots to define exactly which files and folders a server is allowed to touch - a boundary the SDK leaves you to enforce yourself. Understand How Clients and Servers Talk Go to the wire level and see what actually crosses the connection.

You'll hand-write JSON-RPC requests and notifications, tell the two apart by their id field, and follow the initialization handshake message by message. Compare the STDIO and StreamableHTTP Transports Learn why a STDIO server only works on one machine, how the StreamableHTTP transport uses a long-lived Server-Sent Events stream to push messages back to the client, and what the stateless_http and json_response flags trade away.

By the end, you'll know which transport fits a local tool versus a remote, load-balanced deployment - and why.

Programme

  • Caractéristiques principales du MCP
  • Découvrez les fonctionnalités avancées qui distinguent un serveur MCP de jouet d'un serveur de production. Vous utiliserez l'échantillonnage pour emprunter le modèle de langage du client, transmettre des journaux et des notifications de progression à partir d'un outil lent afin que les utilisateurs le voient travailler, et imposer des racines afin qu'un serveur touche uniquement les fichiers qui lui ont été accordés.
  • Transports et communication
  • Approfondissez le niveau filaire et voyez comment les clients et serveurs MCP communiquent réellement. Vous écrirez à la main des requêtes et notifications JSON-RPC, tracerez l'initialisation de la poignée de main, et comparerez le transport STDIO pour les serveurs locaux avec le transport StreamableHTTP pour les serveurs distants, y compris comment les événements envoyés par le serveur (Server-Sent Events) et l'absence d'état influencent ce que chacun peut faire.

Enseigné par

Anthropic Academy


Matières

Artificial Intelligence