From c2ca8e03e046908935d089a2ceed4e80b0c29a24 Mon Sep 17 00:00:00 2001 From: anupsajjan Date: Wed, 2 Apr 2025 19:21:50 +0530 Subject: [PATCH] Docs : Enhance README to suggest commands for creating a new UV project before adding mcp dependency. (#408) --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68969d0..05d6072 100644 --- a/README.md +++ b/README.md @@ -73,11 +73,20 @@ The Model Context Protocol allows applications to provide context for LLMs in a ### Adding MCP to your python project -We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects. In a uv managed python project, add mcp to dependencies by: +We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects. -```bash -uv add "mcp[cli]" -``` +If you haven't created a uv-managed project yet, create one: + + ```bash + uv init mcp-server-demo + cd mcp-server-demo + ``` + + Then add MCP to your project dependencies: + + ```bash + uv add "mcp[cli]" + ``` Alternatively, for projects using pip for dependencies: ```bash