Docs : Enhance README to suggest commands for creating a new UV project before adding mcp dependency. (#408)

This commit is contained in:
anupsajjan
2025-04-02 19:21:50 +05:30
committed by GitHub
parent 321498ab5d
commit c2ca8e03e0

View File

@@ -73,11 +73,20 @@ The Model Context Protocol allows applications to provide context for LLMs in a
### Adding MCP to your python project ### 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 If you haven't created a uv-managed project yet, create one:
uv add "mcp[cli]"
``` ```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: Alternatively, for projects using pip for dependencies:
```bash ```bash