0Pricing
MCP Academy · Lekcja

Poznaj CLI mcp

Uruchamiaj, twórz i sprawdzaj serwery z wiersza poleceń.

Poznaj CLI mcp to bezpłatna lekcja MCP Academy na CoddyKit. To lekcja 3 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.

Your Command-Line Companion

The mcp command-line tool came with the [cli] extra. It's how you run, test, and ship servers without writing extra glue code. 🛠️

Three Commands to Know

The CLI centers on three verbs: dev, install, and run. Each handles a different stage of working with your server, from testing to shipping.

Run It Through uv

Because the tool lives in your project's environment, you call it with uv run. That guarantees the right Python and packages are used every time.

uv run mcp

mcp dev for Testing

The fastest way to try a server is mcp dev. It launches your server and opens the MCP Inspector so you can poke at it interactively.

uv run mcp dev server.py

Why dev Is So Handy

With mcp dev you see your tools and resources live, call them by hand, and watch responses. It's the tightest possible feedback loop. 🔍

mcp install for Claude

When a server is ready for daily use, mcp install wires it straight into Claude Desktop's config so the app loads it on startup.

uv run mcp install server.py

Name Your Server

Pass a friendly label with the --name flag so it's easy to spot inside Claude. A clear name beats a raw file path every time.

uv run mcp install server.py --name "My Server"

mcp run to Execute

The plain mcp run command executes a server directly, no Inspector attached. It's the simple way to launch a FastMCP server for a client.

uv run mcp run server.py

dev vs run

Reach for mcp dev while building and debugging, and switch to mcp run once you just need the server up. Same server, different intent.

Discover Flags with Help

Forgot an option? Every command supports --help, which prints its arguments and usage. It's the quickest reference you'll always have on hand.

uv run mcp dev --help

One CLI, Whole Lifecycle

Together these commands cover the lifecycle: test with dev, ship with install, launch with run. You rarely need anything else to operate a server. 🔄

Quick Check

You want to test a new server and click through its tools interactively.

You Know the CLI

You can now dev to test, install to add a server to Claude, and run to launch it. Three commands give you full control of your server. 🎉

Często zadawane pytania

Czy lekcja „Poznaj CLI mcp” jest bezpłatna?

Tak — pełny tekst „Poznaj CLI mcp” 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 „Poznaj CLI mcp”?

Uruchamiaj, twórz i sprawdzaj serwery z wiersza poleceń. Ć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 3 z 4.

Ile czasu zajmuje lekcja „Poznaj CLI mcp”?

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

  1. Instalacja Python i uv
  2. Dodawanie Python SDK dla MCP
  3. Poznaj CLI mcp
  4. Układ projektu serwera
← Powrót do MCP Academy