KosmoKrator

email

EmailOctopus MCP Integration for Vercel AI SDK

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

6 functions 5 read 1 write API key auth

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

EmailOctopus MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=email-octopus --write=deny

Why Use KosmoKrator Here

Scoped tools

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

EmailOctopus Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__email_octopus__emailoctopus_list_contacts email-octopus.emailoctopus_list_contacts Read List contacts in an EmailOctopus mailing list. Returns contact email addresses, statuses, and pagination cursors.
integration__email_octopus__emailoctopus_get_contact email-octopus.emailoctopus_get_contact Read Get details of a specific contact in an EmailOctopus mailing list, including email address, status, and custom fields.
integration__email_octopus__emailoctopus_create_contact email-octopus.emailoctopus_create_contact Write Add a new contact to an EmailOctopus mailing list. Requires an email address.
integration__email_octopus__emailoctopus_list_campaigns email-octopus.emailoctopus_list_campaigns Read List all email campaigns in your EmailOctopus account, including their status, subject, and send dates.
integration__email_octopus__emailoctopus_get_campaign email-octopus.emailoctopus_get_campaign Read Get details of a specific EmailOctopus campaign, including status, subject, content, and delivery statistics.
integration__email_octopus__emailoctopus_get_current_user email-octopus.emailoctopus_get_current_user Read Get the authenticated EmailOctopus account details, including name and email address.

Related EmailOctopus Pages