# Mailosaur — Pipedream Connect

> Mailosaur removes the frustration of testing everything a user might do. Test password resets, replies, two-factor logins, and more.

- API slug: `mailosaur` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Web & App Development
- Website: https://mailosaur.com/
- This page (HTML): https://pipedream.com/apps/mailosaur
- Tools: 4 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: mailosaur`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "mailosaur",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create and Send Email via Mailosaur:
const result = await mcp.callTool({
  name: "mailosaur-create-email",
  arguments: {
    serverId: "Server ID",
    to: "To",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mailosaur-create-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailosaur: { authProvisionId: "apn_xxxxxxx" },
    serverId: "Server ID",
    to: "To",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (4)

### `mailosaur-create-email` — Create and Send Email via Mailosaur (Write)

Sends an email through Mailosaur. See the documentation

Full schema: https://pipedream.com/apps/mailosaur/actions/create-email.md

### `mailosaur-delete-email` — Delete Email (Write)

Deletes an email from a Mailosaur server using its email ID. See the documentation

Full schema: https://pipedream.com/apps/mailosaur/actions/delete-email.md

### `mailosaur-list-server-id-options` — List Server ID Options (Read-only)

Retrieves available options for the Server ID field.

Full schema: https://pipedream.com/apps/mailosaur/actions/list-server-id-options.md

### `mailosaur-search-email` — Search Email (Read-only)

Search for received emails in a server matching specified criteria. See the documentation

Full schema: https://pipedream.com/apps/mailosaur/actions/search-email.md

## Triggers (2)

### `mailosaur-new-email-matching-criteria` — New Email Matching Criteria (Polling)

Emit new event when a message matching specific criteria is received. See the documentation

Full schema: https://pipedream.com/apps/mailosaur/triggers/new-email-matching-criteria.md

### `mailosaur-new-message` — New Message Received (Polling)

Emit new event when a message is received in a specified Mailosaur inbox. See the documentation

Full schema: https://pipedream.com/apps/mailosaur/triggers/new-message.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
