Lessons learned building Fronteira, an MCP proxy with behavioral guardrails
Fronteira, an MCP proxy, turns natural-language rules into checks against cross-tool agent data leaks.
Alcides Fonseca describes Fronteira, an MCP proxy that centralizes access to GitHub, Gmail, and other MCP servers so agent behavior can be logged and constrained. Users write rules in English; they compile to Guard DSL, which is evaluated deterministically and can call decision models to flag trade secrets or medical data and track session state such as private reads. He notes harnesses still reach filesystems, browsers, desktops, and APIs directly, and that clients generally ignore dynamic MCP tool lists. A Codex-generated Django configuration change exposed his Resend token, which spammers then used.
- Fronteira proxies MCP servers and logs every agent tool call.
- English rules compile to deterministic Guard DSL checks.
- Filesystem, browser, and direct API use bypass the proxy.
- A Codex Django change exposed the author's Resend token.
From the original article
7 min read at wiki.alcidesfonseca.comI designed a harness built on top of dependent types that uses information-flow policies to prevent attacks involving the lethal trifecta . However, expecting users to write liquid types was unrealistic, and creating a custom SDK for every external interface—filesystems, APIs, internet search and MCP tools—was not practical. Following feedback from Lisbon.
By wiki.alcidesfonseca.com by alcides · wiki.alcidesfonseca.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.