awslabs.memcached-mcp-server 0.1.2__tar.gz → 1.0.0__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_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/Dockerfile +2 -2
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/ELASTICACHECONNECT.md +4 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/PKG-INFO +1 -1
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/main.py +2 -23
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/pyproject.toml +1 -1
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_main.py +0 -17
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/.gitignore +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/.pre-commit-config.yaml +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/.python-version +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/CHANGELOG.md +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/LICENSE +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/NOTICE +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/README.md +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/__init__.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/__init__.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/common/config.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/common/connection.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/common/server.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/memcached_mcp_server/tools/cache.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/docker-healthcheck.sh +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_cache.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_connection.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_init.py +0 -0
- {awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/uv.lock +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# and limitations under the License.
|
|
11
11
|
|
|
12
12
|
#FROM public.ecr.aws/sam/build-python3.10:1.137.1-20250411084548
|
|
13
|
-
FROM public.ecr.aws/sam/build-python3.10@sha256:
|
|
13
|
+
FROM public.ecr.aws/sam/build-python3.10@sha256:e78695db10ca8cb129e59e30f7dc9789b0dbd0181dba195d68419c72bac51ac1 AS uv
|
|
14
14
|
|
|
15
15
|
# Install the project into `/app`
|
|
16
16
|
WORKDIR /app
|
|
@@ -44,7 +44,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|
|
44
44
|
# Make the directory just in case it doesn't exist
|
|
45
45
|
RUN mkdir -p /root/.local
|
|
46
46
|
|
|
47
|
-
FROM public.ecr.aws/sam/build-python3.10@sha256:
|
|
47
|
+
FROM public.ecr.aws/sam/build-python3.10@sha256:e78695db10ca8cb129e59e30f7dc9789b0dbd0181dba195d68419c72bac51ac1
|
|
48
48
|
|
|
49
49
|
# Place executables in the environment at the front of the path and include other binaries
|
|
50
50
|
ENV PATH="/app/.venv/bin:$PATH:/usr/sbin"
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/ELASTICACHECONNECT.md
RENAMED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# How to connect to an Amazon ElastiCache Memcached cache
|
|
2
2
|
|
|
3
|
+
Your Amazon ElastiCache instances are designed to be accessed through an Amazon EC2 instance. You can access your ElastiCache instance from an Amazon EC2 instance in the same Amazon VPC, or by using VPC peering, you can access your ElastiCache instance from an Amazon EC2 in a different Amazon VPC.
|
|
4
|
+
|
|
5
|
+
The following instructions will help you create an EC2 instance in the same VPC as your cache instance, and will guide you to configure the security groups required to access the cache from your desktop through an SSH tunnel.
|
|
6
|
+
|
|
3
7
|
## Launch and configure the EC2 instance
|
|
4
8
|
|
|
5
9
|
Complete the following steps:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.memcached-mcp-server
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for Amazon ElastiCache Memcached
|
|
5
5
|
Project-URL: homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: docs, https://awslabs.github.io/mcp/servers/memcached-mcp-server/
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
"""awslabs memcached MCP Server implementation."""
|
|
13
13
|
|
|
14
|
-
import argparse
|
|
15
14
|
from awslabs.memcached_mcp_server.common.server import mcp
|
|
16
15
|
from awslabs.memcached_mcp_server.tools import cache # noqa: F401
|
|
17
16
|
from loguru import logger
|
|
@@ -32,35 +31,15 @@ async def health_check(request):
|
|
|
32
31
|
class MemcachedMCPServer:
|
|
33
32
|
"""Memcached MCP Server wrapper."""
|
|
34
33
|
|
|
35
|
-
def __init__(self, sse=False, port=None):
|
|
36
|
-
"""Initialize MCP Server wrapper."""
|
|
37
|
-
self.sse = sse
|
|
38
|
-
self.port = port
|
|
39
|
-
|
|
40
34
|
def run(self):
|
|
41
35
|
"""Run server with appropriate transport."""
|
|
42
|
-
|
|
43
|
-
mcp.settings.port = int(self.port) if self.port is not None else 8888
|
|
44
|
-
mcp.run(transport='sse')
|
|
45
|
-
else:
|
|
46
|
-
mcp.run()
|
|
36
|
+
mcp.run()
|
|
47
37
|
|
|
48
38
|
|
|
49
39
|
def main():
|
|
50
40
|
"""Run the MCP server with CLI argument support."""
|
|
51
|
-
parser = argparse.ArgumentParser(
|
|
52
|
-
description='An AWS Labs Model Context Protocol (MCP) server for Amazon ElastiCache Memcached'
|
|
53
|
-
)
|
|
54
|
-
parser.add_argument('--sse', action='store_true', help='Use SSE transport')
|
|
55
|
-
parser.add_argument('--port', type=int, default=8888, help='Port to run the server on')
|
|
56
|
-
|
|
57
|
-
args = parser.parse_args()
|
|
58
|
-
|
|
59
41
|
logger.info('Amazon ElastiCache Memcached MCP Server Started...')
|
|
60
|
-
|
|
61
|
-
# Run server with appropriate transport
|
|
62
|
-
server = MemcachedMCPServer(args.sse, args.port)
|
|
63
|
-
server.run()
|
|
42
|
+
MemcachedMCPServer().run()
|
|
64
43
|
|
|
65
44
|
|
|
66
45
|
if __name__ == '__main__':
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_main.py
RENAMED
|
@@ -26,23 +26,6 @@ class TestMain:
|
|
|
26
26
|
|
|
27
27
|
# Check that mcp.run was called with the correct arguments
|
|
28
28
|
mock_run.assert_called_once()
|
|
29
|
-
assert mock_run.call_args[1].get('transport') is None
|
|
30
|
-
|
|
31
|
-
@patch('awslabs.memcached_mcp_server.common.server.mcp.run')
|
|
32
|
-
@patch('sys.argv', ['awslabs.memcached-mcp-server', '--sse', '--port', '9999'])
|
|
33
|
-
def test_main_sse(self, mock_run):
|
|
34
|
-
"""Test main function with SSE transport."""
|
|
35
|
-
# Call the main function
|
|
36
|
-
main()
|
|
37
|
-
|
|
38
|
-
# Check that mcp.run was called with the correct arguments
|
|
39
|
-
mock_run.assert_called_once()
|
|
40
|
-
assert mock_run.call_args[1].get('transport') == 'sse'
|
|
41
|
-
|
|
42
|
-
# Check that the port was set correctly
|
|
43
|
-
from awslabs.memcached_mcp_server.main import mcp
|
|
44
|
-
|
|
45
|
-
assert mcp.settings.port == 9999
|
|
46
29
|
|
|
47
30
|
def test_module_execution(self):
|
|
48
31
|
"""Test the module execution when run as __main__."""
|
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/.pre-commit-config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/awslabs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/docker-healthcheck.sh
RENAMED
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_cache.py
RENAMED
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_connection.py
RENAMED
|
File without changes
|
{awslabs_memcached_mcp_server-0.1.2 → awslabs_memcached_mcp_server-1.0.0}/tests/test_init.py
RENAMED
|
File without changes
|
|
File without changes
|