awslabs.documentdb-mcp-server 0.0.1__py3-none-any.whl → 1.0.1__py3-none-any.whl
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/documentdb_mcp_server/__init__.py +9 -6
- awslabs/documentdb_mcp_server/analytic_tools.py +9 -6
- awslabs/documentdb_mcp_server/config.py +9 -6
- awslabs/documentdb_mcp_server/connection_tools.py +9 -6
- awslabs/documentdb_mcp_server/db_management_tools.py +9 -6
- awslabs/documentdb_mcp_server/query_tools.py +9 -6
- awslabs/documentdb_mcp_server/server.py +11 -19
- awslabs/documentdb_mcp_server/write_tools.py +9 -6
- {awslabs_documentdb_mcp_server-0.0.1.dist-info → awslabs_documentdb_mcp_server-1.0.1.dist-info}/METADATA +1 -4
- awslabs_documentdb_mcp_server-1.0.1.dist-info/RECORD +14 -0
- awslabs_documentdb_mcp_server-0.0.1.dist-info/RECORD +0 -14
- {awslabs_documentdb_mcp_server-0.0.1.dist-info → awslabs_documentdb_mcp_server-1.0.1.dist-info}/WHEEL +0 -0
- {awslabs_documentdb_mcp_server-0.0.1.dist-info → awslabs_documentdb_mcp_server-1.0.1.dist-info}/entry_points.txt +0 -0
- {awslabs_documentdb_mcp_server-0.0.1.dist-info → awslabs_documentdb_mcp_server-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {awslabs_documentdb_mcp_server-0.0.1.dist-info → awslabs_documentdb_mcp_server-1.0.1.dist-info}/licenses/NOTICE +0 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""AWS Labs DocumentDB MCP Server package."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Analytic tools for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Configuration settings for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Connection management tools for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Database management tools for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Query tools for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""AWS Labs DocumentDB MCP Server implementation for querying AWS DocumentDB."""
|
|
13
16
|
|
|
@@ -92,9 +95,6 @@ def main():
|
|
|
92
95
|
parser = argparse.ArgumentParser(
|
|
93
96
|
description='An AWS Labs Model Context Protocol (MCP) server for DocumentDB'
|
|
94
97
|
)
|
|
95
|
-
parser.add_argument('--sse', action='store_true', help='Use SSE transport')
|
|
96
|
-
parser.add_argument('--port', type=int, default=8888, help='Port to run the server on')
|
|
97
|
-
parser.add_argument('--host', type=str, default='127.0.0.1', help='Host to bind the server to')
|
|
98
98
|
parser.add_argument(
|
|
99
99
|
'--log-level',
|
|
100
100
|
type=str,
|
|
@@ -124,7 +124,7 @@ def main():
|
|
|
124
124
|
format='<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> - <level>{message}</level>',
|
|
125
125
|
)
|
|
126
126
|
|
|
127
|
-
logger.info(
|
|
127
|
+
logger.info('Starting DocumentDB MCP Server')
|
|
128
128
|
logger.info(f'Log level: {args.log_level}')
|
|
129
129
|
|
|
130
130
|
# Set connection timeout
|
|
@@ -139,15 +139,7 @@ def main():
|
|
|
139
139
|
logger.info('Server is running with WRITE operations ENABLED. Database can be modified.')
|
|
140
140
|
|
|
141
141
|
try:
|
|
142
|
-
|
|
143
|
-
if args.sse:
|
|
144
|
-
mcp.settings.port = args.port
|
|
145
|
-
mcp.settings.host = args.host
|
|
146
|
-
mcp.run(transport='sse')
|
|
147
|
-
else:
|
|
148
|
-
mcp.settings.port = args.port
|
|
149
|
-
mcp.settings.host = args.host
|
|
150
|
-
mcp.run()
|
|
142
|
+
mcp.run()
|
|
151
143
|
except Exception as e:
|
|
152
144
|
logger.critical(f'Failed to start server: {str(e)}')
|
|
153
145
|
finally:
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
4
|
-
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
11
14
|
|
|
12
15
|
"""Write tools for DocumentDB MCP Server."""
|
|
13
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.documentdb-mcp-server
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for documentdb
|
|
5
5
|
Project-URL: homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: docs, https://awslabs.github.io/mcp/servers/documentdb-mcp-server/
|
|
@@ -100,9 +100,6 @@ python -m awslabs.documentdb_mcp_server.server --allow-write
|
|
|
100
100
|
|
|
101
101
|
| Option | Description | Default |
|
|
102
102
|
|--------|-------------|---------|
|
|
103
|
-
| `--port` | Port to run the server on | 8888 |
|
|
104
|
-
| `--host` | Host to bind the server to | 127.0.0.1 |
|
|
105
|
-
| `--sse` | Use SSE transport | False |
|
|
106
103
|
| `--log-level` | Set logging level (TRACE, DEBUG, INFO, etc.) | INFO |
|
|
107
104
|
| `--connection-timeout` | Idle connection timeout in minutes | 30 |
|
|
108
105
|
| `--allow-write` | Enable write operations (otherwise defaults to read-only mode) | False |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
awslabs/documentdb_mcp_server/__init__.py,sha256=fT8EYYd7MMmckTbwwjj_Bw3F9S5RbfFWRP3Vevq8S-I,685
|
|
2
|
+
awslabs/documentdb_mcp_server/analytic_tools.py,sha256=RZwj16btvZG6iBhTI2tQlEkVOp__XzO1uDrhoxuAyOY,14196
|
|
3
|
+
awslabs/documentdb_mcp_server/config.py,sha256=ADAH5mPfaNOH6p_3VP1cp3_NCYOXvEw_Tj1_pMwrMQ8,1097
|
|
4
|
+
awslabs/documentdb_mcp_server/connection_tools.py,sha256=i9gHLiBUtt17SN-FUWVvPeEcnLI9OxdzB7QTAnRp6_c,8285
|
|
5
|
+
awslabs/documentdb_mcp_server/db_management_tools.py,sha256=M7fARVw14YJ05_S29dplVxTYa_fODcjh5P2Y-cJoDf0,7043
|
|
6
|
+
awslabs/documentdb_mcp_server/query_tools.py,sha256=2xFqnJBLjVMpbUn9L8Ons63K8Hsoimg7UGpCmsBLhoY,4719
|
|
7
|
+
awslabs/documentdb_mcp_server/server.py,sha256=uUeUeB5mmp_HgvqZTXcmpA6jwNoFgASTCXxvCemzoEA,4914
|
|
8
|
+
awslabs/documentdb_mcp_server/write_tools.py,sha256=ONf-sPhkyIJFSpumy-gKAT2ArQI7TSoQHuwvQC8_iLU,8110
|
|
9
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/METADATA,sha256=rQYcuUiZ5McbwTB1_VZHPGBY6nguEIRyFca9Bl1mNfk,7197
|
|
10
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/entry_points.txt,sha256=VqOHtSIp1uNoaD3MwshRt1fj6SNqm5Xp33ynSk7htPU,92
|
|
12
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
13
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/licenses/NOTICE,sha256=NgUq7a0KPM2X1_lzFwJFWKd-_cuMJxfz2OfCt9x1Xt4,97
|
|
14
|
+
awslabs_documentdb_mcp_server-1.0.1.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
awslabs/documentdb_mcp_server/__init__.py,sha256=AeBSwDSR0J2kTEnmEERBRKJd9vPctUVkl8QDA-CF_Tg,628
|
|
2
|
-
awslabs/documentdb_mcp_server/analytic_tools.py,sha256=V2TO59EwdQbcz06CMDov6lzwAviUzPGHXelNjiHrkzQ,14139
|
|
3
|
-
awslabs/documentdb_mcp_server/config.py,sha256=nA10pn4a6Dbc7o7Q8UuxNHt_-wZseuYNrhp8x7RFxAI,1040
|
|
4
|
-
awslabs/documentdb_mcp_server/connection_tools.py,sha256=PpA2gfz3u1CEk4_s5tH16fml1Wg-JpfJZTjDMjbfeUI,8228
|
|
5
|
-
awslabs/documentdb_mcp_server/db_management_tools.py,sha256=jLbCsx58qT5E90LCireFXogW_1zEF0ADsX9UfKOF0S0,6986
|
|
6
|
-
awslabs/documentdb_mcp_server/query_tools.py,sha256=0Fa6j7Jxcouu7lcgRIQHvfNQTAVSn4bOOEnEs0RnglM,4662
|
|
7
|
-
awslabs/documentdb_mcp_server/server.py,sha256=9ExFgDpx3_P16HPjL7aY-8fQypXf8BSCBwj0WqBNM7o,5449
|
|
8
|
-
awslabs/documentdb_mcp_server/write_tools.py,sha256=hsooYSqOvz4wLC_QWoTDHwEwl1a0Ep-Ahri7OZRHPro,8053
|
|
9
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/METADATA,sha256=0mMJCjhHxp4ZwepCJH0-wBC5cQK3haxpy7nOM8rQhuw,7339
|
|
10
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/entry_points.txt,sha256=VqOHtSIp1uNoaD3MwshRt1fj6SNqm5Xp33ynSk7htPU,92
|
|
12
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
13
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/licenses/NOTICE,sha256=NgUq7a0KPM2X1_lzFwJFWKd-_cuMJxfz2OfCt9x1Xt4,97
|
|
14
|
-
awslabs_documentdb_mcp_server-0.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|