Die mcp-CLI kennenlernen
Führen Sie Server über die Kommandozeile aus, entwickeln und untersuchen Sie sie.
Die mcp-CLI kennenlernen ist eine kostenlose MCP Academy-Lektion auf CoddyKit. Dies ist Lektion 3 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des MCP Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
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 mcpmcp 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.pyWhy 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.pyName 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.pydev 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 --helpOne 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. 🎉
Häufig gestellte Fragen
Ist die Lektion „Die mcp-CLI kennenlernen“ kostenlos?
Ja — der vollständige Text von „Die mcp-CLI kennenlernen“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des MCP Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der MCP Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Die mcp-CLI kennenlernen“?
Führen Sie Server über die Kommandozeile aus, entwickeln und untersuchen Sie sie. Du übst MCP Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um MCP Academy zu starten?
Keine Vorkenntnisse erforderlich. MCP Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 3 von 4.
Wie lange dauert die Lektion „Die mcp-CLI kennenlernen“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser MCP Academy-Lektion Code schreiben und ausführen?
Ja. Jede MCP Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Python und uv installieren
- Das MCP-Python-SDK hinzufügen
- Die mcp-CLI kennenlernen
- Projektstruktur für einen Server