mcpField
P
pushnote

pushnote

Local
github.com/CloudCorpRecordsCommunication0Updated 1w ago

About pushnote

pushnote is a CLI and stdio MCP server for interacting with a Gotify server. Its single router tool covers notifications, message reads, health and version checks, and application and client management, with confirmation required for deletions.

Key features

  1. 01Send push notifications
  2. 02Read messages and server details
  3. 03Manage Gotify applications and clients
  4. 04Route actions through one tool
  5. 05Require confirmation for deletions

Use cases

  1. 01Send a notification through Gotify
  2. 02Check Gotify health or read messages
  3. 03Manage applications and clients
  4. 04Prevent unconfirmed deletion requests

MCP support

Exposes one `gotify` MCP tool that routes actions for notifications, message reads, server checks, and management. It connects to the configured Gotify server using environment-provided tokens; delete actions require confirmation.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cloudcorprecords-pushnote": {
"command": "npx",
"args": [
"-y",
"@reneturcios/pushnote"
]
}
}
}
Run commandnpx -y @reneturcios/pushnote

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@reneturcios/pushnote0.1.0
ocighcr.io/cloudcorprecords/pushnote:0.1.0

Tools

1

Saved tool list · updated 1w ago

ParameterTypeRequiredDescription
idintegerNoMessage id, for the delete_message action.
namestringNoApplication or client name, for the create and update actions.
limitintegerNoMaximum number of messages to return, for the messages action.
sinceintegerNoOnly return messages with an id greater than this value, for the messages action.
titlestringNoMessage title, for the send action.
actionenumYesAction to run: health, version, me, messages, applications, clients, status, send, create_application, update_application, create_client, or delete_message.health | version | me | messages | applications | clients | status | send | create_application | update_application | create_client | delete_message | delete_all_messages | delete_application | delete_client | help
app_idintegerNoApplication id, for the update_application action.
extrasobjectNoExtras object attached to the message, for the send action.
confirmbooleanNoMust be true to confirm a destructive action such as delete_message.
messagestringNoMessage text, for the send action.
priorityintegerNoMessage priority as an integer, for the send action.
client_idintegerNoClient id.
descriptionstringNoApplication description, for the create_application and update_application actions.
default_priorityintegerNoDefault message priority for the application.

Details

From the project README

pushnote

pushnote talks to a Gotify server: it sends push notifications, reads back messages, server health and version, and manages the Gotify applications and clients that notifications flow through. Everything is exposed as one action-router tool, gotify, over a command-line interface and a stdio MCP server, both served by the same binary.

Three environment variables configure it. GOTIFY_URL is the base URL of your Gotify server and is required — without it, every action except the local help fails before any request is made. GOTIFY_CLIENT_TOKEN is a Gotify client token used for reads and management (current user, messages, applications, clients). GOTIFY_APP_TOKEN is a Gotify application token used only by the send action. Tokens come from the environment only; they are never tool arguments.

Install

npx @reneturcios/pushnote health

Or run the container image:

docker run -i ghcr.io/cloudcorprecords/pushnote

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

Each command mirrors one router action. Multi-word commands accept both the hyphenated form shown here and the underscore action name (for example create-application or create_application).

export GOTIFY_URL=https://gotify.example.com
export GOTIFY_CLIENT_TOKEN=<client token>
export GOTIFY_APP_TOKEN=<app token>

pushnote health
pushnote version
pushnote me
pushnote messages --limit 25 --since 40
pushnote messages --app-id 7
pushnote applications
pushnote clients
pushnote status
pushnote send "deploy finished" --title CI --priority 5
pushnote create-application alerts --description "Alert channel" --default-priority 4
pushnote update-application 3 --name renamed
pushnote create-client phone
pushnote delete-message 9 --confirm
pushnote delete-all-messages --confirm
pushnote delete-application 4 --confirm
pushnote delete-client 5 --confirm
pushnote help

pushnote --version

Successful commands print the upstream JSON payload (status and help print local output instead). Exit codes: 0 on success, 1 when a call fails (including an upstream API error or a refused destructive action), 2 for usage errors.

Destructive commands — the four delete-* commands — do nothing unless --confirm is passed. Without it they fail before any request reaches the Gotify server.

MCP server

The mcp subcommand starts a stdio MCP server:

npx -y @reneturcios/pushnote mcp

MCP client configuration:

{
  "mcpServers": {
    "pushnote": {
      "command": "npx",
      "args": ["-y", "@reneturcios/pushnote", "mcp"],
      "env": {
        "GOTIFY_URL": "https://gotify.example.com",
        "GOTIFY_CLIENT_TOKEN": "<client token>",
        "GOTIFY_APP_TOKEN": "<app token>"
      }
    }
  }
}
Tool

One tool, gotify, takes a required action argument plus the parameters that action needs as optional top-level arguments:

ActionRequiredOptionalToken
health——none
version——none
me——client
messages—app_id, limit, sinceclient
applications——client
clients——client
status——none (local)
sendmessagetitle, priority, extrasapp
create_applicationnamedescription, default_priorityclient
update_applicationapp_idname, description, default_priorityclient
create_clientname—client
delete_messageid, confirm—client
delete_all_messagesconfirm—client
delete_applicationapp_id, confirm—client
delete_clientclient_id, confirm—client
help——none (local)

All four delete actions refuse to run unless confirm is true, and that check happens before any request. status returns a local snapshot (Gotify URL, which tokens are configured, action count) and never includes a token value. help returns the action documentation locally.

Development

npm install
npm run build   # tsc -> dist/
npm test        # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.