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.
1 parent 612d792 commit 71bb5baCopy full SHA for 71bb5ba
docs/first-server/python.mdx
@@ -70,7 +70,7 @@ Let's build your first MCP server in Python! We'll create a weather server that
70
from typing import Any
71
72
import httpx
73
- import anyio
+ import asyncio
74
from dotenv import load_dotenv
75
from mcp.server import Server
76
from mcp.types import (
@@ -275,11 +275,11 @@ Let's build your first MCP server in Python! We'll create a weather server that
275
276
```python
277
from . import server
278
279
280
def main():
281
"""Main entry point for the package."""
282
- anyio.run(server.main)
+ asyncio.run(server.main())
283
284
# Optionally expose other important items at package level
285
__all__ = ['main', 'server']
0 commit comments