awslabs.syntheticdata-mcp-server 0.0.2__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/__init__.py +9 -6
- awslabs/syntheticdata_mcp_server/__init__.py +8 -7
- awslabs/syntheticdata_mcp_server/pandas_interpreter.py +9 -6
- awslabs/syntheticdata_mcp_server/server.py +10 -21
- awslabs/syntheticdata_mcp_server/storage/__init__.py +14 -0
- awslabs/syntheticdata_mcp_server/storage/base.py +9 -6
- awslabs/syntheticdata_mcp_server/storage/loader.py +9 -6
- awslabs/syntheticdata_mcp_server/storage/s3.py +14 -0
- {awslabs_syntheticdata_mcp_server-0.0.2.dist-info → awslabs_syntheticdata_mcp_server-1.0.1.dist-info}/METADATA +1 -1
- awslabs_syntheticdata_mcp_server-1.0.1.dist-info/RECORD +14 -0
- awslabs_syntheticdata_mcp_server-0.0.2.dist-info/RECORD +0 -14
- {awslabs_syntheticdata_mcp_server-0.0.2.dist-info → awslabs_syntheticdata_mcp_server-1.0.1.dist-info}/WHEEL +0 -0
- {awslabs_syntheticdata_mcp_server-0.0.2.dist-info → awslabs_syntheticdata_mcp_server-1.0.1.dist-info}/entry_points.txt +0 -0
- {awslabs_syntheticdata_mcp_server-0.0.2.dist-info → awslabs_syntheticdata_mcp_server-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {awslabs_syntheticdata_mcp_server-0.0.2.dist-info → awslabs_syntheticdata_mcp_server-1.0.1.dist-info}/licenses/NOTICE +0 -0
awslabs/__init__.py
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
# This file is part of the awslabs namespace.
|
|
2
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
2
|
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
|
-
#
|
|
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
|
|
6
6
|
#
|
|
7
7
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
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.
|
|
14
|
+
|
|
12
15
|
# It is intentionally minimal to support PEP 420 namespace packages.
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
#
|
|
2
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
2
|
#
|
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License")
|
|
5
|
-
#
|
|
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
|
|
6
6
|
#
|
|
7
7
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
|
|
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.
|
|
13
14
|
|
|
14
15
|
"""SyntheticData MCP Server package."""
|
|
15
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
|
|
|
13
16
|
import ast
|
|
@@ -1,17 +1,19 @@
|
|
|
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 syntheticdata MCP Server implementation."""
|
|
13
16
|
|
|
14
|
-
import argparse
|
|
15
17
|
import os
|
|
16
18
|
import pandas as pd
|
|
17
19
|
import re
|
|
@@ -756,20 +758,7 @@ def _validate_table_data(table_name: str, records: List[Dict]) -> Dict:
|
|
|
756
758
|
|
|
757
759
|
def main():
|
|
758
760
|
"""Run the MCP server with CLI argument support."""
|
|
759
|
-
|
|
760
|
-
description='MCP server for generating synthetic data based on business use cases'
|
|
761
|
-
)
|
|
762
|
-
parser.add_argument('--sse', action='store_true', help='Use SSE transport')
|
|
763
|
-
parser.add_argument('--port', type=int, default=8888, help='Port to run the server on')
|
|
764
|
-
|
|
765
|
-
args = parser.parse_args()
|
|
766
|
-
|
|
767
|
-
# Run server with appropriate transport
|
|
768
|
-
if args.sse:
|
|
769
|
-
mcp.settings.port = args.port
|
|
770
|
-
mcp.run(transport='sse')
|
|
771
|
-
else:
|
|
772
|
-
mcp.run()
|
|
761
|
+
mcp.run()
|
|
773
762
|
|
|
774
763
|
|
|
775
764
|
if __name__ == '__main__':
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Storage module for synthetic data loading."""
|
|
2
16
|
|
|
3
17
|
from .base import DataTarget
|
|
@@ -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
|
|
|
13
16
|
"""Base classes for data storage targets."""
|
|
@@ -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
|
|
|
13
16
|
"""Unified data loader implementation."""
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""S3 storage target implementation."""
|
|
2
16
|
|
|
3
17
|
import asyncio
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.syntheticdata-mcp-server
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for syntheticdata
|
|
5
5
|
Project-URL: homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: docs, https://awslabs.github.io/mcp/servers/syntheticdata-mcp-server/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
awslabs/__init__.py,sha256=5FVz9_08N1HOLo_BN1kWieVJ8__7ufitPDMSbU2VDbA,685
|
|
2
|
+
awslabs/syntheticdata_mcp_server/__init__.py,sha256=FE659UrRvet0ne3G8-0iU0YOSHuLbvTU8j1uXCmZ2eg,679
|
|
3
|
+
awslabs/syntheticdata_mcp_server/pandas_interpreter.py,sha256=tqCLW7LPaQAGwcV4MggiWwpgf4UVw2Qty2YfI4y9JzE,10124
|
|
4
|
+
awslabs/syntheticdata_mcp_server/server.py,sha256=-0hZ003x1LTxSS9AEmEFS4pPnGJ4RSCD7sceUx-QST4,27705
|
|
5
|
+
awslabs/syntheticdata_mcp_server/storage/__init__.py,sha256=7XvD4Ia_UvPkLBzcKyq6J6xcYPmlcFuFxc81ZR8DqcU,817
|
|
6
|
+
awslabs/syntheticdata_mcp_server/storage/base.py,sha256=03nJPICxVBCUBKBwmdzLp36EqOIiug40QjXWfry6B3w,1594
|
|
7
|
+
awslabs/syntheticdata_mcp_server/storage/loader.py,sha256=GnRLK-Pgm320LTDU6ZFiybY6R0MZV_bOTFvfYNiJlqc,3175
|
|
8
|
+
awslabs/syntheticdata_mcp_server/storage/s3.py,sha256=_CLNF9xPDq5p6qJtu29951OLNFc35vKLK22FuFaTA-Y,8589
|
|
9
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/METADATA,sha256=5FA4TWfAV9lwS6tG7aqxtI33Ixs28YoZSl93JStYctU,4700
|
|
10
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/entry_points.txt,sha256=irsU4Ts5TsNCUmV4-ctPbkeqC6amCzI8Es9At1jylcI,98
|
|
12
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
13
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/licenses/NOTICE,sha256=6YOTbc8gQC0JqDIjwjdSIVsY9CtVd1vJeKxu6oqEUiE,100
|
|
14
|
+
awslabs_syntheticdata_mcp_server-1.0.1.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
awslabs/__init__.py,sha256=8r6KA5knEPJXmJXrBXU0rwzZmSt1Ar0kcDpmQQuo1i4,674
|
|
2
|
-
awslabs/syntheticdata_mcp_server/__init__.py,sha256=kfGBcnyPKEWN5hs3ViopoSKEsW8K2t3466vR3QiC2tQ,626
|
|
3
|
-
awslabs/syntheticdata_mcp_server/pandas_interpreter.py,sha256=Uex1n2ieG9gt-qFb7zPtDHZYRne9qaawUu3NBONixVk,10067
|
|
4
|
-
awslabs/syntheticdata_mcp_server/server.py,sha256=Ie7cIs0RvvK_tUHadKYu_LVpWZq2LasXyC8B3KU3Bd0,28150
|
|
5
|
-
awslabs/syntheticdata_mcp_server/storage/__init__.py,sha256=4p31heOr0rR6T6KF3XmZcUB4Nb-uLAw4O1gXfW838Q8,201
|
|
6
|
-
awslabs/syntheticdata_mcp_server/storage/base.py,sha256=JkWFLYqioTlXHkEXoS0Ba-lUln7L5S_8WMSkqo4gTIA,1537
|
|
7
|
-
awslabs/syntheticdata_mcp_server/storage/loader.py,sha256=ukFYmk9v6b6-MB9cfNyZsuCKTh977GWIndVeYOjzAfo,3118
|
|
8
|
-
awslabs/syntheticdata_mcp_server/storage/s3.py,sha256=fSqGWbWjG4Lw3wI6QA3626KKQeKSMeL9_p6lzW2rkjU,7973
|
|
9
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/METADATA,sha256=_ADnRMdHO1PWeKbHkGX949Y-hNCqBH8Nhe-uYQJpcIM,4700
|
|
10
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/entry_points.txt,sha256=irsU4Ts5TsNCUmV4-ctPbkeqC6amCzI8Es9At1jylcI,98
|
|
12
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
13
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/licenses/NOTICE,sha256=6YOTbc8gQC0JqDIjwjdSIVsY9CtVd1vJeKxu6oqEUiE,100
|
|
14
|
-
awslabs_syntheticdata_mcp_server-0.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|