v3.0.0 - Major Architectural Upgrades & Strict OAuth 2.1
v3.0.0 — Major Architectural Upgrades & Strict OAuth 2.1
Highlights
- 20 new tools across Core, Admin, Stats, JSON, Introspection, and Server Audit groups.
- Migrated Code Mode execution to native
isolated-vmfor V8 memory separation. - Secured prototype freezing, disabled string code generation, and blocked constructor chain escapes.
Added
sqlite.reportProgress()utility in Code Mode for sandboxed execution feedback.onlyDifferencesflag insqlite_json_difftool to filter identical rows.- Output schema registry and reference documentation for LLM invocations.
Changed
- Bumped dependencies, including
@modelcontextprotocol/sdkto 1.29.0 andzodto 4.4.3. - Optimized token context-window usage via pagination, result truncation, wide-column validation, and computed date columns.
- Optimized
sqlite_text_replaceto skip rows without matches, saving DB I/O. - Enhanced DDL tools with support for
STRICTtables, generated columns, andsqlite_temp_master. - Improved Code Mode performance with LRU eviction and global WASM engine caching.
- Upgraded schema caching with a 30-second TTL and targeted DDL invalidation.
- Replaced
sqlite-parserwith an internal regex parser for structural validation. - Added MCP 2025 Specification annotations globally (
sensitiveHint,ASSISTANT_FOCUSED). - Filtered internal shadow tables from introspection resources.
- Migrated HTTP transport and Code Mode to support multi-instance Redis rate limiting.
- Standardized canonical names and tool inventory metrics across documentation.
- Clarified backend-switching documentation in READMEs.
Removed
- Simple Bearer Token authentication (replaced by strict OAuth 2.1).
- Redundant
test-wasm-degradation.mdprompt from the test suite.
Fixed
- Fixed raw
-32602MCP errors by enforcing structured Zod validation across all tools. - Fixed numeric coercion falling back to
undefinedon invalid strings. - Restored
RETURNING *support in batch insert tools and fixed aliasing bugs in date functions. - Fixed Windows SpatiaLite loading by replacing
process.env.PATHmutations with a native C++ addon. - Fixed schema introspection failing to accurately map temporary table indexes.
- Fixed
sqlite_audit_restore_backupcrashing on comment-only snapshots. - Fixed false-positive path traversal violations on Windows caused by drive letter case sensitivity.
- Fixed WASM degradation test assertions for Code Mode.
- Fixed
sqlite_walfailing to enable WAL mode. - Fixed
sqlite_describe_tablefailing to accurately report thestrictproperty. - Fixed incorrect index assertion in Code Mode introspection queryPlan test prompt.
Security
- SQL Injection: Replaced template strings with native parameterized bindings and hardened WHERE clause generation.
- Authorization: Enforced explicit OAuth per-tool scopes and bound session IDs to authenticated subjects.
- Information Disclosure: Implemented recursive JSON redaction to sanitize credentials from outputs and logs.
- Transport: Bound HTTP server to
127.0.0.1, replaced insecure proxy headers, and mitigated timing attacks. - DoS: Upgraded rate limiters, capped Code Mode payloads to 50MB, and implemented 10KB query string bounds.
- Path Traversal: Blocked
:memory:, symlinks, and..sequence bypasses, and added filesystem boundary validations. - Supply Chain: Removed persistent credentials from workflows, enforced SHA pinning for actions, and verified lockfile integrity.
Full Changelog: v2.0.0...v3.0.0
Install
npm install db-mcp@3.0.0Docker Image
docker pull writenotenow/db-mcp:v3.0.0