KosmoKrator

messaging

Crisp MCP Integration for Vercel AI SDK

Connect Crisp 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 Crisp 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.

Crisp MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=crisp --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Crisp 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.

Crisp Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__crisp__crisp_list_conversations crisp.crisp_list_conversations Read List chat conversations from Crisp. Returns conversation sessions with status, participant info, and last message preview. Supports pagination.
integration__crisp__crisp_get_conversation crisp.crisp_get_conversation Read Get details and messages of a specific Crisp conversation. Returns the full message thread including sender info, timestamps, and message content.
integration__crisp__crisp_send_message crisp.crisp_send_message Write Send a message in a Crisp conversation. Posts as an operator by default. Use the "type" parameter to send text, notes, or file messages.
integration__crisp__crisp_list_contacts crisp.crisp_list_contacts Read List contacts from Crisp. Returns contact profiles with email, name, and custom data. Supports pagination.
integration__crisp__crisp_get_contact crisp.crisp_get_contact Read Get details of a specific Crisp contact. Returns profile info, custom data, segments, and more.
integration__crisp__crisp_list_campaigns crisp.crisp_list_campaigns Read List marketing campaigns from Crisp. Returns campaigns with status, template details, and delivery statistics. Supports pagination.
integration__crisp__crisp_get_current_user crisp.crisp_get_current_user Read Get the currently authenticated Crisp user profile. Useful for verifying credentials and identifying the connected operator.

Related Crisp Pages