@yawlabs/postgres-mcp 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.6] - 2026-05-16
|
|
11
|
+
|
|
12
|
+
### Docs
|
|
13
|
+
- `pg_table_privileges` description now flags the visibility caveat:
|
|
14
|
+
`information_schema.table_privileges` is filtered by what the calling role
|
|
15
|
+
can see, so a least-privileged role may miss grants involving unrelated
|
|
16
|
+
third-party roles. Recommends superuser or `pg_read_all_data` for a
|
|
17
|
+
complete picture.
|
|
18
|
+
- `pg_inspect_locks` description now documents the row shape: one row per
|
|
19
|
+
(blocked_pid, blocking_pid) pair, so a session waiting on multiple
|
|
20
|
+
blockers appears on multiple rows. Suggests grouping by `blocked_pid`
|
|
21
|
+
for a per-blocked-session count.
|
|
22
|
+
|
|
10
23
|
## [0.6.5] - 2026-05-15
|
|
11
24
|
|
|
12
25
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -36361,7 +36361,7 @@ var identSchema = external_exports.string().min(1).max(63).refine((v) => Buffer.
|
|
|
36361
36361
|
var adminTools = [
|
|
36362
36362
|
{
|
|
36363
36363
|
name: "pg_inspect_locks",
|
|
36364
|
-
description: "Show current lock contention: which sessions are blocked and who is blocking them. Returns blocked PID, blocking PID, lock types, relation being contested, and the queries involved. Use this first when a tool call hangs or the app feels stuck - it's the fastest way to identify a long-held transaction holding a lock.",
|
|
36364
|
+
description: "Show current lock contention: which sessions are blocked and who is blocking them. Returns blocked PID, blocking PID, lock types, relation being contested, and the queries involved. Use this first when a tool call hangs or the app feels stuck - it's the fastest way to identify a long-held transaction holding a lock. Row shape: one row per (blocked_pid, blocking_pid) pair. A session waiting on multiple blockers appears on multiple rows -- group/deduplicate by `blocked_pid` if you want a per-blocked-session count.",
|
|
36365
36365
|
annotations: {
|
|
36366
36366
|
title: "Inspect blocking locks",
|
|
36367
36367
|
readOnlyHint: true,
|
|
@@ -36447,7 +36447,7 @@ var adminTools = [
|
|
|
36447
36447
|
},
|
|
36448
36448
|
{
|
|
36449
36449
|
name: "pg_table_privileges",
|
|
36450
|
-
description: "Show which roles have which privileges (SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER) on a table or on every table in a schema. If `table` is omitted, the result spans every table in `schema`, ordered by table then grantee. Use this to answer 'who can write to this table?' or to audit schema-wide access before a migration.",
|
|
36450
|
+
description: "Show which roles have which privileges (SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER) on a table or on every table in a schema. If `table` is omitted, the result spans every table in `schema`, ordered by table then grantee. Use this to answer 'who can write to this table?' or to audit schema-wide access before a migration. Visibility caveat: backed by `information_schema.table_privileges`, which postgres filters by what the calling role can see. A least-privileged role may not see grants involving unrelated third-party roles. For a complete picture, run as a superuser or a member of `pg_read_all_data`.",
|
|
36451
36451
|
annotations: {
|
|
36452
36452
|
title: "Show table privileges",
|
|
36453
36453
|
readOnlyHint: true,
|
|
@@ -37550,7 +37550,7 @@ function compareVersions(a, b) {
|
|
|
37550
37550
|
}
|
|
37551
37551
|
|
|
37552
37552
|
// src/index.ts
|
|
37553
|
-
var version2 = true ? "0.6.
|
|
37553
|
+
var version2 = true ? "0.6.6" : (await null).createRequire(import.meta.url)("../package.json").version;
|
|
37554
37554
|
var subcommand = process.argv[2];
|
|
37555
37555
|
if (subcommand === "version" || subcommand === "--version") {
|
|
37556
37556
|
console.log(version2);
|
package/package.json
CHANGED