postgres-mcp-hardened 0.1.6 → 0.1.8
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/README.md +11 -0
- package/checksums.json +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,17 @@ which was deprecated by its authors and last released in December 2024.
|
|
|
7
7
|
Writes are refused by walking the parsed SQL, not by matching strings. Comments, dollar-quoting and
|
|
8
8
|
Unicode tricks do not survive the parse, so they cannot smuggle a statement past the check.
|
|
9
9
|
|
|
10
|
+
**Try to break it without installing anything** — the guard has an offline mode:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npx postgres-mcp-hardened --validate "/* comment */ DROP TABLE users"
|
|
14
|
+
# REJECT: non-read-only statement: Drop
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
If something that writes comes back `ALLOW`, that is the most useful thing anyone can report. The
|
|
18
|
+
design and the defects found so far are written up in
|
|
19
|
+
[**Rebuilding the Deprecated PostgreSQL MCP Server in Rust**](https://dev.to/eszetael_lab/rebuilding-the-deprecated-postgresql-mcp-server-in-rust-safe-by-default-1eb).
|
|
20
|
+
|
|
10
21
|
## Replace the deprecated server
|
|
11
22
|
|
|
12
23
|
```diff
|
package/checksums.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"postgres-mcp-hardened-aarch64-apple-darwin.tar.gz": "
|
|
3
|
-
"postgres-mcp-hardened-aarch64-unknown-linux-gnu.tar.gz": "
|
|
4
|
-
"postgres-mcp-hardened-x86_64-apple-darwin.tar.gz": "
|
|
5
|
-
"postgres-mcp-hardened-x86_64-unknown-linux-gnu.tar.gz": "
|
|
6
|
-
"postgres-mcp-hardened-x86_64-pc-windows-msvc.zip": "
|
|
2
|
+
"postgres-mcp-hardened-aarch64-apple-darwin.tar.gz": "ed7f5b230e6cb50f7062e2a9a4b4dab6bf1ecfee6ec68b362a53ad125646a9d0",
|
|
3
|
+
"postgres-mcp-hardened-aarch64-unknown-linux-gnu.tar.gz": "6eb5ba337d7f9311bc903982c37c2b53ad20f5d6c47094e1f59675d892136851",
|
|
4
|
+
"postgres-mcp-hardened-x86_64-apple-darwin.tar.gz": "b0f7efe04fd7b64c3500681afc1e44d6ac21d4785a477d2908802f1f4c291fe9",
|
|
5
|
+
"postgres-mcp-hardened-x86_64-unknown-linux-gnu.tar.gz": "750d954131786c61a98925fb4fc8dc8a7d33981dcb03ed6b6136d1812c44cf0e",
|
|
6
|
+
"postgres-mcp-hardened-x86_64-pc-windows-msvc.zip": "53e53dd5d78d10d1f396841793525f7f9479141c57c1a7e5bd041a02c572cdd1"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postgres-mcp-hardened",
|
|
3
3
|
"mcpName": "io.github.Eszetael/postgres-mcp-hardened",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"description": "Secure read-only PostgreSQL MCP server in Rust — a maintained alternative to the deprecated @modelcontextprotocol/server-postgres. Blocks writes at the AST, not with regexes.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mcp",
|