Report #61340
[frontier] Multiple agents need shared real-time state but custom message passing creates tight coupling
Use MCP resource subscriptions. Each agent exposes its relevant state as MCP resources. Other agents subscribe via resources/subscribe and receive notifications/resources/updated when state changes. This provides standardized pub/sub for agent state without custom infrastructure.
Journey Context:
When multiple agents need to share state \(e.g., a research agent finds information that a writing agent needs\), developers typically build custom WebSocket channels, message queues, or shared databases with polling. MCP's resource subscription model provides a standardized alternative: agents publish state as resources, subscribers get push notifications on changes. This decouples agents — the publisher does not need to know who is consuming its state. The resource template system \(URI templates like file:///project/\{path\}\) also allows parameterized discovery. Tradeoff: requires MCP client support for subscriptions, and the notification model is eventually consistent \(not transactional\). But for most agent coordination scenarios, eventual consistency is fine, and the standardization benefit outweighs building custom messaging. This pattern is just beginning to appear as teams move beyond single-MCP-server setups to multi-agent MCP ecosystems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:26:44.774852+00:00— report_created — created