Logo de Sendmux

Sendmux

Organização
Sendmux

Official monorepo of SDKs, CLI, and MCP servers for Sendmux email APIs across TypeScript, Python, Go, PHP, Rust, and Ruby.

Publicado porSendmux
Repositóriosendmux-sdk
IdiomaPHP
Forks
1
Estrelas
65
Ferramentas disponíveis
0
Tipo de transportestdio
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    Sendmux disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    65 estrelas e 1 forks no repositório vinculado.

Sendmux SDKs

npm version PyPI version Go Reference crates.io version CI npm downloads Licence: MIT

Official SDK, CLI, and MCP workspace for Sendmux.

Packages

EcosystemPackageSurfaceAPI-key / hosted authInstallSource
npm@sendmux/coreShared TypeScript helpersn/anpm install @sendmux/corepackages/ts/core
npm@sendmux/sendingSending APIsmx_mbx_* or owner-approved smx_agent_*npm install @sendmux/sendingpackages/ts/sending
npm@sendmux/mailboxMailbox APIsmx_mbx_* or smx_agent_*npm install @sendmux/mailboxpackages/ts/mailbox
npm@sendmux/managementManagement APIsmx_root_*npm install @sendmux/managementpackages/ts/management
npm@sendmux/sdkTypeScript umbrella packagesurface-specificnpm install @sendmux/sdkpackages/ts/sdk
npm@sendmux/clisendmux CLIcommand/profile-specificnpm install -g @sendmux/clipackages/ts/cli
npm@sendmux/ai-sdkVercel AI SDK tools (agent inbox + sending)send + receive smx_mbx_* or smx_agent_*npm install @sendmux/ai-sdkpackages/ts/ai-sdk
Homebrewsendmuxsendmux CLIcommand/profile-specificbrew install sendmux/tap/sendmuxSendmux/homebrew-tap
PyPIsendmux-coreShared Python helpersn/apip install sendmux-corepackages/python/core
PyPIsendmux-sendingSending APIsmx_mbx_* or owner-approved smx_agent_*pip install sendmux-sendingpackages/python/sending
PyPIsendmux-mailboxMailbox APIsmx_mbx_* or smx_agent_*pip install sendmux-mailboxpackages/python/mailbox
PyPIsendmux-managementManagement APIsmx_root_*pip install sendmux-managementpackages/python/management
PyPIsendmux-sdkPython umbrella packagesurface-specificpip install sendmux-sdkpackages/python/sdk
PyPIsendmux-mcpLocal MCP plus hosted MCP and A2A serversOAuth for hosted; surface-specific keys for localpip install sendmux-mcppackages/python/mcp
PyPIlangchain-sendmuxLangChain toolkit (agent inbox + sending)REST OAuth or send + receive smx_mbx_* / smx_agent_*pip install langchain-sendmuxpackages/python/langchain
Gosendmux.ai/go/v3/coreShared Go helpersn/ago get sendmux.ai/go/v3@v3.0.0go/core
Gosendmux.ai/go/v3/sendingSending APIsmx_mbx_* or owner-approved smx_agent_*go get sendmux.ai/go/v3@v3.0.0go/sending
Gosendmux.ai/go/v3/mailboxMailbox APIsmx_mbx_* or smx_agent_*go get sendmux.ai/go/v3@v3.0.0go/mailbox
Gosendmux.ai/go/v3/managementManagement APIsmx_root_*go get sendmux.ai/go/v3@v3.0.0go/management
Gosendmux.ai/go/v3/sdkGo umbrella packagesurface-specificgo get sendmux.ai/go/v3@v3.0.0go/sdk
crates.iosendmuxRust umbrella cratesurface-specificcargo add sendmuxrust
Packagistsendmux/coreShared PHP helpersn/acomposer require sendmux/core:^2.1packages/php/core
Packagistsendmux/sendingSending APIsmx_mbx_* or owner-approved smx_agent_*composer require sendmux/sending:^2.1packages/php/sending
Packagistsendmux/mailboxMailbox APIsmx_mbx_* or smx_agent_*composer require sendmux/mailbox:^2.1packages/php/mailbox
Packagistsendmux/managementManagement APIsmx_root_*composer require sendmux/management:^2.1packages/php/management
Packagistsendmux/sdkPHP umbrella packagesurface-specificcomposer require sendmux/sdk:^2.1packages/php/sdk
RubyGemssendmux-coreShared Ruby helpersn/agem install sendmux-corepackages/ruby/core
RubyGemssendmux-sendingSending APIsmx_mbx_* or owner-approved smx_agent_*gem install sendmux-sendingpackages/ruby/sending
RubyGemssendmux-mailboxMailbox APIsmx_mbx_* or smx_agent_*gem install sendmux-mailboxpackages/ruby/mailbox
RubyGemssendmux-managementManagement APIsmx_root_*gem install sendmux-managementpackages/ruby/management
RubyGemssendmux-sdkRuby umbrella packagesurface-specificgem install sendmux-sdkpackages/ruby/sdk

