Skip to content

Commit c944af6

Browse files
committed
remove human_input.submit tool (for now)
1 parent c0fc9f6 commit c944af6

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/mcp_agent/server/app_server.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -855,40 +855,6 @@ async def cancel_workflow(
855855
else:
856856
logger.error(f"Failed to cancel workflow {workflow_name} with ID {run_id}")
857857

858-
# region Proxy tools for external runners (e.g., Temporal workers)
859-
860-
# Removed MCP tools for internal proxying in favor of private HTTP routes
861-
862-
@mcp.tool(name="human_input.submit")
863-
async def human_input_submit(request_id: str, text: str) -> Dict[str, Any]:
864-
"""Client replies to a human_input_request; signal the Temporal workflow."""
865-
app_ref = _get_attached_app(mcp)
866-
if app_ref is None or app_ref.context is None:
867-
return {"ok": False, "error": "server not ready"}
868-
async with _PENDING_PROMPTS_LOCK:
869-
info = _PENDING_PROMPTS.pop(request_id, None)
870-
if not info:
871-
return {"ok": False, "error": "unknown request_id"}
872-
try:
873-
from mcp_agent.executor.temporal import TemporalExecutor
874-
875-
executor = app_ref.context.executor
876-
if not isinstance(executor, TemporalExecutor):
877-
return {"ok": False, "error": "temporal executor not active"}
878-
client = await executor.ensure_client()
879-
handle = client.get_workflow_handle(
880-
workflow_id=info.get("workflow_id"), run_id=info.get("execution_id")
881-
)
882-
await handle.signal(
883-
info.get("signal_name", "human_input"),
884-
{"request_id": request_id, "text": text},
885-
)
886-
return {"ok": True}
887-
except Exception as e:
888-
return {"ok": False, "error": str(e)}
889-
890-
# endregion
891-
892858
# endregion
893859

894860
return mcp

0 commit comments

Comments
 (0)