mcp CLIを使う
コマンドラインからサーバーを実行、開発、調査します。
「mcp CLIを使う」はCoddyKit上の無料MCP Academyレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはMCP Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 MCP Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
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. 🎉
よくある質問
「mcp CLIを使う」レッスンは無料ですか?
はい。「mcp CLIを使う」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MCP Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MCP Academyコースには全4レッスンが含まれています。
「mcp CLIを使う」で何を学びますか?
コマンドラインからサーバーを実行、開発、調査します。 ブラウザで直接実行するハンズオンコードでMCP Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
MCP Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのMCP Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「mcp CLIを使う」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このMCP Academyレッスンでコードを書いて実行できますか?
はい。すべてのMCP Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。