awslabs.redshift-mcp-server 0.0.1__tar.gz → 0.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.
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/Dockerfile +2 -2
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/PKG-INFO +1 -1
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/redshift_mcp_server/consts.py +1 -3
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/pyproject.toml +1 -1
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_redshift.py +1 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/.gitignore +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/.python-version +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/CHANGELOG.md +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/LICENSE +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/NOTICE +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/README.md +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/__init__.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/redshift_mcp_server/__init__.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/redshift_mcp_server/models.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/redshift_mcp_server/redshift.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/awslabs/redshift_mcp_server/server.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/docker-healthcheck.sh +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_init.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_main.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_server.py +0 -0
- {awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/uv.lock +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# dependabot should continue to update this to the latest hash.
|
|
16
|
-
FROM public.ecr.aws/sam/build-python3.10@sha256:
|
|
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
|
|
@@ -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:
|
|
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.redshift-mcp-server
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for Redshift
|
|
5
5
|
Project-URL: homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: docs, https://awslabs.github.io/mcp/servers/redshift-mcp-server/
|
|
@@ -131,6 +131,4 @@ def re_sp(g: int) -> str:
|
|
|
131
131
|
|
|
132
132
|
# We consider `(END|COMMIT|ROLLBACK|ABORT) [WORK|TRANSACTION]` as a breaker for the `BEGIN READ ONLY; {sql}; END;`
|
|
133
133
|
# guarding wrapper, having there might be variations of whitespaces and comments in the construct.
|
|
134
|
-
SUSPICIOUS_QUERY_REGEXP = (
|
|
135
|
-
rf'(?im)^{re_sp(1)}*(END|COMMIT|ROLLBACK|ABORT)({re_sp(2)}+(WORK|TRANSACTION))?{re_sp(3)}*;'
|
|
136
|
-
)
|
|
134
|
+
SUSPICIOUS_QUERY_REGEXP = rf'(?im)(^|;){re_sp(1)}*(END|COMMIT|ROLLBACK|ABORT)({re_sp(2)}+(WORK|TRANSACTION))?{re_sp(3)}*;'
|
{awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_redshift.py
RENAMED
|
@@ -263,6 +263,7 @@ class TestProtectSQL:
|
|
|
263
263
|
'rollback ; -- slc \n SELECT 1',
|
|
264
264
|
'ROLLBACK TRANSACTION;/* mlc /* /* mlc */ mlc */ */SELECT 1',
|
|
265
265
|
';; \t\r\n; rollback -- slc\n /* mlc -- mlc \n */ work;-- slc \n SELECT 1',
|
|
266
|
+
'SELECT 1; COMMIT;',
|
|
266
267
|
):
|
|
267
268
|
with pytest.raises(
|
|
268
269
|
Exception,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/docker-healthcheck.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_redshift_mcp_server-0.0.1 → awslabs_redshift_mcp_server-0.0.2}/tests/test_server.py
RENAMED
|
File without changes
|
|
File without changes
|