docs: add server initialization instructions to quickstart guide
This commit is contained in:
parent
96d644cfd0
commit
d4285d0e25
1 changed files with 17 additions and 7 deletions
|
|
@ -220,6 +220,16 @@ Forecast: {period['detailedForecast']}
|
||||||
return "\n---\n".join(forecasts)
|
return "\n---\n".join(forecasts)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Running the server
|
||||||
|
|
||||||
|
Finally, let's initialize and run the server:
|
||||||
|
|
||||||
|
```python
|
||||||
|
if __name__ == "__main__":
|
||||||
|
# Initialize and run the server
|
||||||
|
mcp.run(transport='stdio')
|
||||||
|
```
|
||||||
|
|
||||||
Your server is complete! Run `uv run weather.py` to confirm that everything's working.
|
Your server is complete! Run `uv run weather.py` to confirm that everything's working.
|
||||||
|
|
||||||
Let's now test your server from an existing MCP host, Claude for Desktop.
|
Let's now test your server from an existing MCP host, Claude for Desktop.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue