AI agents & MCP

emitd is built the way agents like to work: a native MCP endpoint, one HTTPS call, a machine-readable spec, and predictable typed errors — no SDK or language runtime required.

Why agents get along with emitd

MCP — built in, on every plan

emitd hosts a native Model Context Protocol server at POST /mcp on the API origin. It speaks stateless JSON-RPC 2.0 and authenticates with the same Authorization: Bearer API key as the REST API — no separate server to run, nothing to install.

Connected assistants get six tools:

Every tool runs inside your account's guardrails — quotas, rate limits, and per-key permissions apply exactly as they do to the HTTPS API, so an agent can't out-send your plan.

Wrapping the send as a tool yourself

Prefer your own tool definitions? Exposing emitd to an agent is just a schema over one fetch — no SDK required. Here's a send tool an LLM can call directly:

tool definition
// A minimal "send_email" tool an agent can call — no SDK, just fetch.
{
  "name": "emitd_send_email",
  "description": "Send a transactional email via emitd.",
  "input_schema": {
    "type": "object",
    "required": ["to", "subject"],
    "properties": {
      "to": { "type": "array", "items": { "type": "string" } },
      "subject": { "type": "string" },
      "html_body": { "type": "string" }
    }
  }
}