Repository navigation
Releases
Releases · mongodb-developer/claude-agent-sdk-mongodb-session-store
v0.1.1
v0.1.0
First release of MongoDBSessionStore implementation Adapter for mirroring session transcripts to external storage.
This began as a reference example in anthropics/claude-agent-sdk-python #1014.
This release repurposes it as a standalone package and hardens it.
Security improvements:
- Every
SessionStoremethod now validates its key before any query.
project_key,session_idandsubpathmust be strings (TypeError
otherwise) andproject_keyandsession_idmust be non-empty
(ValueError). Previously a non-string key field such as{"$ne": ""}
was passed into the MongoDB filter verbatim, where it acted as a query
operator and could read or delete entries of other sessions or tenants.
The SDK's own code paths were not affected; direct callers of the store were. - The README gains a Security section covering the sensitivity of stored
transcripts, TLS and authentication, least-privilege database users,
encryption at rest, and the cross-tenant scope ofdelete_inactive().