Quick start

Install only the package for the surface you need.

sh
npm install @sendmux/sending
pip install sendmux-sending
go get sendmux.ai/go/v3@v3.0.0
cargo add sendmux
composer require sendmux/sending:^2.1
gem install sendmux-sending

Use send-capable smx_mbx_* keys or owner-approved Sending-resource smx_agent_* tokens for Sending clients. Use smx_mbx_* keys or scoped smx_agent_* tokens for Mailbox clients. Use root smx_root_* keys for Management clients. Agent tokens remain limited by server-side scopes; pre-claim self-registered agent tokens do not include email.send.

OAuth authentication

TypeScript, Python, Go, PHP, Ruby, and Rust surface clients accept a bare REST OAuth access token or a provider that resolves one before each request. Use the explicit token API below; API-key configuration continues to validate key prefixes.

ClientAccess-token configuration
TypeScriptaccessToken: token or accessToken: () => token; async providers are supported.
Vercel AI SDKsendmux({ accessToken: token }) or an async token provider; grant mailbox.read and email.send for one mailbox.
Pythonaccess_token=token or a callable.
LangChainSendmuxToolkit(access_token=token) or a callable; grant mailbox.read and email.send for one mailbox.
GoNewWithAccessToken(token) or NewWithTokenProvider(provider); providers receive the request context.
PHPClientFactory::createMetaApiWithAccessToken($token) or a callable; each API factory has a WithAccessToken variant.
Rubyaccess_token: token or a callable.
Rustnew_with_access_token(token) or new_with_token_provider(provider); providers return a future.

Choose one credential source. Your application owns secure storage and refresh coordination. Request resource=https://sendmux.ai/api; each API still checks its required scopes and granted surface. The CLI manages browser login and token refresh with sendmux auth:login; use sendmux auth:logout to revoke its connection.

OAuth setup and lifecycle.

Command-line access

For command-line access, install the CLI:

sh
brew install sendmux/tap/sendmux
npm install -g @sendmux/cli
sendmux agent:register my-agent --mailbox-local-part my-agent --default --json

Agent registration does not require an existing account or API key. It creates a local profile with a durable, revocable credential for reading and receiving mail. To send, invite the owner with sendmux agent:invite-owner owner@example.com --profile my-agent; after the owner accepts and approves sending, Sending API commands exchange and cache a one-hour delegated token automatically.

For MCP clients, install sendmux-mcp or connect to the hosted MCP endpoint:

sh
pip install sendmux-mcp
sendmux-mcp-mailbox --help

The hosted MCP endpoint is https://mcp.sendmux.ai/mcp. Local MCP commands support stdio and HTTP transports; hosted MCP uses OAuth and does not require manual API keys or custom OAuth endpoints.

For A2A 1.0 clients, discover the hosted HTTP+JSON service from https://a2a.sendmux.ai/.well-known/agent-card.json. It exposes the same curated mailbox, management, and sending operations with an OAuth grant bound specifically to https://a2a.sendmux.ai/a2a/v1.

For AI-agent frameworks, first-party tool wrappers are available:

sh
npm install @sendmux/ai-sdk ai zod   # Vercel AI SDK: sendmux({ apiKey }) returns a ToolSet
pip install langchain-sendmux        # LangChain: SendmuxToolkit(api_key=...).get_tools()

Both wrap the generated Sending and Mailbox clients, so the OpenAPI spec stays the single source of truth.

Connection checks

Authenticated connection checks for all three API surfaces return the current team, credential identity, connection label, permissions and authorised mailboxes. Mailbox checks need no mailbox selector or provisioned storage; Sending checks require email.send without sending an email or checking delivery readiness. Existing mailboxGetMe behaviour is unchanged.

