Skip to content

Commit 738571d

Browse files
author
luoshasha
committed
fix: add host to cli error info.
1 parent 35a93ab commit 738571d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mcp_run_python/_cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def cli_logic(args_list: Sequence[str] | None = None) -> int:
2020
description=f'mcp-run-python CLI v{__version__}\n\nMCP server for running untrusted Python code.\n',
2121
formatter_class=argparse.RawTextHelpFormatter,
2222
)
23-
parser.add_argument('--host', type=str, default='127.0.0.1',
24-
help='Host to bind the HTTP server to (default: 127.0.0.1). Use 0.0.0.0 for Docker.')
23+
parser.add_argument('--host', type=str, help='Host to bind the HTTP server to (default: 127.0.0.1). Use 0.0.0.0 for Docker.')
2524
parser.add_argument('--port', type=int, help='Port to run the server on, default 3001.')
2625
parser.add_argument('--deps', '--dependencies', help='Comma separated list of dependencies to install')
2726
parser.add_argument(

mcp_run_python/deno/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Usage: deno ... deno/main.ts [stdio|streamable_http|install_deps|noop]
5252
5353
options:
5454
--port <port> Port to run the HTTP server on (default: 3001)
55+
--host <host> Host to bind to (default: 127.0.0.1)
5556
--deps <deps> Comma separated list of dependencies to install
5657
--return-mode <xml/json> Return mode for output data (default: xml)`
5758
);

0 commit comments

Comments
 (0)