Agent Zero AI framework
switch cloudflare to serveo for SSE
frdel9d4e115e2c30
diff --git a/python/helpers/mcp_handler.py b/python/helpers/mcp_handler.pyindex 024853d41..c59192071 100644--- a/python/helpers/mcp_handler.py+++ b/python/helpers/mcp_handler.py@@ -703,12 +703,12 @@ class MCPConfig(BaseModel):if server.name in server_names:server_name = server.nameprompt += f"### {server_name}\n"- prompt += f"{server.description}\n\n"+ prompt += f"{server.description}\n"tools = server.get_tools()for tool in tools:prompt += (- f"### {server_name}.{tool['name']}:\n"+ f"\n### {server_name}.{tool['name']}:\n"f"{tool['description']}\n\n"# f"#### Categories:\n"# f"* kind: MCP Server Tool\n"diff --git a/python/helpers/tunnel_manager.py b/python/helpers/tunnel_manager.pyindex 1c0251f47..d58979a5c 100644--- a/python/helpers/tunnel_manager.py+++ b/python/helpers/tunnel_manager.py@@ -1,4 +1,4 @@-from flaredantic import FlareTunnel, FlareConfig+from flaredantic import FlareTunnel, FlareConfig, ServeoConfig, ServeoTunnelimport threading@@ -24,18 +24,24 @@ class TunnelManager:if self.is_running and self.tunnel_url:return self.tunnel_url++ # switched to serveo to support SSE MCP server+# Create and start a new tunnel- config = FlareConfig(- port=port,- verbose=True,- timeout=60, # Increase timeout from default 30 to 60 seconds- )+ # config = FlareConfig(+ # port=port,+ # verbose=True,+ # timeout=60, # Increase timeout from default 30 to 60 seconds+ # )++ config = ServeoConfig(port=port) # type: ignoretry:# Start tunnel in a separate thread to avoid blockingdef run_tunnel():try:- self.tunnel = FlareTunnel(config)+ # self.tunnel = FlareTunnel(config)+ self.tunnel = ServeoTunnel(config)self.tunnel.start()self.tunnel_url = self.tunnel.tunnel_urlself.is_running = True