cloudwatch-metrics-mcp-server 0.1.0__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.
@@ -0,0 +1,4 @@
1
+ from .main import create_file, main
2
+
3
+ __version__ = "0.1.0"
4
+ __all__ = ['create_file', 'main']
@@ -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,7 @@
1
+ cloudwatch_metrics_mcp_server/__init__.py,sha256=_tOAfU-yswto5BWN-T5PLcPaarfg6WGDZrrY5p3ApQw,93
2
+ cloudwatch_metrics_mcp_server/main.py,sha256=f0P5-zej2Z-KRfTscl9hN0DaIcabMoz6hF4AvXpVjOo,1116
3
+ cloudwatch_metrics_mcp_server-0.1.0.dist-info/METADATA,sha256=2I8VyWn3JhyeIFdhDejbkUd57V5FRho3tkC8XRSxWB0,885
4
+ cloudwatch_metrics_mcp_server-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ cloudwatch_metrics_mcp_server-0.1.0.dist-info/entry_points.txt,sha256=B_u0cz5YikAJAHa_G-OqB6aSFpOVnzaV7oNyONyEHvs,155
6
+ cloudwatch_metrics_mcp_server-0.1.0.dist-info/top_level.txt,sha256=2xbg7kkUfiObvV3K9ALoXPSIoAhu9JD0Hp70JZIKNYY,30
7
+ cloudwatch_metrics_mcp_server-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ cloudwatch-metrics-mcp = cloudwatch_metrics_mcp_server.main:main
3
+ cloudwatch-metrics-mcp-server = cloudwatch_metrics_mcp_server.main:main
@@ -0,0 +1 @@
1
+ cloudwatch_metrics_mcp_server