0Pricing
MCP Academy · Aula

O cliente: um link por servidor

Como um host inicializa um cliente dedicado para cada servidor.

O cliente: um link por servidor é uma aula grátis de MCP Academy no CoddyKit. Esta é a aula 2 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de MCP Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de MCP Academy inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em 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!

Perguntas Frequentes

A aula “O cliente: um link por servidor” é grátis?

Sim — o texto completo de “O cliente: um link por servidor” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de MCP Academy, atualize para CoddyKit PRO. O curso de MCP Academy inclui 4 aulas no total.

O que vou aprender em “O cliente: um link por servidor”?

Como um host inicializa um cliente dedicado para cada servidor. Você pratica MCP Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar MCP Academy?

Nenhuma experiência prévia é necessária. MCP Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 2 de 4.

Quanto tempo leva a aula “O cliente: um link por servidor”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de MCP Academy?

Sim. Cada aula de MCP Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. O host: Claude Desktop e IDEs
  2. O cliente: um link por servidor
  3. O servidor: onde ficam as ferramentas
  4. Rastreando uma solicitação de ponta a ponta
← Voltar para MCP Academy