Skip to content

Commit 99e29a6

Browse files
authored
Merge pull request pab1it0#28 from pab1it0/update-readme-docker-only-v1.1.1
Update README to use Docker-only configuration and bump version to 1.1.1
2 parents 6a28488 + 120dbfe commit 99e29a6

File tree

3 files changed

+6
-97
lines changed

3 files changed

+6
-97
lines changed

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ CMD ["/app/.venv/bin/prometheus-mcp-server"]
4646
# GitHub Container Registry Metadata
4747
LABEL org.opencontainers.image.title="Prometheus MCP Server" \
4848
org.opencontainers.image.description="Model Context Protocol server for Prometheus integration" \
49-
org.opencontainers.image.version="1.1.0" \
49+
org.opencontainers.image.version="1.1.1" \
5050
org.opencontainers.image.authors="Pavel Shklovsky" \
5151
org.opencontainers.image.source="https://github.com/pab1it0/prometheus-mcp-server" \
5252
org.opencontainers.image.licenses="MIT" \

‎README.md‎

Lines changed: 4 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -54,118 +54,27 @@ ORG_ID=your_organization_id
5454

5555
3. Add the server configuration to your client configuration file. For example, for Claude Desktop:
5656

57-
```json
58-
{
59-
"mcpServers": {
60-
"prometheus": {
61-
"command": "uv",
62-
"args": [
63-
"--directory",
64-
"<full path to prometheus-mcp-server directory>",
65-
"run",
66-
"src/prometheus_mcp_server/main.py"
67-
],
68-
"env": {
69-
"PROMETHEUS_URL": "http://your-prometheus-server:9090",
70-
"PROMETHEUS_USERNAME": "your_username",
71-
"PROMETHEUS_PASSWORD": "your_password"
72-
}
73-
}
74-
}
75-
}
76-
```
77-
78-
> Note: if you see `Error: spawn uv ENOENT` in Claude Desktop, you may need to specify the full path to `uv` or set the environment variable `NO_UV=1` in the configuration.
79-
80-
## Docker Usage
81-
82-
This project includes Docker support for easy deployment and isolation.
83-
84-
### Pre-built Docker Image
85-
86-
The easiest way to use this project is with the pre-built image from GitHub Container Registry:
87-
88-
```bash
89-
docker pull ghcr.io/pab1it0/prometheus-mcp-server:latest
90-
```
91-
92-
You can also use specific versions with tags:
93-
94-
```bash
95-
docker pull ghcr.io/pab1it0/prometheus-mcp-server:1.0.0
96-
```
97-
98-
### Building the Docker Image Locally
99-
100-
If you prefer to build the image yourself:
101-
102-
```bash
103-
docker build -t prometheus-mcp-server .
104-
```
105-
106-
### Running with Docker
107-
108-
You can run the server using Docker in several ways:
109-
110-
#### Using docker run with the pre-built image:
111-
112-
```bash
113-
docker run -it --rm \
114-
-e PROMETHEUS_URL=http://your-prometheus-server:9090 \
115-
-e PROMETHEUS_USERNAME=your_username \
116-
-e PROMETHEUS_PASSWORD=your_password \
117-
ghcr.io/pab1it0/prometheus-mcp-server:latest
118-
```
119-
120-
#### Using docker run with a locally built image:
121-
122-
```bash
123-
docker run -it --rm \
124-
-e PROMETHEUS_URL=http://your-prometheus-server:9090 \
125-
-e PROMETHEUS_USERNAME=your_username \
126-
-e PROMETHEUS_PASSWORD=your_password \
127-
prometheus-mcp-server
128-
```
129-
130-
#### Using docker-compose:
131-
132-
Create a `.env` file with your Prometheus credentials and then run:
133-
134-
```bash
135-
docker-compose up
136-
```
137-
138-
### Running with Docker in Claude Desktop
139-
140-
To use the containerized server with Claude Desktop, update the configuration to use Docker with the environment variables:
141-
14257
```json
14358
{
14459
"mcpServers": {
14560
"prometheus": {
14661
"command": "docker",
14762
"args": [
14863
"run",
149-
"--rm",
15064
"-i",
151-
"-e", "PROMETHEUS_URL",
152-
"-e", "PROMETHEUS_USERNAME",
153-
"-e", "PROMETHEUS_PASSWORD",
65+
"--rm",
66+
"-e",
67+
"PROMETHEUS_URL",
15468
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
15569
],
15670
"env": {
157-
"PROMETHEUS_URL": "http://your-prometheus-server:9090",
158-
"PROMETHEUS_USERNAME": "your_username",
159-
"PROMETHEUS_PASSWORD": "your_password"
71+
"PROMETHEUS_URL": "<url>"
16072
}
16173
}
16274
}
16375
}
16476
```
16577

166-
This configuration passes the environment variables from Claude Desktop to the Docker container by using the `-e` flag with just the variable name, and providing the actual values in the `env` object.
167-
168-
> **Note about Docker implementation**: The Docker setup has been updated to match the structure of the chess-mcp project, which has been proven to work correctly with Claude. The new implementation uses a multi-stage build process and runs the entry point script directly without an intermediary shell script. This approach ensures proper handling of stdin/stdout for MCP communication.
16978

17079
## Development
17180

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "prometheus_mcp_server"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "MCP server for Prometheus integration"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)