From 12737871adf0836b3068023c2d1b0ceba188ad7a Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Thu, 21 Nov 2024 14:59:51 +0000 Subject: [PATCH] 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. --- docs/first-server/python.mdx | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/first-server/python.mdx b/docs/first-server/python.mdx index da7fdef..8936a9d 100644 --- a/docs/first-server/python.mdx +++ b/docs/first-server/python.mdx @@ -33,17 +33,16 @@ Let's build your first MCP server in Python! We'll create a weather server that ``` - + ```bash - mkdir weather-service - cd weather-service - uv init --package --app --name weather-service + uvx create-mcp-server --path weather_service + cd weather_service ``` - + ```bash - uv add mcp requests python-dotenv + uv add requests python-dotenv ``` @@ -59,13 +58,6 @@ Let's build your first MCP server in Python! We'll create a weather server that ## Create your server - - ```bash - mkdir -p weather_service/src/weather_service - touch weather_service/src/weather_service/server.py - ``` - - In `weather_service/src/weather_service/server.py` ```python