mle-kit-mcp 0.2.1__py3-none-any.whl → 0.2.3__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.
@@ -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
 
@@ -352,11 +354,17 @@ def create_remote_text_editor(
352
354
  command = args_dict["command"]
353
355
 
354
356
  if command != "write":
357
+ dir_path = "/".join(path.split("/")[:-1])
358
+ if dir_path:
359
+ recieve_rsync(instance, f"/root/{path}", f"{get_workspace_dir()}/{dir_path}")
355
360
  recieve_rsync(instance, f"/root/{path}", f"{get_workspace_dir()}")
356
361
 
357
362
  result: str = text_editor_func(*args, **kwargs)
358
363
 
359
364
  if command != "view":
365
+ dir_path = "/".join(path.split("/")[:-1])
366
+ if dir_path:
367
+ send_rsync(instance, f"{get_workspace_dir()}/{path}", f"/root/{dir_path}")
360
368
  send_rsync(instance, f"{get_workspace_dir()}/{path}", "/root")
361
369
 
362
370
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mle-kit-mcp
3
- Version: 0.2.1
3
+ Version: 0.2.3
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
@@ -8,11 +8,11 @@ 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=2Wjp6fYTGX9i6bZUhSWM5WMKh0eMc73wCdezes04bDg,12546
12
12
  mle_kit_mcp/tools/text_editor.py,sha256=0uGcSjcBjdPlqjYZYuWo29SmAMzBcWgKt4KRumFI3WE,9529
13
- mle_kit_mcp-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- mle_kit_mcp-0.2.1.dist-info/METADATA,sha256=vr7wjf5f1YveEV4oqz6cHRGT1V6oPAP7ZV9uVp2kvls,1074
15
- mle_kit_mcp-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- mle_kit_mcp-0.2.1.dist-info/entry_points.txt,sha256=-iHSUVPN49jkBj1ySpc-P0rVF5-IPHw-KWNayNIiEsk,49
17
- mle_kit_mcp-0.2.1.dist-info/top_level.txt,sha256=XeBtCq_CnVI0gh0Z_daZOLmGl5XPlkA8RgHaj5s5VQY,12
18
- mle_kit_mcp-0.2.1.dist-info/RECORD,,
13
+ mle_kit_mcp-0.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ mle_kit_mcp-0.2.3.dist-info/METADATA,sha256=fzWaPwNQaj3zdsaoLyaU_ng4OajRllWXRD_qZ-Eu_84,1074
15
+ mle_kit_mcp-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ mle_kit_mcp-0.2.3.dist-info/entry_points.txt,sha256=-iHSUVPN49jkBj1ySpc-P0rVF5-IPHw-KWNayNIiEsk,49
17
+ mle_kit_mcp-0.2.3.dist-info/top_level.txt,sha256=XeBtCq_CnVI0gh0Z_daZOLmGl5XPlkA8RgHaj5s5VQY,12
18
+ mle_kit_mcp-0.2.3.dist-info/RECORD,,