Skip to content

Commit 5d42e59

Browse files
authored
Update server.py
1 parent f685b9a commit 5d42e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def run(self, transport: Literal["stdio", "sse"] = "stdio") -> None:
157157
if transport not in TRANSPORTS.__args__: # type: ignore
158158
raise ValueError(f"Unknown transport: {transport}")
159159

160-
def run(): self._run(transport)
160+
async def run(): await self._run(transport)
161161
anyio.run(run)
162162

163163
async def _run(self, transport: Literal["stdio", "sse"]):

0 commit comments

Comments
 (0)