File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ rm -rf hello.py
104
104
# Create our files
105
105
mkdir src
106
106
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
109
109
```
110
110
111
111
``` bash Windows
@@ -131,7 +131,20 @@ echo.> src\server.py
131
131
```
132
132
</CodeGroup >
133
133
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 ` :
135
148
136
149
``` python src/weather/__init__.py
137
150
from . import server
@@ -410,7 +423,7 @@ Save the file, and restart **Claude Desktop**.
410
423
411
424
You can now test your server by running the following commands in Claude Desktop:
412
425
413
- - What's the weather in Brooklyn right now ?
426
+ - What's the weather in Brooklyn?
414
427
- What's the weather in San Francisco?
415
428
416
429
<Frame >
You can’t perform that action at this time.
0 commit comments