Sendmux/sendmux-sdk is the official monorepo for the Qubrics email API, covering SDKs, CLI, and MCP servers for TypeScript, Python, Go, PHP, Rust, and Ruby. This entry corresponds to its Python MCP package (packages/python/mcp), used to provide email-related capabilities for AI agents.
In terms of purpose, the package provides MCP and A2A servers for email inbox APIs, inbound email, and outbound sending, supporting inbound email, clean JSON parsing, Webhooks, and multi-provider routing through Qubrics. It is explicitly distinguished from documentation-search-type MCPs and is dedicated to the Qubrics email service.
Main capabilities are divided by surface: Mailbox tools are used for authorized mailboxes, configuration/session discovery, messages, attachments, bounded message waiting, threads, folders, search, counts, and mailbox sending, and require smx_mbx_* keys or scoped smx_agent_* tokens; Management tools are used for domains, mailboxes, logs, metrics, spend summaries, and Webhooks, and require smx_root_* keys; Sending tools are used for attachment upload references, single sends, and batch sends, and require sendable smx_mbx_* keys or owner-approved Sending resource smx_agent_* tokens. The server rejects keys with the wrong prefix before startup.
In terms of usage, the qubrics-mcp package needs to be installed, and the runtime environment is Python 3.10 or higher. Locally, stdio transport is used by default, but MCP endpoints can also be exposed via http or streamable-http. In HTTP mode, it listens on 127.0.0.1:8765/mcp by default and requires a separate MCP bearer token (unless explicitly opting out). /health returns a JSON health response for the selected surface. The hosted MCP endpoint is located at https://mcp.qubrics.com/mcp,托管客户端应使用 HTTP transport and OAuth; you should not manually add Authorization headers, API keys, custom OAuth endpoints, or custom scopes (unless the client explicitly requires it). The hosted A2A endpoint is located at https://a2a.qubrics.com/a2a/v1,可通过 agent-card.json discovery; OAuth resource metadata is located at oauth-protected-resource. The A2A endpoint is instantaneous and stateless, and does not provide streaming, push notifications, persistent tasks, or task cancellation.
For attachment workflows, MCP attachment tools use upload references instead of local file_path and roots inputs. When reading attachments, use qubrics_mailbox_read_attachment; for small text-like attachments, read the returned text; binary or oversized attachments should be used outside the model context as soon as possible via the returned resource_link / download_url; use qubrics_mailbox_get_attachment only when metadata or a refreshed link is needed. For outbound attachments, use qubrics_mailbox_upload_attachment, which supports presign_upload_url=true (hosted MCP or shell-capable agents; after upload, use the returned blob_id to send) or content_base64 (only for small files authored by the agent; decoded limit 32 KiB). Presigned uploads use the mailbox attachment limit, currently 7,500,000 bytes per attachment, and fix the declared byte length and content type. Mailbox sending accepts small inline base64 attachment objects or uploaded attachment references; Sending API sending uses qubrics_sending_upload_attachment for small inline content, or calls qubrics_sending_create_attachment_upload to PUT bytes outside the model context, then passes attachment_id in qubrics_sending_send_email.attachments[].
Applicable scenarios include development and automation scenarios that require AI agents to send and receive email, wait for new mail, process attachments, manage domains/mailboxes/logs/metrics/Webhooks, and integrate email capabilities via the MCP or A2A protocols.
Regarding limitations, note attachment input migration: before upgrading a self-managed package or server, retain the previously available package environment, dependency state, and MCP client and tool configuration, and update attachment callers; rollback must restore these as well, and package rollback does not undo completed uploads or sends. For clients using hosted endpoints, changing the local pip environment does not change the deployed server version; hosted deployment rollback is a separate operator release action. Retries follow Retry-After and X-RateLimit-Reset, do not apply a local backoff cap, and stop on retryable: false; the retry budget can be set via RetryConfig(max_elapsed_seconds=30), an environment variable, or --retry-max-elapsed-seconds 30. The in-package OpenAPI snapshot is the default to ensure published tool names, schemas, and descriptions remain stable. The source checkout contains mcp-contract.json, which can be used to read tool discovery information, but reading this artifact does not prove the deployed service matches the build. The license is MIT.