Skip to content

Commit 920c05d

Browse files
committed
fixed python quickstart
1 parent b0e8efa commit 920c05d

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

quickstart.mdx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ rm -rf hello.py
104104
# Create our files
105105
mkdir src
106106
mkdir src/weather
107-
touch src/__init__.py
108-
touch src/server.py
107+
touch src/weather/__init__.py
108+
touch src/weather/server.py
109109
```
110110

111111
```bash Windows
@@ -131,7 +131,20 @@ echo.> src\server.py
131131
```
132132
</CodeGroup>
133133

134-
Add this code to __init__.py:
134+
Add this code to `pyproject.toml`:
135+
136+
```toml
137+
...rest of config
138+
139+
[build-system]
140+
requires = [ "hatchling",]
141+
build-backend = "hatchling.build"
142+
143+
[project.scripts]
144+
weather = "weather:main"
145+
```
146+
147+
Add this code to `__init__.py`:
135148

136149
```python src/weather/__init__.py
137150
from . import server
@@ -410,7 +423,7 @@ Save the file, and restart **Claude Desktop**.
410423

411424
You can now test your server by running the following commands in Claude Desktop:
412425

413-
- What's the weather in Brooklyn right now?
426+
- What's the weather in Brooklyn?
414427
- What's the weather in San Francisco?
415428

416429
<Frame>

0 commit comments

Comments
 (0)