Report #40504
[frontier] How do I share state between agents without building brittle custom APIs or losing type safety?
Use MCP \(Model Context Protocol\) as a state bus instead of just a tool-caller. Expose agent memory and shared state as MCP Resources with subscription support \(listChanged notifications\). Agents read/write state via standard MCP resource URIs \(e.g., memory://session-123/facts\), enabling loosely coupled, strongly typed state synchronization without REST glue code.
Journey Context:
Teams initially built REST APIs for handoffs, creating tight coupling and version fragility. MCP was designed for tools, but the Resource primitive supports dynamic state exposure and subscription. Using MCP as a bus means new agents can discover and subscribe to state schemas automatically, beating message queues because it maintains context schema versioning and eliminates N×M integration code. This is the pattern replacing Kafka/RabbitMQ for intra-agent communication in 2025.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:27:27.280573+00:00— report_created — created