awslabs.memcached-mcp-server 0.1.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/memcached_mcp_server/__init__.py +9 -6
- awslabs/memcached_mcp_server/common/config.py +14 -0
- awslabs/memcached_mcp_server/common/connection.py +14 -0
- awslabs/memcached_mcp_server/common/server.py +14 -0
- awslabs/memcached_mcp_server/main.py +11 -29
- awslabs/memcached_mcp_server/tools/cache.py +14 -0
- {awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/METADATA +1 -1
- awslabs_memcached_mcp_server-1.0.1.dist-info/RECORD +13 -0
- awslabs_memcached_mcp_server-0.1.2.dist-info/RECORD +0 -13
- {awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/WHEEL +0 -0
- {awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/entry_points.txt +0 -0
- {awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/licenses/NOTICE +0 -0
awslabs/__init__.py
CHANGED
|
@@ -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
|
# This file is part of the awslabs namespace.
|
|
13
16
|
# It is intentionally minimal to support PEP 420 namespace packages.
|
|
@@ -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
|
"""awslabs.memcached-mcp-server"""
|
|
13
16
|
|
|
@@ -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
|
"""Configuration for Memcached MCP Server."""
|
|
2
16
|
|
|
3
17
|
from dotenv import load_dotenv
|
|
@@ -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
|
"""Connection management for Memcached MCP Server."""
|
|
2
16
|
|
|
3
17
|
import os
|
|
@@ -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
|
"""Server initialization for Memcached MCP Server."""
|
|
2
16
|
|
|
3
17
|
from mcp.server.fastmcp import FastMCP
|
|
@@ -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
|
"""awslabs memcached MCP Server implementation."""
|
|
13
16
|
|
|
14
|
-
import argparse
|
|
15
17
|
from awslabs.memcached_mcp_server.common.server import mcp
|
|
16
18
|
from awslabs.memcached_mcp_server.tools import cache # noqa: F401
|
|
17
19
|
from loguru import logger
|
|
@@ -32,35 +34,15 @@ async def health_check(request):
|
|
|
32
34
|
class MemcachedMCPServer:
|
|
33
35
|
"""Memcached MCP Server wrapper."""
|
|
34
36
|
|
|
35
|
-
def __init__(self, sse=False, port=None):
|
|
36
|
-
"""Initialize MCP Server wrapper."""
|
|
37
|
-
self.sse = sse
|
|
38
|
-
self.port = port
|
|
39
|
-
|
|
40
37
|
def run(self):
|
|
41
38
|
"""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()
|
|
39
|
+
mcp.run()
|
|
47
40
|
|
|
48
41
|
|
|
49
42
|
def main():
|
|
50
43
|
"""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
44
|
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()
|
|
45
|
+
MemcachedMCPServer().run()
|
|
64
46
|
|
|
65
47
|
|
|
66
48
|
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
|
"""Cache operations for Memcached MCP Server."""
|
|
2
16
|
|
|
3
17
|
from awslabs.memcached_mcp_server.common.connection import MemcachedConnectionManager
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.memcached-mcp-server
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 1.0.1
|
|
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/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
awslabs/__init__.py,sha256=WuqxdDgUZylWNmVoPKiK7qGsTB_G4UmuXIrJ-VBwDew,731
|
|
2
|
+
awslabs/memcached_mcp_server/__init__.py,sha256=kjzUc4HQwca7XN0Fcui7P6fTGfdvcO8BeJEmIOpy3HU,674
|
|
3
|
+
awslabs/memcached_mcp_server/main.py,sha256=n3jgCPSw5npBWkqKmK4cd2uDgkucFBRZmkoZhKkwbco,1629
|
|
4
|
+
awslabs/memcached_mcp_server/common/config.py,sha256=XnTCcE1Gddbfhy2qy3TvHxIMzk-NR9B2Yg7RIwephvA,765
|
|
5
|
+
awslabs/memcached_mcp_server/common/connection.py,sha256=4-IiFOrjRGs-ywjmPwgcRE-WbIQ5ySuHxjfuQvpaH2A,3704
|
|
6
|
+
awslabs/memcached_mcp_server/common/server.py,sha256=vAJ0vRb_pxiIRl9CtOb1OheLJOCETLbxykij1a2rDAw,1205
|
|
7
|
+
awslabs/memcached_mcp_server/tools/cache.py,sha256=mdyA-tZ0uLN39gg_Jy7KZgn_ouZWmKGQUkRxkhUD-FE,12771
|
|
8
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/METADATA,sha256=3syyFu-HMNuKqt3JSLHmopvzCmAMlgm_5ruWEfoCHvw,4781
|
|
9
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
10
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/entry_points.txt,sha256=L6eXQdXenEsLGoVjKoZCyrrEMfDfXrSqGn_i-jYmES8,88
|
|
11
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
12
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/licenses/NOTICE,sha256=Wxt-EHT4RdVQIf79fYjNk-uwPDYiRwXxH_QNfGIG5Lg,96
|
|
13
|
+
awslabs_memcached_mcp_server-1.0.1.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
awslabs/__init__.py,sha256=47wJeKcStxEJwX7SVVV2pnAWYR8FxcaYoT3YTmZ5Plg,674
|
|
2
|
-
awslabs/memcached_mcp_server/__init__.py,sha256=D_E0pVUBpiPlnOQ5tR2T4vyLicn7wvNUYkTWgMxT9y4,617
|
|
3
|
-
awslabs/memcached_mcp_server/main.py,sha256=CJ_FUQ8_ej1mR-LS1GTQit1NB-CrH6nKWi8eCT3gbj4,2322
|
|
4
|
-
awslabs/memcached_mcp_server/common/config.py,sha256=8onPAqIuxVqMg-8Sq2IoKteGPFpJe5biOv_LVc-VvL8,149
|
|
5
|
-
awslabs/memcached_mcp_server/common/connection.py,sha256=rTNQTVnojDooBVs5syLMbrhxOTcDcFApEzD1tlDE77Y,3088
|
|
6
|
-
awslabs/memcached_mcp_server/common/server.py,sha256=dAUIguTwnU6puNdh2S5QEhT9XuVnB6uMfoZXJ9vrDoQ,589
|
|
7
|
-
awslabs/memcached_mcp_server/tools/cache.py,sha256=gvpRMx68czsFDAC4XcVyoZqLa3kypuF50jEBxWujMA8,12155
|
|
8
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/METADATA,sha256=DYIWjVlTCmgSu-E_bQsmqPA0aiEhzIZALPX1uCe0_2I,4781
|
|
9
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
10
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/entry_points.txt,sha256=L6eXQdXenEsLGoVjKoZCyrrEMfDfXrSqGn_i-jYmES8,88
|
|
11
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
12
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/licenses/NOTICE,sha256=Wxt-EHT4RdVQIf79fYjNk-uwPDYiRwXxH_QNfGIG5Lg,96
|
|
13
|
-
awslabs_memcached_mcp_server-0.1.2.dist-info/RECORD,,
|
{awslabs_memcached_mcp_server-0.1.2.dist-info → awslabs_memcached_mcp_server-1.0.1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|