Klient: jedno połączenie na serwer
Dowiedz się, jak host uruchamia dedykowanego klienta dla każdego serwera.
Klient: jedno połączenie na serwer to bezpłatna lekcja MCP Academy na CoddyKit. To lekcja 2 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej MCP Academy, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs MCP Academy zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
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!
Często zadawane pytania
Czy lekcja „Klient: jedno połączenie na serwer” jest bezpłatna?
Tak — pełny tekst „Klient: jedno połączenie na serwer” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu MCP Academy, przejdź na CoddyKit PRO. Kurs MCP Academy zawiera 4 lekcji w sumie.
Co nauczysz się w „Klient: jedno połączenie na serwer”?
Dowiedz się, jak host uruchamia dedykowanego klienta dla każdego serwera. Ćwiczysz MCP Academy z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć MCP Academy?
Nie wymagamy żadnego doświadczenia. MCP Academy w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 2 z 4.
Ile czasu zajmuje lekcja „Klient: jedno połączenie na serwer”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji MCP Academy?
Tak. Każda lekcja MCP Academy zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Host: Claude Desktop i środowiska IDE
- Klient: jedno połączenie na serwer
- Serwer: tutaj znajdują się narzędzia
- Śledzenie żądania od początku do końca