marketing
Customer.io MCP Integration for Vercel AI SDK
Connect Customer.io to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Customer.io 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.
Customer.io MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-customerio": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=customerio",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=customerio --write=deny Why Use KosmoKrator Here
Expose only Customer.io instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Customer.io Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Customer.io integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__customerio__customerio_identify_customer | customerio.customerio_identify_customer | Write | Create or update a customer profile in Customer.io. Use this to add new customers or update existing customer attributes like email, name, and custom properties. |
integration__customerio__customerio_track_event | customerio.customerio_track_event | Write | Track a custom event for a customer in Customer.io. Events trigger campaign workflows and can be used to segment customers. |
integration__customerio__customerio_list_segments | customerio.customerio_list_segments | Read | List all segments in the Customer.io workspace. Segments are dynamic groups of customers defined by conditions. |
integration__customerio__customerio_list_campaigns | customerio.customerio_list_campaigns | Read | List all campaigns in the Customer.io workspace. Campaigns are automated message sequences triggered by events or segments. |
integration__customerio__customerio_get_campaign | customerio.customerio_get_campaign | Read | Get detailed information about a specific campaign in Customer.io, including its triggers, actions, and performance metrics. |
integration__customerio__customerio_list_newsletters | customerio.customerio_list_newsletters | Read | List all newsletters in the Customer.io workspace. Newsletters are one-time broadcast messages sent to segments. |
integration__customerio__customerio_get_current_user | customerio.customerio_get_current_user | Read | Get the currently authenticated user and account information from Customer.io. Useful for verifying API credentials and checking workspace details. |