MCP servers 2026-08-10 13:12 UTC
mcp
Committed by mariadb-RyanKillea. Update Category: Bug Fixes & Stability Improvements. Commit details: Block sensitive SHOW commands, fix stale reads, and forward-compat asyncmy pool check. This update resolves known runtime errors and enhances system reliability.
CommitRaw commit message
Block sensitive SHOW commands, fix stale reads, and forward-compat asyncmy pool check - Add MCP_BLOCK_SENSITIVE_SHOW (default true), independent of MCP_READ_ONLY, to block SHOW PROCESSLIST/GRANTS/VARIABLES/ MASTER-REPLICA STATUS/BINARY LOGS, which can leak cross-connection query text, credentials/privileges, or replication topology. - Fix stale reads in read-only mode: drop the unconditional 'self.autocommit = not MCP_READ_ONLY' override so the constructor's autocommit parameter (default True) is respected instead of being forced off precisely when read-only is enabled. - Fix SafePool.fill_free_pool for forward/backward compatibility with asyncmy: newer releases expose Connection._stream_broken instead of the raw _reader, which raised AttributeError. Added _connection_stream_broken() that checks _stream_broken when present and falls back to the legacy _reader check otherwise. Also close recycled connections gracefully via ensure_closed(). - Pin docker-compose mariadb-mcp build/runtime to linux/amd64 (asyncmy wheels crash with SIGILL on native arm64 Docker / Apple Silicon). - Add regression tests for all of the above. Bump version to 0.2.6.