mle-kit-mcp 0.0.4__tar.gz → 0.0.6__tar.gz

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.
Files changed (24) hide show
  1. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/PKG-INFO +1 -5
  2. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/tools/bash.py +1 -1
  3. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/tools/remote_gpu.py +8 -3
  4. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/tools/text_editor.py +0 -1
  5. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/PKG-INFO +1 -5
  6. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/requires.txt +0 -4
  7. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/pyproject.toml +8 -4
  8. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/LICENSE +0 -0
  9. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/README.md +0 -0
  10. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/__init__.py +0 -0
  11. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/__main__.py +0 -0
  12. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/files.py +0 -0
  13. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/py.typed +0 -0
  14. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/server.py +0 -0
  15. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/tools/__init__.py +0 -0
  16. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp/utils.py +0 -0
  17. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/SOURCES.txt +0 -0
  18. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/dependency_links.txt +0 -0
  19. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/entry_points.txt +0 -0
  20. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/mle_kit_mcp.egg-info/top_level.txt +0 -0
  21. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/setup.cfg +0 -0
  22. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/tests/test_bash.py +0 -0
  23. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/tests/test_text_editor.py +0 -0
  24. {mle_kit_mcp-0.0.4 → mle_kit_mcp-0.0.6}/tests/test_truncate_context.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mle-kit-mcp
3
- Version: 0.0.4
3
+ Version: 0.0.6
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
@@ -11,13 +11,9 @@ Requires-Python: >=3.12
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: mcp>=1.9.2
14
- Requires-Dist: black==25.1.0
15
- Requires-Dist: mypy==1.16.0
16
- Requires-Dist: flake8==7.2.0
17
14
  Requires-Dist: fire>=0.7.0
18
15
  Requires-Dist: docker>=7.1.0
19
16
  Requires-Dist: vastai-sdk==0.1.16
20
- Requires-Dist: pytest>=8.4.1
21
17
  Dynamic: license-file
22
18
 
23
19
  # MLE KIT MCP
@@ -9,7 +9,7 @@ from mle_kit_mcp.files import get_workspace_dir
9
9
  _container = None
10
10
  _client = None
11
11
 
12
- BASE_IMAGE = "python:3.9-slim"
12
+ BASE_IMAGE = "python:3.12-slim"
13
13
  DOCKER_WORKSPACE_DIR_PATH = "/workdir"
14
14
 
15
15
 
@@ -37,10 +37,10 @@ _instance_info: Optional[InstanceInfo] = None
37
37
 
38
38
 
39
39
  def cleanup_machine(signum: Optional[Any] = None, frame: Optional[Any] = None) -> None:
40
- print("Cleaning up...")
41
40
  global _instance_info
42
41
  signal.alarm(0)
43
42
  if _instance_info and _sdk:
43
+ print("Cleaning up...")
44
44
  try:
45
45
  _sdk.destroy_instance(id=_instance_info.instance_id)
46
46
  _instance_info = None
@@ -125,8 +125,11 @@ def run_command(
125
125
  )
126
126
  except subprocess.TimeoutExpired:
127
127
  raise Exception(
128
- f"Command timed out after {timeout} seconds: {command}; "
129
- f"Host: {instance.username}@{instance.ip}:{instance.port}"
128
+ f"Command timed out after {timeout} seconds: {command};\n"
129
+ f"Host: {instance.username}@{instance.ip}:{instance.port}\n"
130
+ f"Captured output: {result.stdout}\n"
131
+ f"Captured error: {result.stderr}\n"
132
+ f"You can increase the timeout by setting the timeout parameter to a higher value."
130
133
  )
131
134
  return result
132
135
 
@@ -178,6 +181,8 @@ def launch_instance(vast_sdk: VastAI, gpu_name: str) -> Optional[InstanceInfo]:
178
181
  offer_ids = get_offers(vast_sdk, gpu_name)
179
182
 
180
183
  instance_id = None
184
+ info: Optional[InstanceInfo] = None
185
+
181
186
  for offer_id in offer_ids:
182
187
  print(f"Launching offer {offer_id}...")
183
188
  instance = vast_sdk.create_instance(id=offer_id, image=BASE_IMAGE, disk=50.0)
@@ -136,7 +136,6 @@ def text_editor(
136
136
  If `path` is a file and `show_lines` is True, `view` displays the result of applying `cat -n`.
137
137
  If `path` is a file and `show_lines` is False, `view` displays the result of applying `cat`.
138
138
  If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep.
139
- The `write` command cannot be used if the specified `path` already exists as a file.
140
139
  If a `command` generates a long output, it will be truncated and marked with `<response clipped>`.
141
140
  The `undo_edit` command will revert the last edit made to the file at `path`.
142
141
  Always write arguments with keys, do not rely on positions.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mle-kit-mcp
3
- Version: 0.0.4
3
+ Version: 0.0.6
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
@@ -11,13 +11,9 @@ Requires-Python: >=3.12
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: mcp>=1.9.2
14
- Requires-Dist: black==25.1.0
15
- Requires-Dist: mypy==1.16.0
16
- Requires-Dist: flake8==7.2.0
17
14
  Requires-Dist: fire>=0.7.0
18
15
  Requires-Dist: docker>=7.1.0
19
16
  Requires-Dist: vastai-sdk==0.1.16
20
- Requires-Dist: pytest>=8.4.1
21
17
  Dynamic: license-file
22
18
 
23
19
  # MLE KIT MCP
@@ -1,8 +1,4 @@
1
1
  mcp>=1.9.2
2
- black==25.1.0
3
- mypy==1.16.0
4
- flake8==7.2.0
5
2
  fire>=0.7.0
6
3
  docker>=7.1.0
7
4
  vastai-sdk==0.1.16
8
- pytest>=8.4.1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mle-kit-mcp"
7
- version = "0.0.4"
7
+ version = "0.0.6"
8
8
  description = "MCP server that provides different tools for MLE"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -18,12 +18,16 @@ classifiers = [
18
18
  ]
19
19
  dependencies = [
20
20
  "mcp>=1.9.2",
21
- "black==25.1.0",
22
- "mypy==1.16.0",
23
- "flake8==7.2.0",
24
21
  "fire>=0.7.0",
25
22
  "docker>=7.1.0",
26
23
  "vastai-sdk==0.1.16",
24
+ ]
25
+
26
+ [dependency-groups]
27
+ dev = [
28
+ "black==25.1.0",
29
+ "mypy==1.16.0",
30
+ "flake8==7.2.0",
27
31
  "pytest>=8.4.1",
28
32
  ]
29
33
 
File without changes
File without changes
File without changes