Use TypeScript Sending 1.4.0, Mailbox 1.5.0 and Management 1.3.0 (or umbrella SDK 1.4.2), CLI 1.5.0, MCP 1.7.0, Ruby SDK 1.2.0, Rust 0.3.0, Go 1.5.0, PHP 2.0.0, or Python Sending 1.4.0, Mailbox 1.4.0 and Management 1.3.0 (or umbrella SDK 1.1.1).

SurfaceTypeScript operationCLI commandMCP tool
ManagementmanagementGetConnectionmanagement:get-connectionmanagement_get_connection
MailboxmailboxGetConnectionmailbox:get-connectionmailbox_get_connection
SendingsendingGetConnectionsending:get-connectionsending_get_connection

Use the corresponding client factory and credential. For example, with SENDMUX_API_KEY set to a Management key:

ts
import { createManagementClient, managementGetConnection } from "@sendmux/sdk";

const client = createManagementClient({ apiKey: process.env.SENDMUX_API_KEY! });
const response = await managementGetConnection({ client });
console.log(response.data?.data.label);
sh
sendmux management:get-connection --json

Each Rust client exposes get_connection(), returning Response<Connection>. Generated Go, Python, PHP and Ruby references include the corresponding GetConnection operation for each surface. Use the released package versions listed above; source code for pending releases is not yet available through package registries.

Attachments And Live Mailbox Events

Mailbox attachment metadata now includes a short-lived download_url. Fetch that URL promptly with a plain HTTP client; it does not require an Authorization header, but it expires after a short TTL. If a download URL expires, re-fetch the message or attachment metadata to receive a fresh URL.

For outbound files, avoid manually placing base64 in prompts or source strings. Use the zero-context path for your lane:

  • CLI: sendmux mailbox:send-message --attach ./report.pdf or sendmux sending:send --attach ./report.pdf.
  • TypeScript: use @sendmux/mailbox/node sendMailboxMessageWithFiles(...) or @sendmux/sending/node sendEmailWithFiles(...).
  • Python: use sendmux_mailbox.send_mailbox_message_with_files(...) or sendmux_sending.send_email_with_files(...).
  • MCP: agents can mint a presigned upload URL, PUT bytes to it without an API key, then send with the returned blob_id.

Mailbox direct uploads, presigned uploads, CLI --attach, and mailbox SDK file helpers share the mailbox attachment cap: currently 7,500,000 bytes per attachment. Sending API attachment helpers upload file bytes and send attachment references; the generated Sending API limit is max 10 attachments and a 25 MB request body.

Small generated attachments can still use inline base64 where the API schema supports them. MCP inline base64 is capped at 32 KiB decoded; use presigned upload, CLI --attach, or SDK file helpers for real files.

Live mailbox events are available through idiomatic lanes:

  • TypeScript: streamMailboxEvents(...) returns an async iterator over typed mailbox realtime events.
  • Python: iter_mailbox_events(...) yields typed MailboxRealtimeEvent models from the generated mailbox client.
  • CLI: sendmux mailbox:stream-events --follow prints one JSON event per line until the stream closes or the process is interrupted.
  • MCP: use mailbox_wait_for_message for bounded waits inside agent tool calls, then mailbox_get_attachment to renew attachment metadata and fetch download_url.

Repository structure

Maintainers: use the protected live E2E matrix for credential-free planning, explicit identity/send gates, cleanup evidence, and fresh-run audit rules. Static coverage and expected API negatives are not live capability certification. Attachment byte scenarios require trusted retention verification before live execution.

PathPurpose
packages/tsTypeScript SDK packages and the sendmux CLI.
packages/pythonPython SDK packages and the sendmux-mcp package.
goGo module sendmux.ai/go/v3 and subpackages.
rustRust crate published as sendmux on crates.io.
packages/phpPHP package sources used for Packagist packages and public split repositories.
packages/rubyRubyGem package sources.
codegenGenerator configuration and templates.
scriptsGeneration, verification, publishing, and release helper scripts.
docsSurface-coverage and live E2E audit artefacts.
.github/workflowsCI, canary, live E2E, and release workflows.

Versioning and support

Maintain package contracts

In a source checkout, maintainers can inspect the generated MCP package contract for the actual tool catalogue, schemas, upload workflows, hosted resource, and frozen protocol revisions. It describes this checkout, not the version already available from a package registry. Source hashes and native distribution metadata bind the artifact to its inputs; local transports and upstream API origins are separate from the hosted OAuth resource.

With the workspace dependencies installed and Python 3.10 or newer available, run these commands from the repository root:

