El cliente: un enlace por servidor
Cómo un host inicia un cliente dedicado para cada servidor.
El cliente: un enlace por servidor es una lección gratuita de MCP Academy en CoddyKit. Esta es la lección 2 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de MCP Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de MCP Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
What Is a Client?
Inside the host lives the client. It is the piece that actually speaks the MCP protocol to a server. The host runs the show; the client does the talking.
One Client Per Server
Here is the key rule: the host creates one client for every server it connects to. Three servers means three separate clients running side by side.
A Dedicated One-to-One Link
Each client keeps a private, one-to-one connection with its single server. No client is ever shared between two servers.
Why Isolate Connections?
Keeping links separate gives isolation. If one server crashes or misbehaves, its client fails alone and the others keep working fine.
The Client Speaks for the Model
When the model wants a tool, the host hands the request to the right client. The client formats it and sends it down its own connection.
Clients Discover Capabilities
Right after connecting, a client asks its server what it offers. It discovers the available tools, resources, and prompts before any are used.
Listing a Server's Tools
A client sends a tools/list request to learn what it can call. The server replies with each tool's name and description.
{ "method": "tools/list" }The Client Maintains Session State
A client tracks the live session: what was negotiated and which calls are in flight. It is the memory of that one connection.
Many Clients, One Host
The host runs all its clients together, then merges their tools into one menu for the model. You see a unified assistant; underneath sit many clients.
Client vs Host
The host is the whole app and owns the model. A client is a smaller component inside it, dedicated to managing a single server link.
Clean by Design
This one-link-per-server design keeps things simple and safe. Each client has one clear job, which makes the whole system easy to reason about.
Quick Check
Recall how many servers a single client connects to.
Recap
You saw the client: the host's protocol-speaker, one per server, holding an isolated session and discovering each server's tools. Great progress!
Preguntas frecuentes
¿La lección «El cliente: un enlace por servidor» es gratis?
Sí — el texto completo de «El cliente: un enlace por servidor» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de MCP Academy, actualiza a CoddyKit PRO. El curso de MCP Academy incluye 4 lecciones en total.
¿Qué aprenderé en «El cliente: un enlace por servidor»?
Cómo un host inicia un cliente dedicado para cada servidor. Practicas MCP Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar MCP Academy?
No se requiere experiencia previa. MCP Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 2 de 4.
¿Cuánto tiempo toma la lección «El cliente: un enlace por servidor»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de MCP Academy?
Sí. Cada lección de MCP Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- El host: Claude Desktop e IDE
- El cliente: un enlace por servidor
- El servidor: donde viven las herramientas
- Seguir una solicitud de principio a fin