Skip to content

Commit b63488a

Browse files
committed
DPL MCP: add tool to resume a stopped topology
1 parent a28afd8 commit b63488a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Framework/Core/scripts/dpl-mcp-server/dpl_mcp_server.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,16 @@ async def get_logs(max_lines: int = 100) -> str:
237237
return "\n".join(lines)
238238

239239

240+
@mcp.tool()
241+
async def start_devices() -> str:
242+
"""Resume all stopped DPL devices (send SIGCONT).
243+
244+
Use this when the workflow was started with -s (all devices paused).
245+
"""
246+
await _send({"cmd": "start_devices"})
247+
return "Sent SIGCONT to all active devices."
248+
249+
240250
@mcp.tool()
241251
async def enable_signpost(device: str, streams: list[str]) -> str:
242252
"""Enable one or more signpost log streams for a DPL device.

0 commit comments

Comments
 (0)