Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Fix module mode docstring example order

dgeniod35ce8dd2eb1
diff --git a/src/fastmcp/cli/cli.py b/src/fastmcp/cli/cli.py
index 777f067f5..bdacd4851 100644
--- a/src/fastmcp/cli/cli.py
+++ b/src/fastmcp/cli/cli.py
@@ -456,7 +456,7 @@ async def run(
4. MCPConfig file: "mcp.json" - runs as a proxy server for the MCP Servers in the MCPConfig file
5. FastMCP config: "fastmcp.json" - runs server using FastMCP configuration
6. No argument: looks for fastmcp.json in current directory
- 7. Module mode: "my_module -m" - runs the module directly via python -m
+ 7. Module mode: "-m my_module" - runs the module directly via python -m
Server arguments can be passed after -- :
fastmcp run server.py -- --config config.json --debug