awslabs.postgres-mcp-server 1.0.1__tar.gz → 1.0.2__tar.gz

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.
Files changed (18) hide show
  1. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/Dockerfile +3 -3
  2. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/PKG-INFO +4 -2
  3. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/README.md +3 -1
  4. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/awslabs/postgres_mcp_server/server.py +1 -1
  5. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/pyproject.toml +1 -1
  6. awslabs_postgres_mcp_server-1.0.1/.pre-commit-config.yaml +0 -14
  7. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/.gitignore +0 -0
  8. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/.python-version +0 -0
  9. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/CHANGELOG.md +0 -0
  10. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/LICENSE +0 -0
  11. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/NOTICE +0 -0
  12. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/awslabs/__init__.py +0 -0
  13. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/awslabs/postgres_mcp_server/__init__.py +0 -0
  14. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/awslabs/postgres_mcp_server/mutable_sql_detector.py +0 -0
  15. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/docker-healthcheck.sh +0 -0
  16. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/tests/conftest.py +0 -0
  17. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/tests/test_server.py +0 -0
  18. {awslabs_postgres_mcp_server-1.0.1 → awslabs_postgres_mcp_server-1.0.2}/uv.lock +0 -0
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  #FROM public.ecr.aws/sam/build-python3.10:1.137.1-20250411084548
16
- FROM public.ecr.aws/sam/build-python3.10@sha256:e78695db10ca8cb129e59e30f7dc9789b0dbd0181dba195d68419c72bac51ac1 AS uv
16
+ FROM public.ecr.aws/sam/build-python3.10@sha256:d821662474d65f3cf2fc97dba2fa807a3adb580d02895fc4545527812550ea65 AS uv
17
17
 
18
18
  # Install the project into `/app`
19
19
  WORKDIR /app
@@ -35,7 +35,7 @@ COPY pyproject.toml uv.lock ./
35
35
 
36
36
  # Install the project's dependencies using the lockfile and settings
37
37
  RUN --mount=type=cache,target=/root/.cache/uv \
38
- pip install uv && \
38
+ pip install uv==0.7.11 && \
39
39
  uv sync --frozen --no-install-project --no-dev --no-editable
40
40
 
41
41
  # Then, add the rest of the project source code and install it
@@ -47,7 +47,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
47
47
  # Make the directory just in case it doesn't exist
48
48
  RUN mkdir -p /root/.local
49
49
 
50
- FROM public.ecr.aws/sam/build-python3.10@sha256:e78695db10ca8cb129e59e30f7dc9789b0dbd0181dba195d68419c72bac51ac1
50
+ FROM public.ecr.aws/sam/build-python3.10@sha256:d821662474d65f3cf2fc97dba2fa807a3adb580d02895fc4545527812550ea65
51
51
 
52
52
  # Place executables in the environment at the front of the path and include other binaries
53
53
  ENV PATH="/app/.venv/bin:$PATH:/usr/sbin"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awslabs.postgres-mcp-server
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: An AWS Labs Model Context Protocol (MCP) server for postgres
5
5
  Project-URL: homepage, https://awslabs.github.io/mcp/
6
6
  Project-URL: docs, https://awslabs.github.io/mcp/servers/postgres-mcp-server/
@@ -52,7 +52,9 @@ An AWS Labs Model Context Protocol (MCP) server for Aurora Postgres
52
52
 
53
53
  ## Installation
54
54
 
55
- Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, `~/.aws/amazonq/mcp.json`):
55
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.postgres-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucG9zdGdyZXMtbWNwLXNlcnZlckBsYXRlc3QgLS1yZXNvdXJjZV9hcm4gW3lvdXIgZGF0YV0gLS1zZWNyZXRfYXJuIFt5b3VyIGRhdGFdIC0tZGF0YWJhc2UgW3lvdXIgZGF0YV0gLS1yZWdpb24gW3lvdXIgZGF0YV0gLS1yZWFkb25seSBUcnVlIiwiZW52Ijp7IkFXU19QUk9GSUxFIjoieW91ci1hd3MtcHJvZmlsZSIsIkFXU19SRUdJT04iOiJ1cy1lYXN0LTEiLCJGQVNUTUNQX0xPR19MRVZFTCI6IkVSUk9SIn0sImRpc2FibGVkIjpmYWxzZSwiYXV0b0FwcHJvdmUiOltdfQ%3D%3D)
56
+
57
+ Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit `~/.aws/amazonq/mcp.json`):
56
58
 
57
59
  ```json
58
60
  {
@@ -22,7 +22,9 @@ An AWS Labs Model Context Protocol (MCP) server for Aurora Postgres
22
22
 
23
23
  ## Installation
24
24
 
25
- Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, `~/.aws/amazonq/mcp.json`):
25
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.postgres-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucG9zdGdyZXMtbWNwLXNlcnZlckBsYXRlc3QgLS1yZXNvdXJjZV9hcm4gW3lvdXIgZGF0YV0gLS1zZWNyZXRfYXJuIFt5b3VyIGRhdGFdIC0tZGF0YWJhc2UgW3lvdXIgZGF0YV0gLS1yZWdpb24gW3lvdXIgZGF0YV0gLS1yZWFkb25seSBUcnVlIiwiZW52Ijp7IkFXU19QUk9GSUxFIjoieW91ci1hd3MtcHJvZmlsZSIsIkFXU19SRUdJT04iOiJ1cy1lYXN0LTEiLCJGQVNUTUNQX0xPR19MRVZFTCI6IkVSUk9SIn0sImRpc2FibGVkIjpmYWxzZSwiYXV0b0FwcHJvdmUiOltdfQ%3D%3D)
26
+
27
+ Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit `~/.aws/amazonq/mcp.json`):
26
28
 
27
29
  ```json
28
30
  {
@@ -294,7 +294,7 @@ async def get_table_schema(
294
294
  FROM
295
295
  pg_attribute a
296
296
  WHERE
297
- a.attrelid = :table_name::regclass
297
+ a.attrelid = to_regclass(:table_name)
298
298
  AND a.attnum > 0
299
299
  AND NOT a.attisdropped
300
300
  ORDER BY a.attnum
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "awslabs.postgres-mcp-server"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "An AWS Labs Model Context Protocol (MCP) server for postgres"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -1,14 +0,0 @@
1
- repos:
2
- - repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.9.6
4
- hooks:
5
- - id: ruff
6
- args: [--fix]
7
- - id: ruff-format
8
-
9
- - repo: https://github.com/commitizen-tools/commitizen
10
- rev: v3.13.0
11
- hooks:
12
- - id: commitizen
13
- - id: commitizen-branch
14
- stages: [push]