mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Docs : Enhance README to suggest commands for creating a new UV project before adding mcp dependency. (#408)
This commit is contained in:
17
README.md
17
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
|
||||
|
||||
Reference in New Issue
Block a user