Improve readability of CLI help option (#295)

This commit is contained in:
Marcelo Trylesinski
2025-03-17 11:24:26 +01:00
committed by GitHub
parent c8978681f6
commit 6b6f34eaa6

View File

@@ -294,15 +294,14 @@ def run(
) -> None: ) -> None:
"""Run a MCP server. """Run a MCP server.
The server can be specified in two ways: The server can be specified in two ways:\n
1. Module approach: server.py - runs the module directly, expecting a server.run() 1. Module approach: server.py - runs the module directly, expecting a server.run() call.\n
call 2. Import approach: server.py:app - imports and runs the specified server object.\n\n
2. Import approach: server.py:app - imports and runs the specified server object
Note: This command runs the server directly. You are responsible for ensuring Note: This command runs the server directly. You are responsible for ensuring
all dependencies are available. For dependency management, use mcp install all dependencies are available.\n
or mcp dev instead. For dependency management, use `mcp install` or `mcp dev` instead.
""" """ # noqa: E501
file, server_object = _parse_file_path(file_spec) file, server_object = _parse_file_path(file_spec)
logger.debug( logger.debug(