Skip to content

Commit 25de859

Browse files
author
luoshasha
committed
fix: remove cli default value to make test happy.
1 parent cf9e3cf commit 25de859

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mcp_run_python/_cli.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ 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 to bind to all interfaces, e.g. when using 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 to bind to all interfaces, e.g. when using 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')
27-
parser.add_argument(
28-
'--disable-networking', action='store_true', help='Disable networking during execution of python code'
29-
)
26+
parser.add_argument( '--disable-networking', action='store_true', help='Disable networking during execution of python code' )
3027
parser.add_argument('--verbose', action='store_true', help='Enable verbose logging')
3128
parser.add_argument('--version', action='store_true', help='Show version and exit')
3229
parser.add_argument(

0 commit comments

Comments
 (0)