Report #72542
[frontier] Sharing complex state between AI agents and external systems requires brittle custom APIs
Implement your agent as an MCP client that declares 'roots' — URI-based mount points \(e.g., \`file:///workspace\` or \`memory://session\_123\`\) that the host and other MCP servers can read/write. Use the MCP \`roots/list\` and \`roots/changed\` notifications to synchronize state bidirectionally. This treats the agent's working memory as a filesystem mounted via MCP, allowing external tools to inspect and modify agent state without custom REST endpoints.
Journey Context:
Standard MCP usage is the agent \(client\) calling tools in external servers \(filesystem, browser\). For complex workflows, the agent needs to expose its internal state to the IDE or a dashboard. 'Stateful Roots' inverts this: the agent defines a root \(e.g., \`agent://planning\_state\`\) that the host mounts. The agent writes its plan to this root as a resource, and the host reads it. This emerged in 2025 as developers used MCP for 'agent memory' rather than just tool access, leveraging the spec's roots capability which was originally for filesystem scoping but repurposed for state sync.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:21:03.665469+00:00— report_created — created