We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c14fce9 + a0cf19a commit 69b393fCopy full SHA for 69b393f
docs/docs/develop/build-server.mdx
@@ -252,9 +252,12 @@ Forecast: {period['detailedForecast']}
252
Finally, let's initialize and run the server:
253
254
```python
255
-if __name__ == "__main__":
+def main():
256
# Initialize and run the server
257
mcp.run(transport='stdio')
258
+
259
+if __name__ == "__main__":
260
+ main()
261
```
262
263
Your server is complete! Run `uv run weather.py` to start the MCP server, which will listen for messages from MCP hosts.
0 commit comments