@marcelo-ochoa/server-postgres 0.6.3 → 0.6.5

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,38 @@ 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-27
44
+ - **feat**: Add server.json definitions and update versions for MySQL and PostgreSQL servers
45
+ - Added server.json with MCP server metadata and schema
46
+ - Updated version to 0.6.5
47
+ - Added mcpName field to package.json
48
+ - Configured environment variables (POSTGRES_USER, POSTGRES_PASSWORD) in server definition
49
+
50
+ ### 2025-11-26
51
+ - **docs**: Update READMEs to include recent server version bumps, URL simplification, and graceful shutdown
52
+ - Updated documentation with latest changes and improvements
53
+
54
+ - **chore**: Bump MySQL and PostgreSQL server versions to 0.1.1 and 0.6.4
55
+ - Updated package versions to reflect recent improvements
56
+ - Synchronized package-lock.json with new versions
57
+
58
+ - **feat**: Simplify database resource URLs and add graceful server shutdown on stdin close
59
+ - Simplified resource URL format for better usability
60
+ - Added graceful shutdown handling for improved stability
61
+
62
+ ### 2025-11-25
63
+ - **docs**: Add change logs to Oracle and Postgres READMEs
64
+ - Detailed new features such as secure Postgres authentication
65
+ - Documented Toon format encoding integration
66
+ - Added Antigravity Code Editor integration instructions
67
+
43
68
  ### 2025-11-22
44
69
  - **feat**: Implement secure PostgreSQL authentication via environment variables and update tool descriptions
45
70
  - 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.5",
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,7 @@
1
1
  {
2
2
  "name": "@marcelo-ochoa/server-postgres",
3
- "version": "0.6.3",
3
+ "mcpName": "io.github.marcelo-ochoa/postgres",
4
+ "version": "0.6.5",
4
5
  "description": "MCP server for interacting with PostgreSQL databases",
5
6
  "keywords": [
6
7
  "read-only-mcp",