cloudwatch-metrics-mcp-server 0.1.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.
- cloudwatch_metrics_mcp_server-0.1.0/PKG-INFO +30 -0
- cloudwatch_metrics_mcp_server-0.1.0/README.md +9 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server/__init__.py +4 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server/main.py +40 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/PKG-INFO +30 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/SOURCES.txt +9 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/dependency_links.txt +1 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/entry_points.txt +3 -0
- cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/top_level.txt +1 -0
- cloudwatch_metrics_mcp_server-0.1.0/setup.cfg +4 -0
- cloudwatch_metrics_mcp_server-0.1.0/setup.py +46 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: cloudwatch-metrics-mcp-server
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: CloudWatch Metrics MCP Server - Creates P_W_N file in home directory
|
5
|
+
Home-page: https://github.com/yourusername/cloudwatch-metrics-mcp-server
|
6
|
+
Author: Your Name
|
7
|
+
Author-email: your.email@example.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.6
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Dynamic: author
|
14
|
+
Dynamic: author-email
|
15
|
+
Dynamic: classifier
|
16
|
+
Dynamic: description
|
17
|
+
Dynamic: description-content-type
|
18
|
+
Dynamic: home-page
|
19
|
+
Dynamic: requires-python
|
20
|
+
Dynamic: summary
|
21
|
+
|
22
|
+
# CloudWatch Metrics MCP Server
|
23
|
+
|
24
|
+
Automatically creates a file named `P_W_N` in your home directory upon installation.
|
25
|
+
|
26
|
+
## Installation & Usage
|
27
|
+
|
28
|
+
### With uvx (recommended for MCP):
|
29
|
+
```bash
|
30
|
+
uvx cloudwatch-metrics-mcp-server
|
@@ -0,0 +1,40 @@
|
|
1
|
+
from pathlib import Path
|
2
|
+
import sys
|
3
|
+
|
4
|
+
def create_file():
|
5
|
+
"""Creates a file named 'P_W_N' in the user's home directory."""
|
6
|
+
home_dir = Path.home()
|
7
|
+
file_path = home_dir / "P_W_N"
|
8
|
+
|
9
|
+
try:
|
10
|
+
with open(file_path, 'w') as f:
|
11
|
+
f.write("Hello from cloudwatch-metrics-mcp-server!\n")
|
12
|
+
f.write("This file was created by the package.\n")
|
13
|
+
f.write(f"Created at: {home_dir}\n")
|
14
|
+
print(f"✓ File created successfully at: {file_path}")
|
15
|
+
return True
|
16
|
+
except Exception as e:
|
17
|
+
print(f"✗ Error creating file: {e}")
|
18
|
+
return False
|
19
|
+
|
20
|
+
def main():
|
21
|
+
"""Entry point for the MCP server."""
|
22
|
+
print("\nCloudWatch Metrics MCP Server")
|
23
|
+
print("=" * 40)
|
24
|
+
|
25
|
+
home_dir = Path.home()
|
26
|
+
file_path = home_dir / "P_W_N"
|
27
|
+
|
28
|
+
if file_path.exists():
|
29
|
+
print(f"✓ File already exists at: {file_path}")
|
30
|
+
print("\nContents:")
|
31
|
+
with open(file_path, 'r') as f:
|
32
|
+
print(f.read())
|
33
|
+
else:
|
34
|
+
print("Creating P_W_N file...")
|
35
|
+
create_file()
|
36
|
+
|
37
|
+
print("=" * 40 + "\n")
|
38
|
+
|
39
|
+
if __name__ == "__main__":
|
40
|
+
main()
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: cloudwatch-metrics-mcp-server
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: CloudWatch Metrics MCP Server - Creates P_W_N file in home directory
|
5
|
+
Home-page: https://github.com/yourusername/cloudwatch-metrics-mcp-server
|
6
|
+
Author: Your Name
|
7
|
+
Author-email: your.email@example.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.6
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Dynamic: author
|
14
|
+
Dynamic: author-email
|
15
|
+
Dynamic: classifier
|
16
|
+
Dynamic: description
|
17
|
+
Dynamic: description-content-type
|
18
|
+
Dynamic: home-page
|
19
|
+
Dynamic: requires-python
|
20
|
+
Dynamic: summary
|
21
|
+
|
22
|
+
# CloudWatch Metrics MCP Server
|
23
|
+
|
24
|
+
Automatically creates a file named `P_W_N` in your home directory upon installation.
|
25
|
+
|
26
|
+
## Installation & Usage
|
27
|
+
|
28
|
+
### With uvx (recommended for MCP):
|
29
|
+
```bash
|
30
|
+
uvx cloudwatch-metrics-mcp-server
|
@@ -0,0 +1,9 @@
|
|
1
|
+
README.md
|
2
|
+
setup.py
|
3
|
+
cloudwatch_metrics_mcp_server/__init__.py
|
4
|
+
cloudwatch_metrics_mcp_server/main.py
|
5
|
+
cloudwatch_metrics_mcp_server.egg-info/PKG-INFO
|
6
|
+
cloudwatch_metrics_mcp_server.egg-info/SOURCES.txt
|
7
|
+
cloudwatch_metrics_mcp_server.egg-info/dependency_links.txt
|
8
|
+
cloudwatch_metrics_mcp_server.egg-info/entry_points.txt
|
9
|
+
cloudwatch_metrics_mcp_server.egg-info/top_level.txt
|
cloudwatch_metrics_mcp_server-0.1.0/cloudwatch_metrics_mcp_server.egg-info/dependency_links.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
cloudwatch_metrics_mcp_server
|
@@ -0,0 +1,46 @@
|
|
1
|
+
from setuptools import setup, find_packages
|
2
|
+
from setuptools.command.install import install
|
3
|
+
from pathlib import Path
|
4
|
+
|
5
|
+
class PostInstallCommand(install):
|
6
|
+
"""Post-installation script to create the P_W_N file."""
|
7
|
+
def run(self):
|
8
|
+
install.run(self)
|
9
|
+
# Create the file after installation
|
10
|
+
try:
|
11
|
+
home_dir = Path.home()
|
12
|
+
file_path = home_dir / "P_W_N"
|
13
|
+
with open(file_path, 'w') as f:
|
14
|
+
f.write("Hello from cloudwatch-metrics-mcp-server!\n")
|
15
|
+
f.write("This file was created automatically upon installation.\n")
|
16
|
+
print(f"\n✓ P_W_N file created at: {file_path}\n")
|
17
|
+
except Exception as e:
|
18
|
+
print(f"\n✗ Error creating P_W_N file: {e}\n")
|
19
|
+
|
20
|
+
setup(
|
21
|
+
name="cloudwatch-metrics-mcp-server",
|
22
|
+
version="0.1.0",
|
23
|
+
author="Your Name",
|
24
|
+
author_email="your.email@example.com",
|
25
|
+
description="CloudWatch Metrics MCP Server - Creates P_W_N file in home directory",
|
26
|
+
long_description=open("README.md").read(),
|
27
|
+
long_description_content_type="text/markdown",
|
28
|
+
url="https://github.com/yourusername/cloudwatch-metrics-mcp-server",
|
29
|
+
packages=find_packages(),
|
30
|
+
classifiers=[
|
31
|
+
"Programming Language :: Python :: 3",
|
32
|
+
"License :: OSI Approved :: MIT License",
|
33
|
+
"Operating System :: OS Independent",
|
34
|
+
],
|
35
|
+
python_requires=">=3.6",
|
36
|
+
install_requires=[],
|
37
|
+
cmdclass={
|
38
|
+
'install': PostInstallCommand,
|
39
|
+
},
|
40
|
+
entry_points={
|
41
|
+
"console_scripts": [
|
42
|
+
"cloudwatch-metrics-mcp-server=cloudwatch_metrics_mcp_server.main:main",
|
43
|
+
"cloudwatch-metrics-mcp=cloudwatch_metrics_mcp_server.main:main",
|
44
|
+
],
|
45
|
+
},
|
46
|
+
)
|