mle-kit-mcp 0.2.0__tar.gz → 0.2.2__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.
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/PKG-INFO +1 -1
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/server.py +2 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/tools/remote_gpu.py +2 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/PKG-INFO +1 -1
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/pyproject.toml +1 -1
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/LICENSE +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/README.md +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/__init__.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/__main__.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/files.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/llm_proxy.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/py.typed +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/tools/__init__.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/tools/bash.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/tools/llm_proxy.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/tools/text_editor.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp/utils.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/SOURCES.txt +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/dependency_links.txt +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/entry_points.txt +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/requires.txt +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/mle_kit_mcp.egg-info/top_level.txt +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/setup.cfg +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/tests/test_bash.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/tests/test_llm_proxy.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/tests/test_text_editor.py +0 -0
- {mle_kit_mcp-0.2.0 → mle_kit_mcp-0.2.2}/tests/test_truncate_context.py +0 -0
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|