communication
Front MCP Integration for Vercel AI SDK
Connect Front to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Front 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.
Front MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-front": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=front",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=front --write=deny Why Use KosmoKrator Here
Expose only Front 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.
Front Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Front integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__front__front_get_contact | front.front_get_contact | Read | Get details of a specific Front contact by ID, including name, emails, phone numbers, and custom fields. |
integration__front__front_get_conversation | front.front_get_conversation | Read | Get details of a specific Front conversation by ID, including subject, participants, status, tags, and metadata. |
integration__front__front_get_current_user | front.front_get_current_user | Read | Get the profile of the currently authenticated Front user. Returns name, email, and account details. |
integration__front__front_list_contacts | front.front_list_contacts | Read | List and search contacts in Front. Search by name, email, or other identifiers. Returns paginated contact details. |
integration__front__front_list_conversations | front.front_list_conversations | Read | List and search conversations in Front. Filter by status or search by keyword. Returns paginated results with conversation IDs, subjects, and metadata. |
integration__front__front_list_messages | front.front_list_messages | Read | List all messages in a Front conversation. Returns paginated message details including sender, body, and timestamps. |
integration__front__front_send_message | front.front_send_message | Write | Send a reply message to an existing Front conversation. Supports HTML and plain-text bodies, and explicit TO/CC recipients. |