Skip to main content
Glama
@trigv/mcp
by Trigv

@trigv/mcp

Docs | API reference | Free tools | Get an API key

MCP (Model Context Protocol) server for Trigv. Lets AI clients in Cursor, Claude Code, and VS Code send notification events to your Trigv workspace.

What Trigv is

Trigv delivers developer notifications to your team's devices. Your backend (or AI agent) sends lightweight JSON events; Trigv queues push delivery. Notification title and body are not stored on Trigv servers — metadata only.

Related MCP server: Telegram Notify MCP Server

Installation

npm install @trigv/mcp

Or run directly with npx:

npx @trigv/mcp

Quick start

  1. Create a workspace API key at app.trigv.com.

  2. Set TRIGV_API_KEY in your MCP client config (see below).

  3. Ask your AI assistant to send an event using the send_event tool.

Example tool call:

{
  "channel": "deploys",
  "title": "Production deploy complete",
  "description": "Build #42 succeeded in 38s (commit abc1234)",
  "level": "success",
  "event_type": "deploy.completed",
  "idempotency_key": "deploy-prod-42"
}

Authentication

Variable

Required

Default

Description

TRIGV_API_KEY

Yes

—

Workspace ingest API key (trgv_…)

TRIGV_BASE_URL

No

https://api.trigv.com

API base URL. A URL ending in /api still works

The API key is sent as Authorization: Bearer and is never included in tool responses or error messages.

Tool: send_event

Sends a notification event via POST /v1/events.

Field

Required

Description

channel

Yes

Channel slug (e.g. general, deploys; max 120 characters)

title

Yes

Notification title (max 255 characters)

description

No

Body text (max 1000 characters)

image_url

No

Image URL (max 2048 characters; not stored server-side)

url

No

Destination URL for the notification (max 2048 characters; not stored server-side)

level

No

info, success, warning, error (default: info)

delivery_urgency

No

standard or time_sensitive (default: standard)

event_type

No

Free-form label (e.g. deploy.completed, max 120 characters)

idempotency_key

No

Dedup key per workspace (max 190 characters)

Success response includes event.public_id, duplicate (true when HTTP 200), other event metadata, and request_id (the X-Request-ID header; left out if the API sent none).

Error response includes error.type, error.message, and optional error.errors for validation failures, error.status_code, error.retryable, error.retry_after_seconds and error.request_id (the X-Request-ID header; quote it to support).

Levels

  • info — general information (default)

  • success — completed successfully

  • warning — attention needed

  • error — failure or alert

Delivery urgency

  • standard — normal notifications (default)

  • time_sensitive — iOS Time Sensitive delivery

Idempotency

When you set idempotency_key, retries with the same key return the existing event (duplicate: true, HTTP 200, message already stored) without sending it again. A 409, 429, 502, 503 or 504, a network error or a timeout is retried automatically with the same key, waiting for Retry-After. If Retry-After is longer than the request timeout, the original error is thrown at once, without waiting.

Error handling

Error type

When

ConfigurationError

Missing TRIGV_API_KEY

ValidationError

Invalid input (client or server 422)

AuthenticationError

HTTP 401

AuthorizationError

HTTP 403

NotFoundError

Channel not found (HTTP 404)

ConflictError

HTTP 409: another request is delivering the same idempotency_key

RateLimitError

HTTP 429: 60 requests per minute per workspace

ServiceUnavailableError

HTTP 503: push unavailable

NetworkError / TimeoutError

Connection issues

MCP client configuration

Cursor

Add to .cursor/mcp.json in your project (or global Cursor MCP settings):

{
  "mcpServers": {
    "trigv": {
      "command": "npx",
      "args": ["-y", "@trigv/mcp"],
      "env": {
        "TRIGV_API_KEY": "trgv_your_api_key_here"
      }
    }
  }
}

For a local checkout during development:

{
  "mcpServers": {
    "trigv": {
      "command": "node",
      "args": ["/path/to/trigv-mcp/dist/index.js"],
      "env": {
        "TRIGV_API_KEY": "trgv_your_api_key_here"
      }
    }
  }
}

Claude Code

Run:

claude mcp add trigv --env TRIGV_API_KEY=trgv_your_api_key_here -- npx -y @trigv/mcp

Or add the same server to .mcp.json in your project:

{
  "mcpServers": {
    "trigv": {
      "command": "npx",
      "args": ["-y", "@trigv/mcp"],
      "env": {
        "TRIGV_API_KEY": "trgv_your_api_key_here"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "trigv": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@trigv/mcp"],
      "env": {
        "TRIGV_API_KEY": "trgv_your_api_key_here"
      }
    }
  }
}

Examples

Basic event

{ "channel": "general", "title": "Hello from MCP" }

Deploy completed (canonical)

{
  "channel": "deploys",
  "title": "Production deploy complete",
  "description": "Build #42 succeeded in 38s (commit abc1234)",
  "level": "success",
  "delivery_urgency": "standard",
  "event_type": "deploy.completed",
  "idempotency_key": "deploy-prod-42"
}

Cron job failed

{
  "channel": "alerts",
  "title": "Nightly backup failed",
  "description": "Exit code 1 after 12 minutes",
  "level": "error",
  "event_type": "cron.failed"
}

Development

git clone https://github.com/Trigv/trigv-mcp.git
cd trigv-mcp
npm install
npm run build
npm test

Run locally:

TRIGV_API_KEY=trgv_… npm run dev

Testing

npm test

Tests use mocked HTTP — no live API key required in CI.

Contributing

See the Trigv SDK programme for API contract and conformance requirements.

Licence

MIT — see LICENSE.

Available Tools

1 tool
send_eventA

Send a notification event to a Trigv workspace channel. Requires TRIGV_API_KEY.

Inputs: title (required), channel (required), level, image_url, +4 more. Returns: error, event, success, duplicate

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no ambiguity. The single tool has a clear, distinct purpose.

    Naming Consistency5/5

    With only one tool, naming consistency is perfect as there are no other tools to conflict with. The name 'send_event' follows a clear verb_noun pattern.

    Tool Count3/5

    A single tool is borderline; while it may be sufficient for a very narrow purpose, it feels thin compared to the typical 3-15 tools for a well-scoped server.

    Completeness2/5

    The server only provides a send operation, missing other expected capabilities like event listing, deletion, or configuration, which limits its usefulness for agents.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides automatic desktop notifications and contextual sounds for Claude Code operations across macOS, Windows, and Linux. It enhances the development experience by intelligently mapping specific event types to native system alerts and sounds.
      4
      7 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects VS Code Copilot to Telegram for mobile notifications, interactive approval workflows, and remote command input. Enables users to monitor AI agents, approve sensitive operations, and provide follow-up instructions from their smartphone.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Sends push notifications from AI assistants to your mobile device. Supports Claude, Cursor, Windsurf, and more.
      8
      17 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Universal notification infrastructure for AI Agents. Enables Claude, Cursor, and DeepSeek to push real-time alerts to 80+ platforms (Telegram, Discord, Slack, Email) via Apprise.
      MIT