chore: configure MCP servers to run in parallel with proper networking

pull/819/head
Pavan Kumar 2 days ago committed by ascender1729
parent c4c81a4767
commit 04ed17d59e

@ -66,11 +66,11 @@ mode = "sequential"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "python examples/mcp_example/math_server.py & "
args = "python examples/mcp_example/math_server.py"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "python examples/mcp_example/calc_server.py &"
args = "python examples/mcp_example/calc_server.py"
[[workflows.workflow.tasks]]
task = "shell.exec"

@ -33,4 +33,4 @@ def break_even_point(fixed_costs: float, price_per_unit: float, cost_per_unit: f
if __name__ == "__main__":
print("Starting Business Calculator Server on port 6275...")
mcp.run(transport="sse")
mcp.run(host="0.0.0.0", port=6275, transport="sse")

@ -36,4 +36,4 @@ def calculate_percentage(part: float, whole: float) -> float:
if __name__ == "__main__":
print("Starting Math Server on port 6274...")
mcp.run(transport="sse")
mcp.run(host="0.0.0.0", port=6274, transport="sse")

Loading…
Cancel
Save