Skip to content

Commit 6dc0745

Browse files
author
luoshasha
committed
fix: add host to cli error info.
1 parent 8842544 commit 6dc0745

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mcp_run_python/main.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def prepare_deno_env(
8585
http_port: int | None = None,
8686
http_host: str | None = None,
8787
dependencies: list[str] | None = None,
88-
return_mode: Literal["json", "xml"] = "xml",
88+
return_mode: Literal['json', 'xml'] = 'xml',
8989
deps_log_handler: LogHandler | None = None,
9090
allow_networking: bool = True,
9191
) -> Iterator[DenoEnv]:
@@ -155,7 +155,7 @@ async def async_prepare_deno_env(
155155
http_port: int | None = None,
156156
http_host: str | None = None,
157157
dependencies: list[str] | None = None,
158-
return_mode: Literal["json", "xml"] = "xml",
158+
return_mode: Literal['json', 'xml'] = 'xml',
159159
deps_log_handler: LogHandler | None = None,
160160
allow_networking: bool = True,
161161
) -> AsyncIterator[DenoEnv]:
@@ -197,7 +197,7 @@ def _deno_run_args(
197197
http_port: int | None = None,
198198
http_host: str | None = None,
199199
dependencies: list[str] | None = None,
200-
return_mode: Literal["json", "xml"] = "xml",
200+
return_mode: Literal['json', 'xml'] = 'xml',
201201
allow_networking: bool = True,
202202
) -> list[str]:
203203
args = ["run"]
@@ -227,6 +227,4 @@ def _deno_run_args(
227227

228228

229229
async def _asyncify(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> T:
230-
return await asyncio.get_event_loop().run_in_executor(
231-
None, partial(func, *args, **kwargs)
232-
)
230+
return await asyncio.get_event_loop().run_in_executor(None, partial(func, *args, **kwargs))

0 commit comments

Comments
 (0)