Skip to content

chore(release): version packages - #20

Merged
unclecatvn merged 1 commit into
masterfrom
changeset-release/master
Jun 16, 2026
Merged

chore(release): version packages#20
unclecatvn merged 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@unclecat/mcp-multi-db@0.0.6

Patch Changes

  • ae92936: refactor(db): modular lib/ architecture, driver dedup, and expanded test coverage.

    Backward compatible — same MCP tools and env/JSON config shape; existing clients keep working.

    Architecture

    • Split toolHandlers.js (~480 → ~215 lines): extract toolDescriptors.js, tableListingSql.js, instructions.js, logger.js.
    • Deduplicate config loaders via aliasConstants.js + normalizeAlias.js.
    • Move shared driver logic into BaseDriver (listTables, healthCheck, _classifyError); dialect drivers implement executeQuery + describeTable only.

    Features

    • defaultAlias in JSON config: omit databaseAlias in tool calls when set.
    • defaultSchema per alias (config schema + db_list_tables / db_describe_table fallback).
    • db_list_tables: optional limit, offset, namePattern pagination/filter.
    • modeEnforcer gates on effectiveType so EXPLAIN ANALYZE <write> cannot bypass readonly mode.

    Quality

    • 203 unit tests (was ~123); coverage thresholds enforced for all lib/ + drivers/ (≥88% lines).
    • Driver unit tests for MySQL, PostgreSQL, SQL Server (executeQuery, listTables).

@unclecatvn
unclecatvn merged commit 0b6b2c1 into master Jun 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant