KosmoKrator

email

MailerLite CLI for Coding Agents

Use the MailerLite CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

8 functions 4 read 4 write API key auth

MailerLite CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The MailerLite CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# MailerLite CLI for Coding Agents
kosmokrator integrations:configure mailerlite --set api_key="$MAILERLITE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call mailerlite.mailerlite_list_subscribers '{"page":1,"limit":1,"status":"example_status"}' --json

Discovery Before Execution

Agents and scripts can inspect MailerLite docs and schemas before choosing a function.

kosmo integrations:docs mailerlite --json
kosmo integrations:docs mailerlite.mailerlite_list_subscribers --json
kosmo integrations:schema mailerlite.mailerlite_list_subscribers --json
kosmo integrations:search "MailerLite" --json
kosmo integrations:list --json

Useful MailerLite CLI Functions

FunctionTypeParametersDescription
mailerlite.mailerlite_list_subscribers Read page, limit, status List subscribers from MailerLite. Supports pagination and filtering by status (active, unsubscribed, etc.).
mailerlite.mailerlite_get_subscriber Read id Get details for a single MailerLite subscriber by their ID.
mailerlite.mailerlite_create_subscriber Write email, name, fields Add a new subscriber to MailerLite. Provide an email address and optionally a name and custom fields.
mailerlite.mailerlite_update_subscriber Write id, name, fields Update an existing subscriber in MailerLite. Provide the subscriber ID and fields to update.
mailerlite.mailerlite_delete_subscriber Write id Delete a subscriber from MailerLite by their ID. This action is permanent.
mailerlite.mailerlite_list_groups Read page, limit List subscriber groups (segments) from MailerLite. Supports pagination.
mailerlite.mailerlite_add_subscriber_to_group Write group_id, email, name Add a subscriber to a MailerLite group by providing the group ID and subscriber email.
mailerlite.mailerlite_get_current_user Read none Get the currently authenticated MailerLite account information. Useful for verifying API credentials.

Automation Notes

Related MailerLite CLI Pages