# Envlo > Open-source agent email firewall and stateful MCP inbox. We sit between inbound email and a coding agent. `@envlo/core` sanitizes HTML, flattens layout tables to Markdown, extracts one-time codes and verification links, and holds outbound drafts for a person to approve. `@envlo/mcp` exposes the inbox tools over stdio and Streamable HTTP. This site is the public demo. The packages are not on npm yet. Develop against the local monorepo. ## Start here - [Agent setup](/agent-setup.md): provision Envlo from the local checkout - [Demo](/): browser sandbox for the firewall, hidden and disguised instructions, token cut, quoted replies, OTP extraction, forwarded mail, attachments, outbound rules, and approval over Slack, email, webhook, and the CLI ## Packages - `@envlo/core`: MIME firewall, DOM sanitizer, layout-to-Markdown, OTP extraction, draft approval adapters - `@envlo/mcp`: MCP server. Tools: `create_inbox`, `wait_for_email`, `list_messages`, `read_thread`, `reply_to_thread`, `list_inboxes`, `send_email`, `forward_thread` - `@envlo/sandbox`: Cloudflare Email Worker for ephemeral `@sandbox.envlo.dev` inboxes ## Local layout When this site and the library sit under the same parent directory: - Library: `../envlo` - Site: `../envlo.dev` The browser demo imports portable source modules from `../envlo/packages/core/src`. It does not import the package barrel: that barrel also exports the SQLite store and filesystem adapters (`node:fs`). ## Browser entry points - `packages/core/src/firewall/index.ts` — `sanitizeInvisibleHtml`, `scoreInjectionRiskSync`, `filterToolsForRisk` - `packages/core/src/markdown/index.ts` — `htmlToAgentMarkdown` - `packages/core/src/extract/index.ts` — `extractAuthSignals` - `packages/core/src/state/store-memory.ts` — `MemoryStateStore` - `packages/core/src/adapters/approval-slack.ts` — Slack Block Kit and `interpretSlackInteraction` - `packages/core/src/adapters/approval-magic-link.ts` — `MagicLinkApprovalChannel` - `packages/core/src/adapters/approval-magic-link-forms.ts` — `handleMagicLinkHttpRequest` - `packages/core/src/adapters/approval-controller.ts` — `ApprovalController`