Skip to content

Commit 71bb5ba

Browse files
authored
use asyncio.run
1 parent 612d792 commit 71bb5ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/first-server/python.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Let's build your first MCP server in Python! We'll create a weather server that
7070
from typing import Any
7171

7272
import httpx
73-
import anyio
73+
import asyncio
7474
from dotenv import load_dotenv
7575
from mcp.server import Server
7676
from mcp.types import (
@@ -275,11 +275,11 @@ Let's build your first MCP server in Python! We'll create a weather server that
275275

276276
```python
277277
from . import server
278-
import anyio
278+
import asyncio
279279

280280
def main():
281281
"""Main entry point for the package."""
282-
anyio.run(server.main)
282+
asyncio.run(server.main())
283283

284284
# Optionally expose other important items at package level
285285
__all__ = ['main', 'server']

0 commit comments

Comments
 (0)