mle-kit-mcp 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mle_kit_mcp/server.py CHANGED
@@ -5,6 +5,7 @@ from typing import Optional
5
5
  import fire # type: ignore
6
6
  import uvicorn
7
7
  from mcp.server.fastmcp import FastMCP
8
+ from dotenv import load_dotenv
8
9
 
9
10
  from .tools.bash import bash
10
11
  from .tools.text_editor import text_editor
@@ -21,6 +22,7 @@ from .files import get_workspace_dir, WorkspaceDirectory
21
22
 
22
23
 
23
24
  def run(host: str = "0.0.0.0", port: int = 5050, workspace: Optional[str] = None) -> None:
25
+ load_dotenv()
24
26
  if workspace:
25
27
  WorkspaceDirectory.set_dir(Path(workspace))
26
28
  workspace_path = get_workspace_dir()
@@ -322,6 +322,8 @@ def remote_bash(command: str, timeout: int = 60) -> str:
322
322
  result = run_command(instance, command, timeout=timeout)
323
323
  output = ("Command stdout: " + result.stdout + "\n") if result.stdout else ""
324
324
  output += ("Command stderr: " + result.stderr) if result.stderr else ""
325
+ if not output.strip():
326
+ output = "No output from the command"
325
327
  return output
326
328
 
327
329
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mle-kit-mcp
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: MCP server that provides different tools for MLE
5
5
  Author-email: Ilya Gusev <phoenixilya@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/IlyaGusev/mle_kit_mcp
@@ -3,16 +3,16 @@ mle_kit_mcp/__main__.py,sha256=rcmsOtJd3SA82exjrcGBuxuptcoxF8AXI7jNjiVq2BY,59
3
3
  mle_kit_mcp/files.py,sha256=ux53kWw7hBAcOmS9qNI4gpQX8XcQPT2LICC--S5-TGI,635
4
4
  mle_kit_mcp/llm_proxy.py,sha256=zDfNDvG1nAkft-irj0KhdB-1z-UUtKweRJYG0fCveVE,1637
5
5
  mle_kit_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- mle_kit_mcp/server.py,sha256=W4YJ3m1-NKheJ5QlGggfMQyXPghzKgg5zXqb-TLYH1U,1271
6
+ mle_kit_mcp/server.py,sha256=R59DC7HVdpPcGHVXghPGUhrRKfn9Uqmy2MPkaYNfyzw,1320
7
7
  mle_kit_mcp/utils.py,sha256=iHNcEZZzPD37bEYE18SzJ3WUjLP3Ym-kc91SwcW1vlI,1984
8
8
  mle_kit_mcp/tools/__init__.py,sha256=r2fIg2mZ6zaeq0CzEKCEdeUTjV0pcA9NZaaOfBNVTnE,332
9
9
  mle_kit_mcp/tools/bash.py,sha256=kunYHc3dyPGOooT-KY9L7eI_N22lBrcDbTlcp_yTTws,2820
10
10
  mle_kit_mcp/tools/llm_proxy.py,sha256=RHW-PgxNnq2rs3sLJCA_CHNGt2ar1DYN2U0OlRjvDZ0,5234
11
- mle_kit_mcp/tools/remote_gpu.py,sha256=DgfRkMVKn1HYLLboo3nkVIy1qcTlsX4xADQCAHckp_I,12130
11
+ mle_kit_mcp/tools/remote_gpu.py,sha256=CiGoRL8nwgJN_gtSm0CI6qfYM71jD15y3xSl_91ejEE,12203
12
12
  mle_kit_mcp/tools/text_editor.py,sha256=0uGcSjcBjdPlqjYZYuWo29SmAMzBcWgKt4KRumFI3WE,9529
13
- mle_kit_mcp-0.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- mle_kit_mcp-0.2.0.dist-info/METADATA,sha256=BbJCb7Y1ep9BIeJk5MpEOEqxSCf3RRd3vBpCqJZDbuM,1074
15
- mle_kit_mcp-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- mle_kit_mcp-0.2.0.dist-info/entry_points.txt,sha256=-iHSUVPN49jkBj1ySpc-P0rVF5-IPHw-KWNayNIiEsk,49
17
- mle_kit_mcp-0.2.0.dist-info/top_level.txt,sha256=XeBtCq_CnVI0gh0Z_daZOLmGl5XPlkA8RgHaj5s5VQY,12
18
- mle_kit_mcp-0.2.0.dist-info/RECORD,,
13
+ mle_kit_mcp-0.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ mle_kit_mcp-0.2.2.dist-info/METADATA,sha256=ipFifawHzN_MYiOXosclk7Aj22FCEfiV5byHUl-YWqY,1074
15
+ mle_kit_mcp-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ mle_kit_mcp-0.2.2.dist-info/entry_points.txt,sha256=-iHSUVPN49jkBj1ySpc-P0rVF5-IPHw-KWNayNIiEsk,49
17
+ mle_kit_mcp-0.2.2.dist-info/top_level.txt,sha256=XeBtCq_CnVI0gh0Z_daZOLmGl5XPlkA8RgHaj5s5VQY,12
18
+ mle_kit_mcp-0.2.2.dist-info/RECORD,,