MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / run_request_shutdown

Function run_request_shutdown

s19_mcp_plugin/code.py:629–637  ·  view source on GitHub ↗
(teammate: str)

Source from the content-addressed store, hash-verified

627# ── Lead Protocol Tools ──
628
629def run_request_shutdown(teammate: str) -> str:
630 req_id = new_request_id()
631 pending_requests[req_id] = ProtocolState(
632 request_id=req_id, type="shutdown",
633 sender="lead", target=teammate,
634 status="pending", payload="")
635 BUS.send("lead", teammate, "Shut down.", "shutdown_request",
636 {"request_id": req_id})
637 return f"Shutdown request sent to {teammate}"
638
639
640def run_request_plan(teammate: str, task: str) -> str:

Callers

nothing calls this directly

Calls 3

new_request_idFunction · 0.70
ProtocolStateClass · 0.70
sendMethod · 0.45

Tested by

no test coverage detected