Elastic Email MCP Integration for OpenAI Agents SDK
Connect Elastic Email to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Elastic Email to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Elastic Email MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-elastic-email": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=elastic-email",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=elastic-email --write=deny Why Use KosmoKrator Here
Expose only Elastic Email 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.
Elastic Email Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Elastic Email integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__elastic_email__elasticemail_send_email | elastic-email.elasticemail_send_email | Write | Send a transactional email via Elastic Email. Provide the recipient address, subject, and HTML body. |
integration__elastic_email__elasticemail_list_templates | elastic-email.elasticemail_list_templates | Read | List email templates available in your Elastic Email account. |
integration__elastic_email__elasticemail_get_template | elastic-email.elasticemail_get_template | Read | Get details of a specific email template by its ID from Elastic Email. |
integration__elastic_email__elasticemail_list_contacts | elastic-email.elasticemail_list_contacts | Read | List contacts from your Elastic Email account. |
integration__elastic_email__elasticemail_create_contact | elastic-email.elasticemail_create_contact | Write | Create or add a contact in Elastic Email. Optionally assign the contact to an existing list. |
integration__elastic_email__elasticemail_get_current_user | elastic-email.elasticemail_get_current_user | Read | Get information about the currently authenticated Elastic Email user account. |