From 30018f6ef5d6241791c4dd2b28c21609bca17688 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Thu, 21 Nov 2024 13:14:33 +0000 Subject: [PATCH] Minor tweaks to Python "first server" intro --- docs/first-server/python.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/first-server/python.mdx b/docs/first-server/python.mdx index 73ac3b8..5d38acb 100644 --- a/docs/first-server/python.mdx +++ b/docs/first-server/python.mdx @@ -11,6 +11,10 @@ Let's build your first MCP server in Python! We'll create a weather server that ## Prerequisites + + The following steps are for macOS. Guides for other platforms are coming soon. + + You'll need Python 3.10 or higher: @@ -21,7 +25,9 @@ Let's build your first MCP server in Python! We'll create a weather server that ``` - + + See https://docs.astral.sh/uv/ for more information. + ```bash brew install uv uv --version # Should be 0.4.18 or higher @@ -54,14 +60,8 @@ Let's build your first MCP server in Python! We'll create a weather server that ## Create your server - - ```bash - touch weather_server.py - ``` - - - In `weather_server.py`: + Create a file `weather_server.py` and add the following: ```python import os