awslabs.dynamodb-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.

Potentially problematic release.


This version of awslabs.dynamodb-mcp-server might be problematic. Click here for more details.

Files changed (18) hide show
  1. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/Dockerfile +3 -3
  2. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/PKG-INFO +1 -1
  3. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/awslabs/dynamodb_mcp_server/server.py +53 -6
  4. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/pyproject.toml +1 -1
  5. awslabs_dynamodb_mcp_server-1.0.1/.pre-commit-config.yaml +0 -14
  6. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/.gitignore +0 -0
  7. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/.python-version +0 -0
  8. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/CHANGELOG.md +0 -0
  9. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/LICENSE +0 -0
  10. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/NOTICE +0 -0
  11. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/README.md +0 -0
  12. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/awslabs/__init__.py +0 -0
  13. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/awslabs/dynamodb_mcp_server/__init__.py +0 -0
  14. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/awslabs/dynamodb_mcp_server/common.py +0 -0
  15. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/docker-healthcheck.sh +0 -0
  16. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/tests/test_dynamodb_server.py +0 -0
  17. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_mcp_server-1.0.2}/tests/test_readonly_delete_table.py +0 -0
  18. {awslabs_dynamodb_mcp_server-1.0.1 → awslabs_dynamodb_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.dynamodb-mcp-server
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: The official MCP Server for interacting with AWS DynamoDB
5
5
  Project-URL: homepage, https://awslabs.github.io/mcp/
6
6
  Project-URL: docs, https://awslabs.github.io/mcp/servers/dynamodb-mcp-server/
@@ -54,8 +54,51 @@ from typing import Any, Dict, List, Literal, Union
54
54
 
55
55
  app = FastMCP(
56
56
  name='dynamodb-server',
57
- instructions='The official MCP Server for interacting with AWS DynamoDB',
58
- version='0.1.1',
57
+ instructions="""The official MCP Server for interacting with AWS DynamoDB
58
+
59
+ IMPORTANT: DynamoDB Attribute Value Format
60
+ -----------------------------------------
61
+ When working with DynamoDB, all attribute values must be specified with their data types.
62
+ Each attribute value is represented as a dictionary with a single key-value pair where the key
63
+ is the data type and the value is the data itself:
64
+
65
+ - S: String
66
+ Example: {"S": "Hello"}
67
+
68
+ - N: Number (sent as a string)
69
+ Example: {"N": "123.45"}
70
+
71
+ - B: Binary data (Base64-encoded)
72
+ Example: {"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"}
73
+
74
+ - BOOL: Boolean value
75
+ Example: {"BOOL": true}
76
+
77
+ - NULL: Null value
78
+ Example: {"NULL": true}
79
+
80
+ - L: List of AttributeValue objects
81
+ Example: {"L": [{"S": "Cookies"}, {"S": "Coffee"}, {"N": "3.14159"}]}
82
+
83
+ - M: Map of attribute name/value pairs
84
+ Example: {"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}}
85
+
86
+ - SS: String Set (array of strings)
87
+ Example: {"SS": ["Giraffe", "Hippo", "Zebra"]}
88
+
89
+ - NS: Number Set (array of strings representing numbers)
90
+ Example: {"NS": ["42.2", "-19", "7.5", "3.14"]}
91
+
92
+ - BS: Binary Set (array of Base64-encoded binary data objects)
93
+ Example: {"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]}
94
+
95
+ Common usage examples:
96
+ - Primary key: {"userId": {"S": "user123"}}
97
+ - Composite key: {"userId": {"S": "user123"}, "timestamp": {"N": "1612345678"}}
98
+ - Expression attribute values: {":minScore": {"N": "100"}, ":active": {"BOOL": true}}
99
+ - Complete item: {"userId": {"S": "user123"}, "score": {"N": "100"}, "data": {"B": "binarydata=="}}
100
+ """,
101
+ version='0.1.2',
59
102
  )
60
103
 
61
104
 
@@ -81,7 +124,9 @@ index_name = Field(
81
124
  default=None,
82
125
  description='The name of a GSI',
83
126
  )
84
- key: Dict[str, KeyAttributeValue] = Field(description='The primary key of an item')
127
+ key: Dict[str, KeyAttributeValue] = Field(
128
+ description='The primary key of an item. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).'
129
+ )
85
130
  filter_expression: str = Field(
86
131
  default=None,
87
132
  description='Filter conditions expression that DynamoDB applies to filter out data',
@@ -94,7 +139,8 @@ expression_attribute_names: Dict[str, str] = Field(
94
139
  default=None, description='Substitution tokens for attribute names in an expression.'
95
140
  )
96
141
  expression_attribute_values: Dict[str, AttributeValue] = Field(
97
- default=None, description='Values that can be substituted in an expression'
142
+ default=None,
143
+ description='Values that can be substituted in an expression. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).',
98
144
  )
99
145
  select: Select = Field(
100
146
  default=None,
@@ -102,7 +148,8 @@ select: Select = Field(
102
148
  )
103
149
  limit: int = Field(default=None, description='The maximum number of items to evaluate', ge=1)
104
150
  exclusive_start_key: Dict[str, KeyAttributeValue] = Field(
105
- default=None, description='Use the LastEvaluatedKey from the previous call.'
151
+ default=None,
152
+ description='Use the LastEvaluatedKey from the previous call. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).',
106
153
  )
107
154
 
108
155
  billing_mode: Literal['PROVISIONED', 'PAY_PER_REQUEST'] = Field(
@@ -324,7 +371,7 @@ async def get_item(
324
371
  async def put_item(
325
372
  table_name: str = table_name,
326
373
  item: Dict[str, AttributeValue] = Field(
327
- description='A map of attribute name/value pairs, one for each attribute.'
374
+ description='A map of attribute name/value pairs, one for each attribute. Must use DynamoDB attribute value format (see IMPORTANT note about DynamoDB Attribute Value Format).'
328
375
  ),
329
376
  condition_expression: str = Field(
330
377
  default=None,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "awslabs.dynamodb-mcp-server"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "The official MCP Server for interacting with AWS DynamoDB"
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]