Repository avatar
Other Tools
v1.29.1
active

pushward-mcp

io.github.mac-lucky/pushward-mcp

Send push notifications, Live Activities, widgets and questions with buttons to your phone

Documentation

pushward-mcp

An MCP server that lets a coding agent drive PushWard directly: start and update Live Activities, send push notifications, manage widgets, and replay external-service webhooks, all without a device or a pile of hand-written curl. It is the fastest way to exercise the push API while you build an integration.

The tools wrap two HTTP surfaces:

  • api.pushward.app for activities, notifications, and widgets (the REST API).
  • relay.pushward.app for simulating webhooks from services like Grafana, Sonarr, Proxmox, and a dozen others (relay_<provider> tools), or any other JSON payload posted to the relay root URL (relay_universal).

On top of those there are a few composite test_ tools for common flows (a full activity lifecycle, a notification round-trip, a health check) and get_pushward_docs / get_pushward_best_practices, which load the API reference and integration notes into the agent's context.

Tools

AreaTools
Live Activitiescreate_activity, update_activity, end_activity, get_activity, list_activities, delete_activity, bulk_end_activities
Notificationscreate_notification, create_scheduled_notification (one-off send_at up to 365 days ahead, or a cron recurrence), list_scheduled_notifications, get_scheduled_notification, cancel_scheduled_notification (purge deletes instead of leaving a 24-hour canceled record), retract_notifications (removes what was sent under a collapse_id from the devices)
Answersget_notification_answer (can hold the request until the answer arrives), wait_for_answer (longer waits, for a notification or an approval Live Activity, or for the next tick on a checklist Live Activity; pass the ids you last saw checked as seen_checked so a tick between two calls isn't missed), list_notification_answers (every answer after a cursor, for one loop that handles many questions)
Acknowledged alertsget_notification_receipt, wait_for_ack, cancel_notification_receipt, cancel_notification_receipts_by_tag, for notifications sent with acknowledge, which repeat until someone taps an action or they expire
Widgetscreate_widget, update_widget, get_widget, list_widgets, delete_widget
Mutescreate_mute, list_mutes, delete_mute: pause PushWard or silence one source or activity on every device of the account, for a while, until removed, or in a daily window. * mutes everything except critical alerts. They need the key's account permission (read to list, manage to change), which no key has until the user grants it in the app
Account and healthget_me, get_health, get_ready
Integration keyscreate_integration_key, list_integration_keys, update_integration_key, roll_integration_key, revoke_integration_key. These only work with the account's default key: it can create keys up to its own permission levels (with optional activity and widget slug limits and an expiry) and manage the others, but not a default key. Keys it creates keep working after the default key is revoked or rolled, and after the MCP client is disconnected, so an agent connected with the default key can hand out credentials that outlive its session
Emailsend_email, test_email
Composite teststest_activity_lifecycle, test_notification, test_health, test_relay_provider
Docsget_pushward_docs, get_pushward_best_practices
Relay (stdio only)relay_<provider> for ArgoCD, Backrest, Bazarr, Changedetection.io, Forgejo, Gatus, Gitea, Grafana, Jellyfin, Komodo, Overseerr, Paperless-ngx, Prowlarr, Proxmox VE, Radarr, Sonarr, Unmanic and Uptime Kuma; relay_universal POSTs any other JSON to the relay root URL, which hands a payload it recognises to that provider's route and maps the rest through the universal presets or into one plain notification (source, channels, priority and level go on the query string)

With a key from a PushWard organization (a team account), create_notification, create_scheduled_notification, create_activity, update_activity, create_widget and update_widget also take target: group names, device tag names or member user ids that narrow who receives it. update_activity and update_widget take clear_target to drop it again. Organization widgets reach members' home screens (and Apple Watch from PushWard 1.18.0), and all of an organization's widgets share one push window of at least 60 seconds, so push_throttle does nothing there.

send_email with an organization key goes only to the organization's own verified recipients. There is no tool for adding them: an organization key with email permission registers them with POST /emails/recipients, as described at pushward.app/docs/teams.

Using the hosted server

The easiest path is the hosted remote endpoint. Point an OAuth-capable MCP client at:

https://mcp.pushward.app/mcp

You authenticate on first connect: the consent screen asks for your PushWard integration key (hlk_...) once, stores it encrypted server-side, and the MCP client only ever holds a short-lived token. The key never reaches the client. It is stored per connection: a second client connected with another key (say a restricted one for a less trusted agent) gets its own, and the first keeps the key it was authorized with. Reconnect a client to change its key. The hosted endpoint exposes the API tools only, not the relay tools (a multi-tenant endpoint can't share one relay credential).

Every release is published to the MCP Registry as io.github.mac-lucky/pushward-mcp, so a client that browses the registry finds it under that name. Otherwise add it by hand:

Claude Code

claude mcp add --scope user --transport http pushward https://mcp.pushward.app/mcp

Run /mcp, pick pushward and sign in. The plugin registers the same server and adds the skill.

Codex

codex mcp add pushward --url https://mcp.pushward.app/mcp

If that doesn't open a browser to sign in, run codex mcp login pushward. Codex stops waiting on a tool after 60 seconds unless told otherwise, and wait_for_answer holds for 120 by default (up to 600). The command above wrote a [mcp_servers.pushward] table to ~/.codex/config.toml; add one line to that table, not a second copy of it:

tool_timeout_sec = 620

Cursor

Add to Cursor, or put it in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "pushward": {
      "url": "https://mcp.pushward.app/mcp"
    }
  }
}

VS Code

Install in VS Code, or add it to ~/.copilot/mcp-config.json (every workspace) or a workspace's .mcp.json:

{
  "mcpServers": {
    "pushward": {
      "type": "http",
      "url": "https://mcp.pushward.app/mcp",
      "tools": ["*"]
    }
  }
}

Claude.ai and Claude Desktop

Customize > Connectors > Add > Add custom connector, name it PushWard, paste https://mcp.pushward.app/mcp and keep the sign-in settings Claude detects. The connector belongs to your Claude account, so Claude Desktop and the mobile apps get it too. On a Team or Enterprise plan an owner adds it once under Organization settings > Connectors, and each member then connects it with their own key.

Claude Code plugin

/plugin marketplace add mac-lucky/pushward-mcp
/plugin install pushward@pushward

The plugin registers the hosted server above and adds the pushward-mcp skill. Then run /mcp, pick the pushward server and sign in once with your key. Third-party marketplaces don't auto-update by default, so pick up later skill changes with /plugin marketplace update pushward.

Agent skill

For other agents, or a server you added yourself:

npx skills add mac-lucky/pushward-mcp --skill pushward-mcp

Tools tell an agent what it can call; the skill tells it when. With it installed, "ping me when the migration finishes" becomes one notification at the end instead of one per step, an approval waits on wait_for_answer instead of a sleep loop, and every Live Activity it starts gets ended, including on failure. It also keeps the agent away from the integration key tools unless you ask, since keys it creates outlive the session.

Running it locally (stdio)

For local development the server talks to a single client over stdio with one identity from the environment. Relay tools are on by default in stdio mode, so it wants a relay token next to the API token; one key can fill both. Set PUSHWARD_MCP_RELAY_ENABLED=false to drop the relay tools and the second token.

go build -o pushward-mcp .
PUSHWARD_API_TOKEN=hlk_your_key PUSHWARD_RELAY_TOKEN=hlk_your_key ./pushward-mcp

Then register it in your client's MCP config:

{
  "mcpServers": {
    "pushward": {
      "command": "/path/to/pushward-mcp",
      "env": {
        "PUSHWARD_API_TOKEN": "hlk_your_key",
        "PUSHWARD_RELAY_TOKEN": "hlk_your_key"
      }
    }
  }
}

The published image starts in stdio mode too, with the same two tokens; it is the package the registry entry lists:

docker run -i --rm -e PUSHWARD_API_TOKEN -e PUSHWARD_RELAY_TOKEN ghcr.io/mac-lucky/pushward-mcp:latest

Environment variables (stdio mode):

  • PUSHWARD_API_TOKEN - required, your hlk_ integration key.
  • PUSHWARD_RELAY_TOKEN - required only when relay tools are enabled (they are, by default, in stdio mode).
  • PUSHWARD_API_URL / PUSHWARD_RELAY_URL - default to the production hosts; override to point at a staging server. Hosts must be https, except loopback and Kubernetes Service names (<service>.<namespace>.svc, optionally with .cluster.local).
  • PUSHWARD_E2E_KEY - optional, the 64-hex-character key from Settings > End-to-End Encryption in the app (1.17.0 or later, which is also what decrypts on the devices). With it set, the notification tools encrypt title, subtitle, body and url before they leave the process, so the PushWard server only ever sees ciphertext; your devices decrypt them. Everything else (level, sound, actions, metadata) still goes in the clear, and so do Live Activities, widgets, emails and the relay_* tools: only create_notification and create_scheduled_notification are encrypted. With an organization key, set it to the organization's key, which an admin creates and members add in PushWard 1.18 or later under Organization Keys. A 422 notification.encryption_unavailable means PushWard has not enabled encryption for organizations, so leave it unset there for now. Also read in single-user http mode below; the hosted OAuth server ignores it.

The http transport (OAuth, multi-tenant) is what backs the hosted endpoint above; it needs a signing key and a few more variables and is meant to run behind a proxy. See internal/config and internal/oauth if you want to host your own.

Single-user http (for a headless agent)

An agent that runs as a service can't click through an OAuth consent screen. For that case the http transport can skip caller auth and act as one key:

PUSHWARD_MCP_TRANSPORT=http \
PUSHWARD_MCP_HTTP_AUTH=none \
PUSHWARD_API_TOKEN=hlk_your_key \
./pushward-mcp

It serves /mcp, /health and /ready on 127.0.0.1:8080. Every request acts as PUSHWARD_API_TOKEN, and any Authorization header the caller sends is ignored. Nothing checks who is calling, so only the agent should be able to reach the port. To serve it to a container or pod, set PUSHWARD_MCP_LISTEN_ADDR=:8080 and put a network policy in front, never the open internet. Requests with an Origin header get a 403, so a web page in your browser can't use the key. Relay tools stay off unless PUSHWARD_MCP_RELAY_ENABLED=true, which also needs PUSHWARD_RELAY_TOKEN.

Give the agent a dedicated integration key with only what it needs, for example notifications on and activity slugs limited to a prefix like agent-*. That also keeps it away from the integration key tools, which need the default key.

Generated code

internal/tools/api_gen.go and internal/tools/relay_gen.go are generated from the OpenAPI specs by cmd/generate, so don't edit them by hand. Regenerate from the committed specs without hitting the network:

PUSHWARD_USE_LOCAL_SPEC=1 go run ./cmd/generate

Drop PUSHWARD_USE_LOCAL_SPEC to refresh the specs and embedded docs from the live API first.

License

MIT, see LICENSE.

OCI
ghcr.io/mac-lucky/pushward-mcp:1.29.1
Install Command
docker pull ghcr.io/mac-lucky/pushward-mcp:1.29.1:undefined

Remote