universal-mcp-applications 0.1.9__py3-none-any.whl → 0.1.10__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.

Potentially problematic release.


This version of universal-mcp-applications might be problematic. Click here for more details.

@@ -93,26 +93,38 @@ class E2bApp(APIApplication):
93
93
  logger.info("E2B API Key successfully retrieved and cached.")
94
94
  return self._e2b_api_key
95
95
 
96
- def _format_execution_output(self, logs: Any) -> str:
96
+ def _format_execution_output(self, execution: Any) -> str:
97
97
  """Helper function to format the E2B execution logs nicely."""
98
98
  output_parts = []
99
99
 
100
- # Safely access stdout and stderr
101
- stdout_log = getattr(logs, "stdout", [])
102
- stderr_log = getattr(logs, "stderr", [])
103
-
104
- if stdout_log:
105
- stdout_content = "".join(stdout_log).strip()
106
- if stdout_content:
107
- output_parts.append(f"{stdout_content}")
100
+ try:
101
+ logs = getattr(execution, "logs", None)
102
+
103
+ if logs is not None:
104
+ # Collect stdout
105
+ if getattr(logs, "stdout", None):
106
+ stdout_content = "".join(logs.stdout).strip()
107
+ if stdout_content:
108
+ output_parts.append(stdout_content)
109
+
110
+ # Collect stderr
111
+ if getattr(logs, "stderr", None):
112
+ stderr_content = "".join(logs.stderr).strip()
113
+ if stderr_content:
114
+ output_parts.append(f"--- ERROR ---\n{stderr_content}")
115
+
116
+ # Fallback: check execution.text (covers expressions returning values)
117
+ if not output_parts and hasattr(execution, "text"):
118
+ text_content = str(execution.text).strip()
119
+ if text_content:
120
+ output_parts.append(text_content)
108
121
 
109
- if stderr_log:
110
- stderr_content = "".join(stderr_log).strip()
111
- if stderr_content:
112
- output_parts.append(f"--- ERROR ---\n{stderr_content}")
122
+ except Exception as e:
123
+ output_parts.append(f"Failed to format execution output: {e}")
113
124
 
114
125
  if not output_parts:
115
126
  return "Execution finished with no output (stdout/stderr)."
127
+
116
128
  return "\n\n".join(output_parts)
117
129
 
118
130
  def execute_python_code(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: universal-mcp-applications
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: A Universal MCP Application: universal_mcp_applications
5
5
  Project-URL: Homepage, https://github.com/universal-mcp/applications
6
6
  Project-URL: Repository, https://github.com/universal-mcp/applications
@@ -57,7 +57,7 @@ universal_mcp/applications/domain_checker/__init__.py,sha256=4s7K0D6jORpJAUySJS1
57
57
  universal_mcp/applications/domain_checker/app.py,sha256=R-uXWkG0pMrdyAGgsIxBGLfxbChB05d02xN5mj5NEPI,9915
58
58
  universal_mcp/applications/e2b/README.md,sha256=King2LmyUlseNZ76c3bmsJCxg8PHhCQMzVcN35l_-qc,296
59
59
  universal_mcp/applications/e2b/__init__.py,sha256=hL17jBumsx-oi93AAIFCoDdoP7zQElnrTjnCDc7NBH4,24
60
- universal_mcp/applications/e2b/app.py,sha256=qWpOtGf1YkQXWVu6igKrWj03wcrtS8zAMtaQOtTM56I,6834
60
+ universal_mcp/applications/e2b/app.py,sha256=Hx_mf2q25Rtw9VPO5tPPTaJs6BQK0rVvDLJJ9ghMZac,7364
61
61
  universal_mcp/applications/elevenlabs/README.md,sha256=xftSdiuQjBLyx9uYK7re4uUp2Pwrni5678-O2Tzqu2I,10940
62
62
  universal_mcp/applications/elevenlabs/__init__.py,sha256=2ojwxRFjYEwBieAqUZlPJulRfOaoPrCrqeEiZNxG48M,31
63
63
  universal_mcp/applications/elevenlabs/app.py,sha256=bQQOi6KhqtYygcQLFv7abOeV54kpkmABUgZhIjPC72U,4886
@@ -267,7 +267,7 @@ universal_mcp/applications/youtube/app.py,sha256=hhKqnbXvMAyOW3LOqp-ODPdIuQorr1n
267
267
  universal_mcp/applications/zenquotes/README.md,sha256=x1mZHjNKD4WOgsIhedcbbaR1nvbt794GSrKud1tSLD0,296
268
268
  universal_mcp/applications/zenquotes/__init__.py,sha256=IkASLYaZiHJXlkGwEMk1HgIq5GwEZp5GhAIiJyjBd3g,30
269
269
  universal_mcp/applications/zenquotes/app.py,sha256=6v8trNWjxbixdlEyaM-gJbfY8z9ZAmkIzSUks_fbsT4,1076
270
- universal_mcp_applications-0.1.9.dist-info/METADATA,sha256=WDVudmb54yXf4ekHrSDEiWO2R8fGeGf-IqN6clCcjdk,3918
271
- universal_mcp_applications-0.1.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
272
- universal_mcp_applications-0.1.9.dist-info/licenses/LICENSE,sha256=NweDZVPslBAZFzlgByF158b85GR0f5_tLQgq1NS48To,1063
273
- universal_mcp_applications-0.1.9.dist-info/RECORD,,
270
+ universal_mcp_applications-0.1.10.dist-info/METADATA,sha256=hzfvZju9HSY-HVpgXq5G8A5NRqVZBL5TKni4wcLZHAE,3919
271
+ universal_mcp_applications-0.1.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
272
+ universal_mcp_applications-0.1.10.dist-info/licenses/LICENSE,sha256=NweDZVPslBAZFzlgByF158b85GR0f5_tLQgq1NS48To,1063
273
+ universal_mcp_applications-0.1.10.dist-info/RECORD,,