Skip to content

Commit 1273787

Browse files
committed
Update Python guide to use create-mcp-server
The guide now uses the official MCP project creator tool instead of manual project setup. This simplifies the initial setup process and ensures a consistent project structure, while still maintaining the same functionality.
1 parent 0854b8e commit 1273787

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

docs/first-server/python.mdx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ Let's build your first MCP server in Python! We'll create a weather server that
3333
```
3434
</Step>
3535

36-
<Step title="Create a new project">
36+
<Step title="Create a new project using the MCP project creator">
3737
```bash
38-
mkdir weather-service
39-
cd weather-service
40-
uv init --package --app --name weather-service
38+
uvx create-mcp-server --path weather_service
39+
cd weather_service
4140
```
4241
</Step>
4342

44-
<Step title="Install dependencies">
43+
<Step title="Install additional dependencies">
4544
```bash
46-
uv add mcp requests python-dotenv
45+
uv add requests python-dotenv
4746
```
4847
</Step>
4948

@@ -59,13 +58,6 @@ Let's build your first MCP server in Python! We'll create a weather server that
5958
## Create your server
6059

6160
<Steps>
62-
<Step title="Create project structure">
63-
```bash
64-
mkdir -p weather_service/src/weather_service
65-
touch weather_service/src/weather_service/server.py
66-
```
67-
</Step>
68-
6961
<Step title="Add the base imports and setup">
7062
In `weather_service/src/weather_service/server.py`
7163
```python

0 commit comments

Comments
 (0)