Skip to content

Commit c2ca8e0

Browse files
authored
Docs : Enhance README to suggest commands for creating a new UV project before adding mcp dependency. (#408)
1 parent 321498a commit c2ca8e0

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Diff for: README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,20 @@ The Model Context Protocol allows applications to provide context for LLMs in a
7373

7474
### Adding MCP to your python project
7575

76-
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:
76+
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects.
7777

78-
```bash
79-
uv add "mcp[cli]"
80-
```
78+
If you haven't created a uv-managed project yet, create one:
79+
80+
```bash
81+
uv init mcp-server-demo
82+
cd mcp-server-demo
83+
```
84+
85+
Then add MCP to your project dependencies:
86+
87+
```bash
88+
uv add "mcp[cli]"
89+
```
8190

8291
Alternatively, for projects using pip for dependencies:
8392
```bash

0 commit comments

Comments
 (0)