Local notifications

Alpacon CLI 1.20.0 and later and Alpacon MCP 1.24.0 and later alert you on the machine running the CLI or the local stdio MCP server. Workspace notifications have their own events and delivery channels.

When you get a notification

  • Alpacon refuses a command or file transfer at an access or execution control gate. The CLI uses Alpacon: command denied for both. Local MCP identifies a refused file transfer as Alpacon: file transfer denied.
  • An operation reports that a Work Session is paused after a critical denial. The session owner or an approver can resume or end it.
  • A command or Work Session is waiting for approval. This includes sudo approval for a command, even if the command itself has already completed in the CLI. The CLI also alerts you when a Work Session extension needs approval or a held command needs your own confirmation. Local MCP also alerts you when a sudo policy request is waiting for approval.

Checking an individual command can also surface its denial or approval wait. Listing approval requests or asking MCP to explain an approval decision does not send a local notification.

An approval expiring or being canceled does not trigger a notification. The CLI also skips the denial notification when a held command’s approval rule changes and closes the request.

There is no Alpacon setting for turning off these alerts. An agent running the client could change any flag, environment variable, or configuration setting the client reads, so the client raises the alert directly.

Where you see it

The CLI shows a banner and can send an OS desktop notification. In text mode, the banner goes to the controlling terminal when stderr is attached to a terminal. If stderr is redirected, there is no terminal, or the CLI cannot write to the controlling terminal, the banner goes to stderr. With --output json, the banner goes only to the controlling terminal. If the CLI cannot write there, such as in a background job on Unix, it drops the banner. JSON output stays intact.

The local stdio MCP server sends only an OS desktop notification. Remote MCP sends no local notification. The MCP tool result stays the same even if delivery fails.

Desktop delivery is best effort on macOS, Linux, and Windows. Both clients can attempt delivery over SSH or in CI, where a usable desktop may be unavailable. They skip desktop delivery in Windows service sessions and on unsupported operating systems. On Linux, desktop delivery requires notify-send. Delivery failures are silent during normal use. The CLI still shows its banner wherever it can and returns its usual command output and exit status.

How repeat notifications are grouped

The clients normally allow one desktop notification every 60 seconds for each workspace, Work Session, and kind (denial, pause, or pending approval). They group events without a Work Session by workspace and kind. If a later event triggers another notification for the group, it includes +N more for events held back during the previous window.

The CLI tracks the limit by workspace host across invocations. If it cannot access its local notification state, it can attempt delivery again within the window. The limit never suppresses a CLI banner. Local MCP tracks the limit within each running stdio server by workspace and region. It can also suppress repeat reports of the same pending request or denial for up to 10 minutes when it knows the item’s ID.

What the notification shows

A notification names the event and includes the details available for that event. A command notice can show the program’s base name, server, target account, and Work Session ID. A refusal can also name the gate. A pause or Work Session approval notice identifies the session when its ID is available. The full command line and its arguments are omitted because notifications can appear on lock screens and in notification history.

A console link must come from Alpacon and be a valid HTTP or HTTPS URL with the same scheme, host, and port as your workspace URL. For Alpacon Cloud, the clients also accept links to alpacon.io or its subdomains when the scheme matches and the link uses the default port. The displayed text can omit a link that will not fit. On Windows, an accepted link can open the console when you click the desktop notification.

Last updated: