OpenCode is an open-source AI coding assistant that runs in your terminal. You can connect it to SendKit’s MCP server to manage your email infrastructure with natural language.
Prerequisites
- OpenCode installed
- A SendKit API key with Full permission
Setup
Open the configuration file
Edit your OpenCode configuration at .opencode.json in your project root (or ~/.opencode.json for global config):{
"mcpServers": {
"sendkit": {
"type": "sse",
"url": "https://mcp.sendkit.dev/sendkit",
"headers": {
"Authorization": "Bearer sk_your_api_key_here"
}
}
}
}
Restart OpenCode
Close and reopen OpenCode to load the new MCP configuration.
Verify the connection
Ask OpenCode to interact with your SendKit account:List all my SendKit domains
OpenCode currently supports stdio and sse transports. The sse transport is used for remote HTTP servers.
Example prompts
Create a sender called "Support" with username "support" on my verified domain
Show me my email sending metrics for the last 7 days
Add user@example.com to the suppression list