Minor tweaks to Python "first server" intro
This commit is contained in:
parent
bf595f70a5
commit
30018f6ef5
1 changed files with 8 additions and 8 deletions
|
|
@ -11,6 +11,10 @@ Let's build your first MCP server in Python! We'll create a weather server that
|
|||
|
||||
## Prerequisites
|
||||
|
||||
<Info>
|
||||
The following steps are for macOS. Guides for other platforms are coming soon.
|
||||
</Info>
|
||||
|
||||
<Steps>
|
||||
<Step title="Install Python">
|
||||
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
|
|||
```
|
||||
</Step>
|
||||
|
||||
<Step title="Install uv (https://docs.astral.sh/uv/) via homebrew">
|
||||
<Step title="Install uv via homebrew">
|
||||
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
|
||||
|
||||
<Steps>
|
||||
<Step title="Create project structure">
|
||||
```bash
|
||||
touch weather_server.py
|
||||
```
|
||||
</Step>
|
||||
|
||||
<Step title="Add the base code">
|
||||
In `weather_server.py`:
|
||||
Create a file `weather_server.py` and add the following:
|
||||
|
||||
```python
|
||||
import os
|
||||
|
|
|
|||
Loading…
Reference in a new issue