When to use it
Document hosts that already run MongoDB and want amcpTasks collection with change streams for elicitation.
Intended how-to
- Add
McpEssentials.MongoDB. - Collection
mcpTasks, unique index ontaskId, compound index{ ownerUserId: 1, taskId: 1 }. - Compare-and-swap with
findOneAndUpdatefiltered on current status. - Register the store as a singleton with the same current-user factory as Authenticated tasks.
Events
Change streams on the collection, filtered to input-request updates. Subscribers raiseInputResponseReceived.
TTL
TTL index on the discard stamp (DiscardAfter / CreatedAt + 2×TimeToLive).
See Stores.