From 71bb5ba66bdd406dc17cdf85f83912969689e7ef Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 25 Nov 2024 19:35:09 +0000 Subject: [PATCH] use asyncio.run --- docs/first-server/python.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/first-server/python.mdx b/docs/first-server/python.mdx index 54c1305..12559a1 100644 --- a/docs/first-server/python.mdx +++ b/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 from typing import Any import httpx - import anyio + import asyncio from dotenv import load_dotenv from mcp.server import Server from mcp.types import ( @@ -275,11 +275,11 @@ Let's build your first MCP server in Python! We'll create a weather server that ```python from . import server - import anyio + import asyncio def main(): """Main entry point for the package.""" - anyio.run(server.main) + asyncio.run(server.main()) # Optionally expose other important items at package level __all__ = ['main', 'server']