Skip to content

Commit 625bde5

Browse files
authored
Merge pull request #1 from smithery-ai/smithery/config-a7id
Deployment: Dockerfile and Smithery config
2 parents e02a64c + 6f865f0 commit 625bde5

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
12
FROM python:3.12-slim-bookworm AS builder
23
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
34
WORKDIR /app

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ Prometheus Alertmanager MCP is a [Model Context Protocol](https://modelcontextpr
4242
- Docker (optional, for containerized deployment).
4343
- Ensure your Prometheus Alertmanager server is accessible from the environment where you'll run this MCP server.
4444

45+
### Installing via Smithery
46+
47+
To install Prometheus Alertmanager MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@ntk148v/alertmanager-mcp-server):
48+
49+
```bash
50+
npx -y @smithery/cli install @ntk148v/alertmanager-mcp-server --client claude
51+
```
52+
4553
### 3.2. Local Run
4654

4755
- Clone the repository:

smithery.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Smithery configuration file: https://smithery.ai/docs/build/project-config
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- alertmanagerUrl
10+
properties:
11+
alertmanagerUrl:
12+
type: string
13+
description: URL of the Prometheus Alertmanager server
14+
alertmanagerUsername:
15+
type: string
16+
description: Basic auth username (optional)
17+
alertmanagerPassword:
18+
type: string
19+
description: Basic auth password (optional)
20+
commandFunction:
21+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
22+
|-
23+
(config) => ({ command: 'alertmanager-mcp-server', env: { ALERTMANAGER_URL: config.alertmanagerUrl, ALERTMANAGER_USERNAME: config.alertmanagerUsername || '', ALERTMANAGER_PASSWORD: config.alertmanagerPassword || '' } })
24+
exampleConfig:
25+
alertmanagerUrl: http://your-alertmanager:9093
26+
alertmanagerUsername: your_username
27+
alertmanagerPassword: your_password

0 commit comments

Comments
 (0)