Merge pull request #104 from modelcontextprotocol/update-server-docs
docs: add server initialization instructions to quickstart guide
This commit is contained in:
commit
a50261cd09
1 changed files with 17 additions and 7 deletions
|
|
@ -220,6 +220,16 @@ Forecast: {period['detailedForecast']}
|
|||
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.
|
||||
|
||||
Let's now test your server from an existing MCP host, Claude for Desktop.
|
||||
|
|
|
|||
Loading…
Reference in a new issue