awslabs.lambda-tool-mcp-server 2.0.0__tar.gz → 2.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_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/Dockerfile +9 -6
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/PKG-INFO +1 -1
- awslabs_lambda_tool_mcp_server-2.0.2/awslabs/__init__.py +16 -0
- awslabs_lambda_tool_mcp_server-2.0.2/awslabs/lambda_tool_mcp_server/__init__.py +17 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/awslabs/lambda_tool_mcp_server/server.py +16 -2
- awslabs_lambda_tool_mcp_server-2.0.2/docker-healthcheck.sh +26 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/sample_functions/customer-create/app.py +15 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/sample_functions/customer-id-from-email/app.py +15 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/sample_functions/customer-info-from-id/app.py +15 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/pyproject.toml +1 -1
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/run_tests.sh +15 -0
- awslabs_lambda_tool_mcp_server-2.0.0/awslabs/__init__.py +0 -2
- awslabs_lambda_tool_mcp_server-2.0.0/awslabs/lambda_tool_mcp_server/__init__.py +0 -3
- awslabs_lambda_tool_mcp_server-2.0.0/docker-healthcheck.sh +0 -12
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/.gitignore +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/.pre-commit-config.yaml +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/.python-version +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/CHANGELOG.md +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/LICENSE +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/NOTICE +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/README.md +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/README.md +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/sample_functions/template.yml +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/.gitignore +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/README.md +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/__init__.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/conftest.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_format_lambda_response.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_integration.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_integration_coverage.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_register_lambda_functions.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_schema_integration.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_server.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_server_coverage.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_server_coverage_additional.py +0 -0
- {awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/uv.lock +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
|
#FROM public.ecr.aws/sam/build-python3.10:1.137.1-20250411084548
|
|
13
16
|
FROM public.ecr.aws/sam/build-python3.10@sha256:e78695db10ca8cb129e59e30f7dc9789b0dbd0181dba195d68419c72bac51ac1 AS uv
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.lambda-tool-mcp-server
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for AWS Lambda Tools
|
|
5
5
|
Project-URL: Homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: Documentation, https://awslabs.github.io/mcp/servers/lambda-tool-mcp-server/
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
|
|
15
|
+
# This file is part of the awslabs namespace.
|
|
16
|
+
# It is intentionally minimal to support PEP 420 namespace packages.
|
|
@@ -0,0 +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
|
+
|
|
15
|
+
"""awslabs.lambda-tool-mcp-server"""
|
|
16
|
+
|
|
17
|
+
__version__ = '2.0.0'
|
|
@@ -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
|
"""awslabs lambda MCP Server implementation."""
|
|
2
16
|
|
|
3
17
|
import boto3
|
|
@@ -299,10 +313,10 @@ def register_lambda_functions():
|
|
|
299
313
|
|
|
300
314
|
def main():
|
|
301
315
|
"""Run the MCP server with CLI argument support."""
|
|
302
|
-
mcp.run()
|
|
303
|
-
|
|
304
316
|
register_lambda_functions()
|
|
305
317
|
|
|
318
|
+
mcp.run()
|
|
319
|
+
|
|
306
320
|
|
|
307
321
|
if __name__ == '__main__':
|
|
308
322
|
main()
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
if [ "$(lsof +c 0 -p 1 | grep -e "^awslabs\..*\s1\s.*\sunix\s.*socket$" | wc -l)" -ne "0" ]; then
|
|
18
|
+
echo -n "$(lsof +c 0 -p 1 | grep -e "^awslabs\..*\s1\s.*\sunix\s.*socket$" | wc -l) awslabs.* streams found";
|
|
19
|
+
exit 0;
|
|
20
|
+
else
|
|
21
|
+
echo -n "Zero awslabs.* streams found";
|
|
22
|
+
exit 1;
|
|
23
|
+
fi;
|
|
24
|
+
|
|
25
|
+
echo -n "Never should reach here";
|
|
26
|
+
exit 99;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
1
16
|
def lambda_handler(event: dict, context: dict) -> dict:
|
|
2
17
|
"""AWS Lambda function to create a new customer.
|
|
3
18
|
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
1
16
|
def lambda_handler(event: dict, context: dict) -> dict:
|
|
2
17
|
"""AWS Lambda function to retrieve customer ID based on customer email address.
|
|
3
18
|
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
1
16
|
def lambda_handler(event: dict, context: dict) -> dict:
|
|
2
17
|
"""AWS Lambda function to retrieve customer information based on customer ID.
|
|
3
18
|
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
2
17
|
# Script to run the lambda-tool-mcp-server tests
|
|
3
18
|
|
|
4
19
|
# Set the Python path to include the current directory and the parent directory
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
if [ "$(lsof +c 0 -p 1 | grep -e "^awslabs\..*\s1\s.*\sunix\s.*socket$" | wc -l)" -ne "0" ]; then
|
|
4
|
-
echo -n "$(lsof +c 0 -p 1 | grep -e "^awslabs\..*\s1\s.*\sunix\s.*socket$" | wc -l) awslabs.* streams found";
|
|
5
|
-
exit 0;
|
|
6
|
-
else
|
|
7
|
-
echo -n "Zero awslabs.* streams found";
|
|
8
|
-
exit 1;
|
|
9
|
-
fi;
|
|
10
|
-
|
|
11
|
-
echo -n "Never should reach here";
|
|
12
|
-
exit 99;
|
|
File without changes
|
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/.python-version
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/examples/README.md
RENAMED
|
File without changes
|
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/.gitignore
RENAMED
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/README.md
RENAMED
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/__init__.py
RENAMED
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_lambda_tool_mcp_server-2.0.0 → awslabs_lambda_tool_mcp_server-2.0.2}/tests/test_server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|