Skip to content

Commit 6f69caf

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

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]:
@@ -153,7 +153,7 @@ async def async_prepare_deno_env(
153153
http_port: int | None = None,
154154
http_host: str | None = None,
155155
dependencies: list[str] | None = None,
156-
return_mode: Literal["json", "xml"] = "xml",
156+
return_mode: Literal['json', 'xml'] = 'xml',
157157
deps_log_handler: LogHandler | None = None,
158158
allow_networking: bool = True,
159159
) -> AsyncIterator[DenoEnv]:
@@ -195,7 +195,7 @@ def _deno_run_args(
195195
http_port: int | None = None,
196196
http_host: str | None = None,
197197
dependencies: list[str] | None = None,
198-
return_mode: Literal["json", "xml"] = "xml",
198+
return_mode: Literal['json', 'xml'] = 'xml',
199199
allow_networking: bool = True,
200200
) -> list[str]:
201201
args = ["run"]
@@ -225,6 +225,4 @@ def _deno_run_args(
225225

226226

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

0 commit comments

Comments
 (0)