postgres-mcp

FastMCP + asyncpg connection pool. Hedef: CT 200 (.25, PG 17.10 + VectorChord). homelab-brain için kritik: VectorChord, beynin semantik arama katmanının altyapısıdır.

Protokol & auth

  • asyncpg native protocol, scram-sha-256. Tek superuser (postgres), per-DB pool.
  • pg_stat_statements + vchord.so shared_preload_libraries’de (Immich kritik).

Tool’lar (15)

  • Read: query, list databases/schemas/tables, table/index stats, bloat, cache hit, connections, locks, slow queries, replication.
  • Write: pg_analyze, pg_vacuum. Destructive: pg_kill_query.
  • pg_query raw SQL hep transaction içinde; SELECT bile rollback’le biter (yan etki sıfır).

homelab-brain bağlantısı

  • Beynin semantik katmanı (Faz 3) ayrı bir brain DB’sinde VectorChord ile çalışır. Bkz. _sistem/semantic/schema.sql. Embedding tablosu + vchord index burada yaşar.

İlgili