stackdeck-mcp-writes 0.2.0

Safe writes for MCP servers: idempotency keys, conflict checks, in-flight locks, dry-run previews, and write receipts. Zero dependencies.
Documentation
#![doc = include_str!("../README.md")]

pub mod error;
pub mod guard;
pub mod json;
pub mod sha256;
pub mod store;

pub use error::{ErrorCode, HandlerError, WriteSafetyError};
pub use guard::{
    validate_idempotency_key, AuthorizeHook, ExecuteRequest, WriteContext, WriteGuard, WriteOutcome,
    DEFAULT_LEASE_MS, DEFAULT_SCOPE, DEFAULT_TTL_MS,
};
pub use json::{
    canonical_binding_json, canonical_binding_json_with_context, canonical_hash, canonical_hash_with_context,
    canonical_json, parse_json, JsonValue,
};
pub use sha256::sha256_hex;
pub use store::{
    build_redis_store_key, ClaimRequest, ClaimResult, CompleteRequest, ExtendLeaseRequest, InProgressRecord,
    MemoryStore, ReleaseRequest, SucceededRecord, WriteStore, DEFAULT_SPENT_KEY_RETENTION_MS,
    POSTGRES_SCHEMA_SQL, REDIS_CLAIM_LUA, REDIS_COMPLETE_LUA, REDIS_EXTEND_LEASE_LUA,
    REDIS_RELEASE_LUA, SQLITE_SCHEMA_SQL,
};