Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 9d1651f

Browse files
author
luoshasha
committed
fix: add host to cli error info.
1 parent aa41469 commit 9d1651f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

mcp_run_python/main.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def prepare_deno_env(
8383
http_port: int | None = None,
8484
http_host: str | None = None,
8585
dependencies: list[str] | None = None,
86-
return_mode: Literal["json", "xml"] = "xml",
86+
return_mode: Literal['json', 'xml'] = 'xml',
8787
deps_log_handler: LogHandler | None = None,
8888
allow_networking: bool = True,
8989
) -> Iterator[DenoEnv]:
@@ -151,7 +151,7 @@ async def async_prepare_deno_env(
151151
http_port: int | None = None,
152152
http_host: str | None = None,
153153
dependencies: list[str] | None = None,
154-
return_mode: Literal["json", "xml"] = "xml",
154+
return_mode: Literal['json', 'xml'] = 'xml',
155155
deps_log_handler: LogHandler | None = None,
156156
allow_networking: bool = True,
157157
) -> AsyncIterator[DenoEnv]:
@@ -193,7 +193,7 @@ def _deno_run_args(
193193
http_port: int | None = None,
194194
http_host: str | None = None,
195195
dependencies: list[str] | None = None,
196-
return_mode: Literal["json", "xml"] = "xml",
196+
return_mode: Literal['json', 'xml'] = 'xml',
197197
allow_networking: bool = True,
198198
) -> list[str]:
199199
args = ['run']
@@ -223,6 +223,4 @@ def _deno_run_args(
223223

224224

225225
async def _asyncify(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> T:
226-
return await asyncio.get_event_loop().run_in_executor(
227-
None, partial(func, *args, **kwargs)
228-
)
226+
return await asyncio.get_event_loop().run_in_executor(None, partial(func, *args, **kwargs))

0 commit comments

Comments
 (0)