Skip to content

Add Alertmanager silence tools (list, create, expire) #120

Closed

Description

@TMHSDigital

Summary

The alerting-rules skill triggers when a "User wants to silence or inhibit specific alerts", but the server only has the read-only homelab_alertList. There is no way to see, create or expire Alertmanager silences, so the agent can only send the user to the web UI.

Where

  • skills/alerting-rules/SKILL.md:23
  • mcp-server/src/tools/alertList.ts:37

Proposal

  • homelab_alertSilences: list silences (GET /api/v2/silences), optionally filtered by state.
  • homelab_alertSilence: create a silence (matchers, duration, comment, createdBy) or expire one by id (DELETE /api/v2/silence/{id}), gated by confirm: true.
  • Validate matcher names and values, and send the JSON body safely quoted (as adguardFilterToggle does).
  • Update the alerting-rules skill, and let the pre-reboot-checklist prompt suggest a maintenance silence.

Who benefits

Anyone doing planned maintenance (reboots, compose updates) who does not want to be paged for the expected downtime.

Acceptance criteria

  • Both tools registered, documented and covered by input-validation and confirm-gate tests.

Getting started

  • Relevant files: mcp-server/src/tools/alertList.ts, mcp-server/src/utils/service-http.ts, mcp-server/src/tools/adguardFilterToggle.ts (pattern for a gated POST)

Filed by repo-audit/full-audit at a59395f. Severity: medium. Effort: M. audit-key: enhancement|mcp-server/src/tools|alertSilence

Activity

  1. added
    enhancement
    help wanted
    severity: medium
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 18, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 36e06ff. Added homelab_alertSilences (list silences, optional state filter, compact one line per silence) and homelab_alertSilence (action: create with validated matchers, duration up to 30d and a required comment, JSON body shell-quoted; action: expire by UUID; gated by confirm: true with a preview otherwise). Registered and documented (README, CLAUDE.md incl. gated list, mcp-server README, mcp-tools.json, counts 51 -> 53, repo description); the alerting-rules skill has a maintenance-silence example and the pre-reboot-checklist prompt suggests a silence. Covered by input-validation, confirm-gate, registration and handler tests (414 passing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedmcp-serverseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions