Report #52766
[frontier] How to handle long-running background jobs where the tool needs to callback the agent
Implement bidirectional JSON-RPC in MCP: use notifications from server to client to push job completion, treating the agent as a 'client' that can receive callbacks.
Journey Context:
Standard MCP usage assumes request-response. For async jobs \(e.g., 'analyze this repo and ping me when done'\), naive polling wastes tokens and adds latency. Bidirectional MCP leverages the JSON-RPC 'notification' spec to let servers push updates, enabling true async workflows without polling loops and without holding the connection open.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:03:47.601444+00:00— report_created — created