0Pricing
MCP Academy · Aula

Conheça a CLI mcp

Execute, desenvolva e inspecione servidores pela linha de comando.

Conheça a CLI mcp é uma aula grátis de MCP Academy no CoddyKit. Esta é a aula 3 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.

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. 🎉

Perguntas Frequentes

A aula “Conheça a CLI mcp” é grátis?

Sim — o texto completo de “Conheça a CLI mcp” é 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 “Conheça a CLI mcp”?

Execute, desenvolva e inspecione servidores pela linha de comando. 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 3 de 4.

Quanto tempo leva a aula “Conheça a CLI mcp”?

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. Instalar Python e uv
  2. Adicionar o SDK Python do MCP
  3. Conheça a CLI mcp
  4. Estrutura de projeto para um servidor
← Voltar para MCP Academy