@marcelo-ochoa/server-postgres 0.6.3 → 0.6.4

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 CHANGED
@@ -33,13 +33,28 @@ A Model Context Protocol server that provides read-only access to PostgreSQL dat
33
33
 
34
34
  The server provides schema information for each table in the database:
35
35
 
36
- - **Table Schemas** (`postgres://<host>/<table>/schema`)
36
+ - **Table Schemas** (`postgres://<dbname>/<table>/schema`)
37
37
  - JSON schema information for each table
38
38
  - Includes column names and data types
39
39
  - Automatically discovered from database metadata
40
40
 
41
41
  ## Change Log
42
42
 
43
+ ### 2025-11-26
44
+ - **chore**: Bump MySQL and PostgreSQL server versions to 0.1.1 and 0.6.4
45
+ - Updated package versions to reflect recent improvements
46
+ - Synchronized package-lock.json with new versions
47
+
48
+ - **feat**: Simplify database resource URLs and add graceful server shutdown on stdin close
49
+ - Simplified resource URL format for better usability
50
+ - Added graceful shutdown handling for improved stability
51
+
52
+ ### 2025-11-25
53
+ - **docs**: Add change logs to Oracle and Postgres READMEs
54
+ - Detailed new features such as secure Postgres authentication
55
+ - Documented Toon format encoding integration
56
+ - Added Antigravity Code Editor integration instructions
57
+
43
58
  ### 2025-11-22
44
59
  - **feat**: Implement secure PostgreSQL authentication via environment variables and update tool descriptions
45
60
  - Added `PG_USER` and `PG_PASSWORD` environment variables for secure credential management
package/dist/db.js CHANGED
@@ -47,7 +47,7 @@ export async function initializePool(connectionString) {
47
47
  const client = await pool.connect();
48
48
  client.release();
49
49
  // Build resource base URL without credentials
50
- const url = new URL(`postgresql://${host}:${port}/${database}`);
50
+ const url = new URL(`postgresql://${database}`);
51
51
  resourceBaseUrl = url;
52
52
  }
53
53
  export function getPool() {
package/dist/server.js CHANGED
@@ -6,7 +6,7 @@ import { listResourcesHandler, readResourceHandler, callToolHandler } from "./ha
6
6
  import { tools } from "./tools.js";
7
7
  const server = new Server({
8
8
  name: "postgres-server",
9
- version: "0.6.3",
9
+ version: "0.6.4",
10
10
  }, {
11
11
  capabilities: {
12
12
  resources: {},
@@ -33,4 +33,9 @@ export async function runServer() {
33
33
  }
34
34
  const transport = new StdioServerTransport();
35
35
  await server.connect(transport);
36
+ process.stdin.on("close", () => {
37
+ console.error("Postgres MCP Server closed");
38
+ server.close();
39
+ process.exit(0);
40
+ });
36
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcelo-ochoa/server-postgres",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "MCP server for interacting with PostgreSQL databases",
5
5
  "keywords": [
6
6
  "read-only-mcp",