8000 fix: Add documentation on mcp run doesn't support low-level server · modelcontextprotocol/python-sdk@a3621c9 · GitHub
[go: up one dir, main page]

Skip to content < 8000 span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis">

Commit a3621c9

Browse files
committed
fix: Add documentation on mcp run doesn't support low-level server
1 parent e302097 commit a3621c9

File tree

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ python server.py
351351
mcp run server.py
352352
```
353353

354+
Note that `mcp run` or `mcp dev` only supports server using FastMCP and not the low-level server variant.
355+
354356
### Mounting to an Existing ASGI Server
355357

356358
You can mount the SSE server to an existing ASGI server using the `sse_app` method. This allows you to integrate the SSE server with other ASGI applications.
@@ -546,6 +548,8 @@ if __name__ == "__main__":
546548
asyncio.run(run())
547549
```
548550

551+
Caution: The `mcp run` and `mcp dev` tool doesn't support low-level server.
552+
549553
### Writing MCP Clients
550554

551555
The SDK provides a high-level client interface for connecting to MCP servers:

0 commit comments

Comments
 (0)
0