KosmoKrator

communication

OneSignal MCP Integration for Vercel AI SDK

Connect OneSignal to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API key auth

Connect OneSignal to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

OneSignal MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-one-signal": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=one-signal",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=one-signal --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only OneSignal instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

OneSignal Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the OneSignal integration catalog.

MCP toolSource functionTypeDescription
integration__one_signal__onesignal_list_notifications one-signal.onesignal_list_notifications Read List push notifications sent through OneSignal. Returns notification details including delivery stats, click counts, and outcomes. Use limit and offset for pagination.
integration__one_signal__onesignal_get_notification one-signal.onesignal_get_notification Read Get details of a specific OneSignal push notification by its ID. Returns full notification data including content, delivery stats, and targeting.
integration__one_signal__onesignal_create_notification one-signal.onesignal_create_notification Write Send a new push notification via OneSignal. Specify message contents (per language), optional headings, target segments, a click URL, and a custom data payload.
integration__one_signal__onesignal_list_devices one-signal.onesignal_list_devices Read List devices (players) registered in a OneSignal app. Returns device identifiers, platform, session counts, and tags. Use limit and offset for pagination.
integration__one_signal__onesignal_get_device one-signal.onesignal_get_device Read Get details of a specific OneSignal device (player) by its ID. Returns push token, platform, session data, tags, and more.
integration__one_signal__onesignal_list_apps one-signal.onesignal_list_apps Read List all OneSignal apps accessible with the configured REST API key. Returns app names, IDs, player counts, and configuration.
integration__one_signal__onesignal_get_current_app one-signal.onesignal_get_current_app Read Get details of a specific OneSignal app by its ID. Returns app configuration, player counts, and platform settings.

Related OneSignal Pages