From 7ef5ef45865acf7dbe7dcbe6b624434c8d26f389 Mon Sep 17 00:00:00 2001 From: VIvidh Mahajan Date: Fri, 30 May 2025 17:39:02 +0530 Subject: [PATCH 1/2] docs: fix dev server command in README (#848) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d76d3d267..77a46297e 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ mcp install server.py Alternatively, you can test it with the MCP Inspector: ```bash -mcp dev server.py +uv run mcp dev server.py ``` ## What is MCP? From 82d94b6847f46a9523a12aef03a1d61fa4a67c0d Mon Sep 17 00:00:00 2001 From: VIvidh Mahajan Date: Mon, 2 Jun 2025 22:28:38 +0530 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20prefix=20all=20mcp=20commands=20wit?= =?UTF-8?q?h=20=E2=80=98uv=20run=E2=80=99=20in=20README=20(#848)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 77a46297e..8b96cf4bc 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ def get_greeting(name: str) -> str: You can install this server in [Claude Desktop](https://claude.ai/download) and interact with it right away by running: ```bash -mcp install server.py +uv run mcp install server.py ``` Alternatively, you can test it with the MCP Inspector: @@ -359,13 +359,13 @@ See [OAuthAuthorizationServerProvider](src/mcp/server/auth/provider.py) for more The fastest way to test and debug your server is with the MCP Inspector: ```bash -mcp dev server.py +uv run mcp dev server.py # Add dependencies -mcp dev server.py --with pandas --with numpy +uv run mcp dev server.py --with pandas --with numpy # Mount local code -mcp dev server.py --with-editable . +uv run mcp dev server.py --with-editable . ``` ### Claude Desktop Integration @@ -373,14 +373,14 @@ mcp dev server.py --with-editable . Once your server is ready, install it in Claude Desktop: ```bash -mcp install server.py +uv run mcp install server.py # Custom name -mcp install server.py --name "My Analytics Server" +uv run mcp install server.py --name "My Analytics Server" # Environment variables -mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://... -mcp install server.py -f .env +uv run mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://... +uv run mcp install server.py -f .env ``` ### Direct Execution @@ -400,10 +400,10 @@ Run it with: ```bash python server.py # or -mcp run server.py +uv run mcp run server.py ``` -Note that `mcp run` or `mcp dev` only supports server using FastMCP and not the low-level server variant. +Note that `uv run mcp run` or `uv run mcp dev` only supports server using FastMCP and not the low-level server variant. ### Streamable HTTP Transport @@ -719,7 +719,7 @@ if __name__ == "__main__": asyncio.run(run()) ``` -Caution: The `mcp run` and `mcp dev` tool doesn't support low-level server. +Caution: The `uv run mcp run` and `uv run mcp dev` tool doesn't support low-level server. ### Writing MCP Clients