fix(mcp): harden stdio opens, commits and user-supplied ranges

- Check per call that synapse.db exists and is on this binary's schema, so
  the stdio server never migrates or re-stamps the app's live database.
- Keep the transaction open (rolled back on drop) when COMMIT fails.
- Reject dates outside years 1000-9999 and oversized cursors (overflow).
- core: export SCHEMA_VERSION.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 16:22:14 +01:00
1 parent 0253cd4180
commit 4195374c23
5 files changed
+115 -4

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ pub mod types;
pub use error::{Error, Result};
pub use model::*;
pub use schema::VERSION as SCHEMA_VERSION;
pub use store::Graph;
pub use structure::{
HubConversion, HubInfo, HubPreview, Structure, is_legacy_page, namespace_parent,