Add connection timeout support for PostgreSQL in MCP Database Server

Enhanced the PostgreSQL connection handling by introducing a `--connection-timeout` parameter, allowing users to specify a custom timeout in milliseconds. Updated relevant documentation in README and postgresql-setup.md to reflect this new option. Modified the PostgresqlAdapter to utilize the connection timeout setting during database connections.
This commit is contained in:
Karthik KK
2025-04-22 16:44:36 +12:00
parent bd819d923f
commit c71779fcb5
6 changed files with 22 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ Optional parameters:
- `--password`: Password for PostgreSQL authentication
- `--port`: Port number (default: 5432)
- `--ssl`: Enable SSL connection (true/false)
- `--connection-timeout`: Connection timeout in milliseconds (default: 30000)
## Configuring Claude Desktop