sh
pnpm generate:mcp
pnpm test:release-state
pnpm build:mcp

Generation refreshes editable Python metadata before discovering tools without upstream requests. The build checks wheel and source-distribution contents, an installed-wheel consumer outside the checkout, and the frozen conformance requirements. pnpm drift:check rejects generated changes that have not been staged or committed. Regenerate and review the contract when a release PR changes MCP's native version; do not reuse a contract from the previous version.

Native release validation covers TypeScript, Python, Rust, Ruby, and Go's component/tag convention. Go has no in-module version field. PHP versions belong to split-repository tags, not composer.version or release-please; Composer identities and dependencies are checked without treating a local path-repository version as publication evidence. Exact published tags and versions remain release gates.

Maintainers: native publication gates bind the supported release-workflow entries and PHP split command to immutable candidates and require fresh, strict live-schema parity before their first write. Low-level Ruby, npm, and Homebrew helpers are not guarded standalone release procedures; manual Snap promotion remains owner-approved policy.

Verify runtime compatibility from source

Maintainers: the CI workflow separates the generation/static build from language runtime checks. A configured cell is a required check, not a claim that an unreleased checkout has passed remotely. Compatibility floors aren't recommendations to deploy upstream-EOL runtimes.

RuntimeRequired CI cellsCandidate package boundary
Node22, 24, 26 on Ubuntu, macOS, WindowsSix explicitly installed tarballs and CLI
Python3.10–3.14 on UbuntuSeven wheels with runtime tests; seven sdists with isolated installation
Go1.23.4, 1.26, 1.27 on UbuntuExternal module with an explicit candidate replacement; no toolchain auto-upgrade
PHP8.2–8.5 on UbuntuFive individual splits and an all-local umbrella consumer
Ruby3.1, 3.2, 3.3, 3.4.1, 4.0 on UbuntuFive locally installed gems; development tooling only on 3.4.1
Rust1.82.0 and stable/latest on UbuntuIndependent source locks, verified crate, separately locked floor consumer

After the corresponding source build, run node scripts/ci-consumers.mjs node, python, go, or ruby from the repository root to verify installed imports outside the checkout. Python's repository-only MCP contract/packaging tests remain in source checks; the wheel consumer runs runtime tests and installed load_contract() without source-path injection. PHP uses node scripts/check-php-splits.mjs for the all-local composition check; individual splits can resolve published sibling dependencies and aren't that proof.

Linux Node cells additionally run node scripts/ci-consumers.mjs ai for the 12 exact AI/Zod pairs recorded in that helper. The candidate AI wrapper requires Zod 3.25.76 or newer and retains AI 5/6/7 coverage, including the historical AI 5.0.0/Zod 4.0.0 intersection. The published 0.4.0 wrapper still advertises the older Zod floor; this correction requires a later release.

For Rust, run the locked all-target/all-feature and doc tests with cargo +1.82.0, then node scripts/ci-consumers.mjs rust with stable and 1.82.0 installed (stable needs Clippy). That helper resolves latest dependencies in a temporary copy, tests and verifies cargo +stable package --locked, and checks the unpacked crate using rust/ci/floor-consumer/Cargo.lock. It never substitutes the library's embedded lock for the consumer lock. Surface coverage and Rust operation decisions distinguish named methods from partial/raw/unsupported operations.

Package release boundaries

SDK packages track the Sendmux public API contracts. Patch versions can differ between packages when a fix only affects one ecosystem or runtime.

Generated clients are built from committed OpenAPI snapshots. Any API contract change must update the snapshots and generated output in the same change.

For help, open a GitHub issue with the package name, version, command or import path, and the request ID from any API error response.

Contributing

Open pull requests against this repository. Keep generated output, source snapshots, and verification artefacts together in the same change.

Security issues should be reported through GitHub Security Advisories.

Licence

This repository is available under the MIT licence.

Use o MCP de Sendmux com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar Sendmux, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione Sendmux como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de Sendmux.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "sendmux-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de Sendmux, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de Sendmux.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Sendmux para me ajudar nesta tarefa?
Sendmux
Claro. Já li.
Veja o que encontrei usando Sendmux.

Perguntas frequentes

Para que serve o servidor MCP Sendmux?

Sendmux é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP Sendmux com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar Sendmux com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP Sendmux com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com Sendmux conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP Sendmux ao TypingMind?

Sendmux funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP Sendmux oferece no TypingMind?

Sendmux disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP Sendmux?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se Sendmux exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