communication
Plivo MCP Integration for Vercel AI SDK
Connect Plivo to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Plivo 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.
Plivo MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-plivo": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=plivo",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=plivo --write=deny Why Use KosmoKrator Here
Expose only Plivo 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.
Plivo Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Plivo integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__plivo__plivo_list_messages | plivo.plivo_list_messages | Read | List SMS messages from Plivo with optional filters. Supports filtering by direction (inbound/outbound), message state, date range, sender, and recipient. Returns paginated message records. |
integration__plivo__plivo_send_sms | plivo.plivo_send_sms | Write | Send an SMS message via Plivo. Specify a source phone number (must be a Plivo number), one or more destination numbers, and the message text. Returns the message UUID and details. |
integration__plivo__plivo_list_numbers | plivo.plivo_list_numbers | Read | List phone numbers on your Plivo account. Supports filtering by number type, service, and pagination. |
integration__plivo__plivo_get_number | plivo.plivo_get_number | Read | Retrieve details of a specific phone number on your Plivo account by its number (e.g., "+14155552671"). Returns alias, application, service type, and other number properties. |
integration__plivo__plivo_list_calls | plivo.plivo_list_calls | Read | List calls from Plivo with optional filters. Supports filtering by direction (inbound/outbound), call state, date range, and phone numbers. Returns paginated call records. |
integration__plivo__plivo_get_call | plivo.plivo_get_call | Read | Retrieve detailed information about a specific Plivo call by its call UUID. Returns call details including duration, direction, status, and recording information. |
integration__plivo__plivo_list_applications | plivo.plivo_list_applications | Read | List Plivo voice applications on the account. Returns application IDs, names, answer/hangup URLs, and associated number counts. |