SkillPedia Skills Encyclopedia
中文 EN

MCP 服务 2026-08-10 13:12 UTC

mcp

由提交人 mariadb-RyanKillea 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:Block sensitive SHOW commands, fix stale reads, and forward-compat asyncmy pool check。解决了已知运行时异常与边界错误,提升系统稳定性。

mariadb-RyanKillea 64876fb MariaDB/mcp

Commit提交信息原文

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.