OpenCode
Use Transmitly from OpenCode
Connect OpenCode to the Transmitly MCP server so your coding agent can inspect delivery state, domains, broadcasts, automations and inbox threads.
OpenCode can call Transmitly through the same local MCP server used by other coding agents. Give it a read-scoped key for inspection, or a send-scoped key when you want the agent to reply inside an inbox thread.
Connect
Add Transmitly to OpenCode.
Debugging delivery issues, inspecting domains and drafting send payloads while you code.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"transmitly": {
"type": "local",
"command": ["npx", "-y", "@transmitly/mcp"],
"environment": {
"TRANSMITLY_API_KEY": "{env:TRANSMITLY_API_KEY}"
},
"enabled": true
}
}
}Use a dedicated API key. Read-only inspection needs the read scope; inbox replies also need send. Keep the key in an environment variable or secret manager.
What the agent can do
- Search messages and read per-recipient delivery state
- Inspect domains, DNS audits, broadcasts, segments and automations
- Check usage and account health
- Reply inside an existing inbox thread with a send-scoped key
Guardrails
- The MCP server is read/reply only. It cannot send a new outbound message, delete data or change configuration.
- Use a separate API key for agents and restrict it to the required scopes. Never put the key in a prompt or commit it.
- The API and SMTP paths remain available when the agent needs to create a message; use the API key from the environment.
Example prompts
Ask for evidence, not invented success.
These prompts work well because they force the agent to read message and delivery state before writing code or drafting a reply.
“Find the last message to [email protected] and explain why it bounced.”
“List domains with failing SPF or DKIM and summarize the fixes.”
“Read the newest support inbox thread and draft a reply for review.”
“Show usage for this workspace and whether we are near the daily cap.”
Keep going
Docs for the next step.
More coding agents
Cursor
Add the Transmitly MCP server to Cursor and let the agent inspect messages, domains and inbox threads while you build.
Claude
Give Claude a local MCP connection to Transmitly for delivery investigation, domain audits and inbox triage.
Claude Code
Register the Transmitly MCP server with Claude Code and use it while editing your email integration.