awslabs.prometheus-mcp-server 0.2.9__tar.gz → 0.2.11__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_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/Dockerfile +19 -22
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/PKG-INFO +10 -12
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/README.md +9 -11
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/prometheus_mcp_server/__init__.py +1 -1
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/docker-healthcheck.sh +1 -1
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/pyproject.toml +1 -1
- awslabs_prometheus_mcp_server-0.2.11/uv-requirements.txt +23 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/uv.lock +11 -10
- awslabs_prometheus_mcp_server-0.2.9/uv-requirements.txt +0 -27
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/.gitignore +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/.python-version +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/CHANGELOG.md +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/LICENSE +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/NOTICE +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/__init__.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/prometheus_mcp_server/consts.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/prometheus_mcp_server/models.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/prometheus_mcp_server/server.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/conftest.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_aws_credentials.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_config_manager.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_consts.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_coverage_gaps.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_coverage_improvement.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_final_coverage.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_init.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_main.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_models.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_prometheus_client.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_prometheus_connection.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_security_validator.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_server_coverage.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_tools.py +0 -0
- {awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_workspace_config.py +0 -0
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# dependabot should continue to update this to the latest hash.
|
|
16
|
-
FROM public.ecr.aws/
|
|
16
|
+
FROM public.ecr.aws/amazonlinux/amazonlinux@sha256:e27a70c006c68f0d194cc9b9624714d6ed8d979a94f60f7d31392f4c8294155b AS uv
|
|
17
|
+
|
|
18
|
+
# Install build dependencies needed for compiling packages
|
|
19
|
+
RUN dnf install -y shadow-utils python3 python3-devel gcc && \
|
|
20
|
+
dnf clean all
|
|
17
21
|
|
|
18
22
|
# Install the project into `/app`
|
|
19
23
|
WORKDIR /app
|
|
@@ -25,7 +29,7 @@ ENV UV_COMPILE_BYTECODE=1
|
|
|
25
29
|
ENV UV_LINK_MODE=copy
|
|
26
30
|
|
|
27
31
|
# Prefer the system python
|
|
28
|
-
ENV UV_PYTHON_PREFERENCE=only-
|
|
32
|
+
ENV UV_PYTHON_PREFERENCE=only-managed
|
|
29
33
|
|
|
30
34
|
# Run without updating the uv.lock file like running with `--frozen`
|
|
31
35
|
ENV UV_FROZEN=true
|
|
@@ -37,19 +41,10 @@ COPY pyproject.toml uv.lock uv-requirements.txt ./
|
|
|
37
41
|
ENV PIP_NO_CACHE_DIR=1 \
|
|
38
42
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
39
43
|
|
|
40
|
-
# Install system dependencies and Python package manager
|
|
41
|
-
RUN apk update && \
|
|
42
|
-
apk add --no-cache --virtual .build-deps \
|
|
43
|
-
build-base \
|
|
44
|
-
gcc \
|
|
45
|
-
musl-dev \
|
|
46
|
-
libffi-dev \
|
|
47
|
-
openssl-dev \
|
|
48
|
-
cargo
|
|
49
|
-
|
|
50
44
|
# Install the project's dependencies using the lockfile and settings
|
|
51
45
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
52
|
-
|
|
46
|
+
python3 -m ensurepip && \
|
|
47
|
+
python3 -m pip install --require-hashes --requirement uv-requirements.txt --no-cache-dir && \
|
|
53
48
|
uv sync --python 3.13 --frozen --no-install-project --no-dev --no-editable
|
|
54
49
|
|
|
55
50
|
# Then, add the rest of the project source code and install it
|
|
@@ -61,20 +56,22 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|
|
61
56
|
# Make the directory just in case it doesn't exist
|
|
62
57
|
RUN mkdir -p /root/.local
|
|
63
58
|
|
|
64
|
-
FROM public.ecr.aws/
|
|
59
|
+
FROM public.ecr.aws/amazonlinux/amazonlinux@sha256:e27a70c006c68f0d194cc9b9624714d6ed8d979a94f60f7d31392f4c8294155b
|
|
65
60
|
|
|
66
61
|
# Place executables in the environment at the front of the path and include other binaries
|
|
67
|
-
ENV PATH="/app/.venv/bin:$PATH" \
|
|
62
|
+
ENV PATH="/app/.venv/bin:$PATH:/usr/sbin" \
|
|
68
63
|
PYTHONUNBUFFERED=1
|
|
69
64
|
|
|
70
|
-
# Install
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
65
|
+
# Install other tools as needed for the MCP server
|
|
66
|
+
# Add non-root user and ability to change directory into /root
|
|
67
|
+
RUN dnf install -y shadow-utils procps && \
|
|
68
|
+
dnf clean all && \
|
|
69
|
+
groupadd --force --system app && \
|
|
70
|
+
useradd app -g app -d /app && \
|
|
71
|
+
chmod o+x /root
|
|
76
72
|
|
|
77
|
-
#
|
|
73
|
+
# Get the project from the uv layer
|
|
74
|
+
COPY --from=uv --chown=app:app /root/.local /root/.local
|
|
78
75
|
COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
|
79
76
|
|
|
80
77
|
# Get healthcheck script
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.prometheus-mcp-server
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.11
|
|
4
4
|
Summary: MCP server for interacting with AWS Managed Prometheus
|
|
5
5
|
Project-URL: homepage, https://awslabs.github.io/mcp/
|
|
6
6
|
Project-URL: docs, https://awslabs.github.io/mcp/servers/prometheus-mcp-server/
|
|
@@ -34,7 +34,7 @@ Description-Content-Type: text/markdown
|
|
|
34
34
|
|
|
35
35
|
The Prometheus MCP Server provides a robust interface for interacting with AWS Managed Prometheus, enabling users to execute PromQL queries, list metrics, and retrieve server information with AWS SigV4 authentication support.
|
|
36
36
|
|
|
37
|
-
This MCP server is designed to be fully compatible with
|
|
37
|
+
This MCP server is designed to be fully compatible with Kiro, allowing seamless integration of Prometheus monitoring capabilities into your Kiro workflows. You can load the server directly into Kiro to leverage its powerful querying and metric analysis features through the familiar Kiro IDE and Kiro CLI interfaces.
|
|
38
38
|
|
|
39
39
|
## Features
|
|
40
40
|
|
|
@@ -47,9 +47,9 @@ This MCP server is designed to be fully compatible with Amazon Q developer CLI,
|
|
|
47
47
|
|
|
48
48
|
## Installation
|
|
49
49
|
|
|
50
|
-
| Cursor | VS Code |
|
|
51
|
-
|
|
52
|
-
| [](https://cursor.com/en/install-mcp?name=awslabs.prometheus-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucHJvbWV0aGV1cy1tY3Atc2VydmVyQGxhdGVzdCAtLXVybCBodHRwczovL2Fwcy13b3Jrc3BhY2VzLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL3dvcmtzcGFjZXMvd3MtPFdvcmtzcGFjZSBJRD4gLS1yZWdpb24gPFlvdXIgQVdTIFJlZ2lvbj4gLS1wcm9maWxlIDxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiREVCVUciLCJBV1NfUFJPRklMRSI6IjxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIn19) | [](https://insiders.vscode.dev/redirect/mcp/install?name=Prometheus%20MCP%20Server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A%2F%2Faps-workspaces.us-east-1.amazonaws.com%2Fworkspaces%2Fws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) |
|
|
50
|
+
| Kiro | Cursor | VS Code |
|
|
51
|
+
|:----:|:------:|:-------:|
|
|
52
|
+
| [](https://kiro.dev/launch/mcp/add?name=awslabs.prometheus-mcp-server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A//aps-workspaces.us-east-1.amazonaws.com/workspaces/ws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) | [](https://cursor.com/en/install-mcp?name=awslabs.prometheus-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucHJvbWV0aGV1cy1tY3Atc2VydmVyQGxhdGVzdCAtLXVybCBodHRwczovL2Fwcy13b3Jrc3BhY2VzLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL3dvcmtzcGFjZXMvd3MtPFdvcmtzcGFjZSBJRD4gLS1yZWdpb24gPFlvdXIgQVdTIFJlZ2lvbj4gLS1wcm9maWxlIDxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiREVCVUciLCJBV1NfUFJPRklMRSI6IjxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIn19) | [](https://insiders.vscode.dev/redirect/mcp/install?name=Prometheus%20MCP%20Server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A%2F%2Faps-workspaces.us-east-1.amazonaws.com%2Fworkspaces%2Fws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) |
|
|
53
53
|
|
|
54
54
|
### Prerequisites
|
|
55
55
|
|
|
@@ -61,18 +61,16 @@ This MCP server is designed to be fully compatible with Amazon Q developer CLI,
|
|
|
61
61
|
|
|
62
62
|
## Configuration
|
|
63
63
|
|
|
64
|
-
The server is configured through the
|
|
64
|
+
The server is configured through the Kiro MCP configuration file as shown in the Usage section below.
|
|
65
65
|
|
|
66
|
-
## Usage with
|
|
67
|
-
|
|
68
|
-
Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon:
|
|
66
|
+
## Usage with Kiro
|
|
69
67
|
|
|
70
68
|
1. Create a configuration file:
|
|
71
69
|
```bash
|
|
72
|
-
mkdir -p ~/.
|
|
70
|
+
mkdir -p ~/.kiro/settings/
|
|
73
71
|
```
|
|
74
72
|
|
|
75
|
-
2. Add the following to `~/.
|
|
73
|
+
2. Add the following to `~/.kiro/settings/mcp.json`:
|
|
76
74
|
|
|
77
75
|
### Basic Configuration
|
|
78
76
|
```json
|
|
@@ -143,7 +141,7 @@ For Windows users, the MCP server configuration format is slightly different:
|
|
|
143
141
|
}
|
|
144
142
|
```
|
|
145
143
|
|
|
146
|
-
3. In
|
|
144
|
+
3. In Kiro, you can now use the Prometheus MCP server to query your metrics.
|
|
147
145
|
|
|
148
146
|
## Available Tools
|
|
149
147
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Prometheus MCP Server provides a robust interface for interacting with AWS Managed Prometheus, enabling users to execute PromQL queries, list metrics, and retrieve server information with AWS SigV4 authentication support.
|
|
4
4
|
|
|
5
|
-
This MCP server is designed to be fully compatible with
|
|
5
|
+
This MCP server is designed to be fully compatible with Kiro, allowing seamless integration of Prometheus monitoring capabilities into your Kiro workflows. You can load the server directly into Kiro to leverage its powerful querying and metric analysis features through the familiar Kiro IDE and Kiro CLI interfaces.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -15,9 +15,9 @@ This MCP server is designed to be fully compatible with Amazon Q developer CLI,
|
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
-
| Cursor | VS Code |
|
|
19
|
-
|
|
20
|
-
| [](https://cursor.com/en/install-mcp?name=awslabs.prometheus-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucHJvbWV0aGV1cy1tY3Atc2VydmVyQGxhdGVzdCAtLXVybCBodHRwczovL2Fwcy13b3Jrc3BhY2VzLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL3dvcmtzcGFjZXMvd3MtPFdvcmtzcGFjZSBJRD4gLS1yZWdpb24gPFlvdXIgQVdTIFJlZ2lvbj4gLS1wcm9maWxlIDxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiREVCVUciLCJBV1NfUFJPRklMRSI6IjxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIn19) | [](https://insiders.vscode.dev/redirect/mcp/install?name=Prometheus%20MCP%20Server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A%2F%2Faps-workspaces.us-east-1.amazonaws.com%2Fworkspaces%2Fws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) |
|
|
18
|
+
| Kiro | Cursor | VS Code |
|
|
19
|
+
|:----:|:------:|:-------:|
|
|
20
|
+
| [](https://kiro.dev/launch/mcp/add?name=awslabs.prometheus-mcp-server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A//aps-workspaces.us-east-1.amazonaws.com/workspaces/ws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) | [](https://cursor.com/en/install-mcp?name=awslabs.prometheus-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMucHJvbWV0aGV1cy1tY3Atc2VydmVyQGxhdGVzdCAtLXVybCBodHRwczovL2Fwcy13b3Jrc3BhY2VzLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL3dvcmtzcGFjZXMvd3MtPFdvcmtzcGFjZSBJRD4gLS1yZWdpb24gPFlvdXIgQVdTIFJlZ2lvbj4gLS1wcm9maWxlIDxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiREVCVUciLCJBV1NfUFJPRklMRSI6IjxZb3VyIENMSSBQcm9maWxlIFtkZWZhdWx0XSBpZiBubyBwcm9maWxlIGlzIHVzZWQ%2BIn19) | [](https://insiders.vscode.dev/redirect/mcp/install?name=Prometheus%20MCP%20Server&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.prometheus-mcp-server%40latest%22%2C%22--url%22%2C%22https%3A%2F%2Faps-workspaces.us-east-1.amazonaws.com%2Fworkspaces%2Fws-%3CWorkspace%20ID%3E%22%2C%22--region%22%2C%22%3CYour%20AWS%20Region%3E%22%2C%22--profile%22%2C%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22DEBUG%22%2C%22AWS_PROFILE%22%3A%22%3CYour%20CLI%20Profile%20%5Bdefault%5D%20if%20no%20profile%20is%20used%3E%22%7D%7D) |
|
|
21
21
|
|
|
22
22
|
### Prerequisites
|
|
23
23
|
|
|
@@ -29,18 +29,16 @@ This MCP server is designed to be fully compatible with Amazon Q developer CLI,
|
|
|
29
29
|
|
|
30
30
|
## Configuration
|
|
31
31
|
|
|
32
|
-
The server is configured through the
|
|
32
|
+
The server is configured through the Kiro MCP configuration file as shown in the Usage section below.
|
|
33
33
|
|
|
34
|
-
## Usage with
|
|
35
|
-
|
|
36
|
-
Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon:
|
|
34
|
+
## Usage with Kiro
|
|
37
35
|
|
|
38
36
|
1. Create a configuration file:
|
|
39
37
|
```bash
|
|
40
|
-
mkdir -p ~/.
|
|
38
|
+
mkdir -p ~/.kiro/settings/
|
|
41
39
|
```
|
|
42
40
|
|
|
43
|
-
2. Add the following to `~/.
|
|
41
|
+
2. Add the following to `~/.kiro/settings/mcp.json`:
|
|
44
42
|
|
|
45
43
|
### Basic Configuration
|
|
46
44
|
```json
|
|
@@ -111,7 +109,7 @@ For Windows users, the MCP server configuration format is slightly different:
|
|
|
111
109
|
}
|
|
112
110
|
```
|
|
113
111
|
|
|
114
|
-
3. In
|
|
112
|
+
3. In Kiro, you can now use the Prometheus MCP server to query your metrics.
|
|
115
113
|
|
|
116
114
|
## Available Tools
|
|
117
115
|
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/docker-healthcheck.sh
RENAMED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
SERVER="prometheus-mcp-server"
|
|
17
17
|
|
|
18
18
|
# Check if the server process is running
|
|
19
|
-
if pgrep -P 0 -a -l -x -f "/app/.venv/bin/python3 /app/.venv/bin/awslabs.$SERVER" > /dev/null; then
|
|
19
|
+
if pgrep -P 0 -a -l -x -f "/app/.venv/bin/python3? /app/.venv/bin/awslabs.$SERVER" > /dev/null; then
|
|
20
20
|
echo -n "$SERVER is running";
|
|
21
21
|
exit 0;
|
|
22
22
|
fi;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was autogenerated by uv via the following command:
|
|
2
|
+
# uv pip compile --generate-hashes --output-file=uv-requirements.txt --strip-extras uv-requirements.in
|
|
3
|
+
uv==0.9.24 \
|
|
4
|
+
--hash=sha256:009cc82cdfc48add6ec13a0c4ffbb788ae2cab53573b4218069ca626721a404b \
|
|
5
|
+
--hash=sha256:15d3955bfb03a7b78aaf5afb639cedefdf0fc35ff844c92e3fe6e8700b94b84f \
|
|
6
|
+
--hash=sha256:1914d33e526167dc202ec4a59119c68467b31f7c71dcf8b1077571d091ca3e7c \
|
|
7
|
+
--hash=sha256:207c8a2d4c4d55589feb63b4be74f6ff6ab92fa81b14a6515007ccec5a868ae0 \
|
|
8
|
+
--hash=sha256:38c59e18fe5fa42f7baeb4f08c94914cee6d87ff8faa6fc95c994dbc0de26c90 \
|
|
9
|
+
--hash=sha256:3b610d89d6025000d08cd9bd458c6e264003a0ecfdaa8e4eba28938130cd1837 \
|
|
10
|
+
--hash=sha256:44c0b8a78724e4cfa8e9c0266023c70fc792d0b39a5da17f5f847af2b530796b \
|
|
11
|
+
--hash=sha256:488a07e59fb417bf86de5630197223b7a0223229e626afc124c26827db78cff8 \
|
|
12
|
+
--hash=sha256:63a0a46693098cf8446e41bd5d9ce7d3bc9b775a63fe0c8405ab6ee328424d46 \
|
|
13
|
+
--hash=sha256:6720c9939cca7daff3cccc35dd896bbe139d7d463c62cba8dbbc474ff8eb93d1 \
|
|
14
|
+
--hash=sha256:68a3186074c03876ee06b68730d5ff69a430296760d917ebbbb8e3fb54fb4091 \
|
|
15
|
+
--hash=sha256:69531d9a8772afb2dff68fef2469f666e4f8a0132b2109e36541c423415835da \
|
|
16
|
+
--hash=sha256:75a000f529ec92235b10fb5e16ca41f23f46c643308fd6c5b0d7b73ca056c5b9 \
|
|
17
|
+
--hash=sha256:841ede01d6dcf1676a21dce05f3647ba171c1d92768a03e8b8b6b7354b34a6d2 \
|
|
18
|
+
--hash=sha256:8cd626306b415491f839b1a9100da6795c82c44d4cf278dd7ace7a774af89df4 \
|
|
19
|
+
--hash=sha256:8d3c0fec7aa17f936a5b258816e856647b21f978a81bcfb2dc8caf2892a4965e \
|
|
20
|
+
--hash=sha256:aafe7dd9b633672054cf27f1a8e4127506324631f1af5edd051728f4f8085351 \
|
|
21
|
+
--hash=sha256:d59d31c25fc530c68db9164174efac511a25fc882cec49cd48f75a18e7ebd6d5 \
|
|
22
|
+
--hash=sha256:d7d1333d9c21088c89cb284ef29fdf48dc2015fe993174a823a3e7c991db90f9
|
|
23
|
+
# via -r uv-requirements.in (contents of `uv==0.9.24`)
|
|
@@ -46,7 +46,7 @@ wheels = [
|
|
|
46
46
|
|
|
47
47
|
[[package]]
|
|
48
48
|
name = "awslabs-prometheus-mcp-server"
|
|
49
|
-
version = "0.2.
|
|
49
|
+
version = "0.2.11"
|
|
50
50
|
source = { editable = "." }
|
|
51
51
|
dependencies = [
|
|
52
52
|
{ name = "boto3" },
|
|
@@ -491,11 +491,11 @@ wheels = [
|
|
|
491
491
|
|
|
492
492
|
[[package]]
|
|
493
493
|
name = "filelock"
|
|
494
|
-
version = "3.20.
|
|
494
|
+
version = "3.20.3"
|
|
495
495
|
source = { registry = "https://pypi.org/simple" }
|
|
496
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
496
|
+
sdist = { url = "https://files.pythonhosted.org/packages/1d/65/ce7f1b70157833bf3cb851b556a37d4547ceafc158aa9b34b36782f23696/filelock-3.20.3.tar.gz", hash = "sha256:18c57ee915c7ec61cff0ecf7f0f869936c7c30191bb0cf406f1341778d0834e1", size = 19485, upload-time = "2026-01-09T17:55:05.421Z" }
|
|
497
497
|
wheels = [
|
|
498
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
498
|
+
{ url = "https://files.pythonhosted.org/packages/b5/36/7fb70f04bf00bc646cd5bb45aa9eddb15e19437a28b8fb2b4a5249fac770/filelock-3.20.3-py3-none-any.whl", hash = "sha256:4b0dda527ee31078689fc205ec4f1c1bf7d56cf88b6dc9426c4f230e46c2dce1", size = 16701, upload-time = "2026-01-09T17:55:04.334Z" },
|
|
499
499
|
]
|
|
500
500
|
|
|
501
501
|
[[package]]
|
|
@@ -1483,11 +1483,11 @@ wheels = [
|
|
|
1483
1483
|
|
|
1484
1484
|
[[package]]
|
|
1485
1485
|
name = "urllib3"
|
|
1486
|
-
version = "2.6.
|
|
1486
|
+
version = "2.6.3"
|
|
1487
1487
|
source = { registry = "https://pypi.org/simple" }
|
|
1488
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1488
|
+
sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" }
|
|
1489
1489
|
wheels = [
|
|
1490
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1490
|
+
{ url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" },
|
|
1491
1491
|
]
|
|
1492
1492
|
|
|
1493
1493
|
[[package]]
|
|
@@ -1506,16 +1506,17 @@ wheels = [
|
|
|
1506
1506
|
|
|
1507
1507
|
[[package]]
|
|
1508
1508
|
name = "virtualenv"
|
|
1509
|
-
version = "20.
|
|
1509
|
+
version = "20.36.1"
|
|
1510
1510
|
source = { registry = "https://pypi.org/simple" }
|
|
1511
1511
|
dependencies = [
|
|
1512
1512
|
{ name = "distlib" },
|
|
1513
1513
|
{ name = "filelock" },
|
|
1514
1514
|
{ name = "platformdirs" },
|
|
1515
|
+
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
|
|
1515
1516
|
]
|
|
1516
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1517
|
+
sdist = { url = "https://files.pythonhosted.org/packages/aa/a3/4d310fa5f00863544e1d0f4de93bddec248499ccf97d4791bc3122c9d4f3/virtualenv-20.36.1.tar.gz", hash = "sha256:8befb5c81842c641f8ee658481e42641c68b5eab3521d8e092d18320902466ba", size = 6032239, upload-time = "2026-01-09T18:21:01.296Z" }
|
|
1517
1518
|
wheels = [
|
|
1518
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1519
|
+
{ url = "https://files.pythonhosted.org/packages/6a/2a/dc2228b2888f51192c7dc766106cd475f1b768c10caaf9727659726f7391/virtualenv-20.36.1-py3-none-any.whl", hash = "sha256:575a8d6b124ef88f6f51d56d656132389f961062a9177016a50e4f507bbcc19f", size = 6008258, upload-time = "2026-01-09T18:20:59.425Z" },
|
|
1519
1520
|
]
|
|
1520
1521
|
|
|
1521
1522
|
[[package]]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# This file is autogenerated by pip-compile with Python 3.12
|
|
3
|
-
# by the following command:
|
|
4
|
-
#
|
|
5
|
-
# pip-compile --generate-hashes --output-file=uv-requirements.txt --strip-extras uv-requirements.in
|
|
6
|
-
#
|
|
7
|
-
uv==0.9.6 \
|
|
8
|
-
--hash=sha256:0169a85d3ba5ef1c37089d64ff26de573439ca84ecf549276a2eee42d7f833f2 \
|
|
9
|
-
--hash=sha256:0fde18c22376c8b02954c7db3847bc75ac42619932c44b43f49d056e5cfb05f9 \
|
|
10
|
-
--hash=sha256:166175ba952d2ad727e1dbd57d7cfc1782dfe7b8d79972174a46a7aa33ddceec \
|
|
11
|
-
--hash=sha256:3c2c2b2b093330e603d838fec26941ab6f62e8d62a012f9fa0d5ed88da39d907 \
|
|
12
|
-
--hash=sha256:538716ec97f8d899baa7e1c427f4411525459c0ef72ea9b3625ce9610c9976e6 \
|
|
13
|
-
--hash=sha256:547fd27ab5da7cd1a833288a36858852451d416a056825f162ecf2af5be6f8b8 \
|
|
14
|
-
--hash=sha256:62e3f057a9ae5e5003a7cd56b617e940f519f6dabcbb22d36cdd0149df25d409 \
|
|
15
|
-
--hash=sha256:6403176b55388cf94fb8737e73b26ee2a7b1805a9139da5afa951210986d4fcd \
|
|
16
|
-
--hash=sha256:7e89c964f614fa3f0481060cac709d6da50feac553e1e11227d6c4c81c87af7c \
|
|
17
|
-
--hash=sha256:86e05782f9b75d39ab1c0af98bf11e87e646a36a61d425021d5b284073e56315 \
|
|
18
|
-
--hash=sha256:90122a76e6441b8c580fc9faf06bd8c4dbe276cb1c185ad91eceb2afa78e492a \
|
|
19
|
-
--hash=sha256:95a62c1f668272555ad0c446bf44a9924dee06054b831d04c162e0bad736dc28 \
|
|
20
|
-
--hash=sha256:a7c6067919d87208c4a6092033c3bc9799cb8be1c8bc6ef419a1f6d42a755329 \
|
|
21
|
-
--hash=sha256:b2f934737c93f88c906b6a47bcc083170210fe5d66565e80a7c139599e5cbf2f \
|
|
22
|
-
--hash=sha256:b31377ebf2d0499afc5abe3fe1abded5ca843f3a1161b432fe26eb0ce15bab8e \
|
|
23
|
-
--hash=sha256:d1072db92cc9525febdf9d113c23916dfc20ca03e21218cc7beefe7185a90631 \
|
|
24
|
-
--hash=sha256:e700b2098f9d365061c572d0729b4e8bc71c6468d83dfaae2537cd66e3cb1b98 \
|
|
25
|
-
--hash=sha256:ea67369918af24ea7e01991dfc8b8988d1b0b7c49cb39d9e5bc0c409930a0a3f \
|
|
26
|
-
--hash=sha256:f0ba311b3ca49d246f36d444d3ee81571619ef95e5f509eb694a81defcbed262
|
|
27
|
-
# via -r uv-requirements.in (contents of `uv==0.9.6`)
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/.python-version
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/awslabs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_consts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_init.py
RENAMED
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_main.py
RENAMED
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{awslabs_prometheus_mcp_server-0.2.9 → awslabs_prometheus_mcp_server-0.2.11}/tests/test_tools.py
RENAMED
|
File without changes
|
|
File without changes
|