Skip to content

feat(send): per-send from/fromName email overrides (SDK, CLI, MCP)#67

Merged
tuyakhov merged 1 commit into
mainfrom
claude/wizardly-brown-qu8jtz
Jul 8, 2026
Merged

feat(send): per-send from/fromName email overrides (SDK, CLI, MCP)#67
tuyakhov merged 1 commit into
mainfrom
claude/wizardly-brown-qu8jtz

Conversation

@tuyakhov

@tuyakhov tuyakhov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds optional per-send From overrides on email sends, with identical
behavior on templated (send) and raw (sendRaw) sends, bringing the SDK, MCP
tool schemas, and CLI in line with the /v1/send API:

  • from — From address override (bare address). Previously accepted on
    raw sends only; now also on templated sends.
  • fromName — new on both: From display name override, rendered by the
    server as Name <address>. Max 128 chars; no control characters or angle
    brackets.

Either field can be set on its own; both fall back to the provider connection's
configured values. On managed sending, the from address is honored only on the
workspace's verified sending domain, while fromName always applies.

SDK (@senderkit/sdk)

  • SendRequest gains from and fromName; SendRawEmailRequest gains
    fromName (it already had from).
  • client.send() and client.sendRaw() forward both fields to /v1/send
    (sendRaw keeps them email-only via the existing channel guard).

MCP (tool schemas)

  • senderkit_send and senderkit_send_raw gain from and fromName inputs,
    described as email-only overrides. Shared field definitions keep the two tools
    in sync.

CLI (@senderkit/cli)

  • senderkit send and senderkit send-raw pick up --from and --from-name
    automatically from the shared schema; both are threaded through to the client.

Tests / verification

  • Added SDK coverage for from/fromName on templated and raw sends, and that
    both are dropped on non-email channels.
  • pnpm --filter @senderkit/sdk --filter @senderkit/cli typecheck — clean.
  • pnpm --filter @senderkit/sdk --filter @senderkit/cli test — 59 + 80 pass.
  • Changeset added (@senderkit/sdk minor, @senderkit/cli minor); READMEs
    updated.

Parity changes are landed in the Python and PHP SDKs as well.

🤖 Generated with Claude Code


Generated by Claude Code

…aw sends

Adds optional per-message From identity overrides on email sends, identical
across templated (send) and raw (sendRaw) sends:

- from: bare From address override. Was raw-only; now also on templated sends.
- fromName: new on both — From display name, rendered as "Name <address>".
  Max 128 chars; no control characters or angle brackets.

Either can be set alone; both fall back to the connection's configured values.
Threaded through the SDK client, MCP tool schemas (senderkit_send /
senderkit_send_raw), and CLI (--from / --from-name). README + changeset added.
@tuyakhov tuyakhov merged commit 53da0d6 into main Jul 8, 2026
1 check passed
@tuyakhov tuyakhov deleted the claude/wizardly-brown-qu8jtz branch July 8, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants