Added
- Comprehensive test suite — 238 tests across 10 test files using Vitest
utils/security.test.ts(44 tests) — escapeIdentifier, validateQuery, isDatabaseAllowed, isSchemaAllowed, applyMasking, ensureRowLimitutils/formatter.test.ts(14 tests) — markdown table formatting, ISO dates, NULL handling, truncation, JSON outputtools/schema.test.ts(22 tests) — all 9 schema discovery tools with access control and schema filteringtools/query.test.ts(21 tests) — execute_query/execute_mutation with validation, masking, multi-servertools/ddl.test.ts(11 tests) — DDL gating, blocked keywords, database accesstools/procedure.test.ts(18 tests) — list/describe/execute_procedure with readonly gatingtools/performance.test.ts(18 tests) — query plans, active queries, table/index stats, server/db infotools/dba.test.ts(48 tests) — wait stats, deadlocks, blocking, backups, query store, health checktools/utility.test.ts(42 tests) — compare_schemas, generate_code, ER diagram, sample_table, export_query
npm testandnpm run test:watchscripts- Test helper utilities (
tests/tools/_helpers.ts)
Changed
- Updated project docs (CLAUDE.md, workflow.md, tool-authoring.md, coding-standards.md) to reflect test availability
Full Changelog: v1.3.1...v1.3.2