Skip to content

Commit e03aecd

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ python server.py
387387
mcp run server.py
388388
```
389389

390+
Note that `mcp run` or `mcp dev` only supports server using FastMCP and not the low-level server variant.
391+
390392
### Streamable HTTP Transport
391393

392394
> **Note**: Streamable HTTP transport is superseding SSE transport for production deployments.
@@ -457,7 +459,6 @@ The streamable HTTP transport supports:
457459
- JSON or SSE response formats
458460
- Better scalability for multi-node deployments
459461

460-
461462
### Mounting to an Existing ASGI Server
462463

463464
> **Note**: SSE transport is being superseded by [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http).
@@ -694,6 +695,8 @@ if __name__ == "__main__":
694695
asyncio.run(run())
695696
```
696697

698+
Caution: The `mcp run` and `mcp dev` tool doesn't support low-level server.
699+
697700
### Writing MCP Clients
698701

699702
The SDK provides a high-level client interface for connecting to MCP servers using various [transports](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports):

0 commit comments

Comments
 (0)