Dropbox feeds security designs into AI code review with MCP
· Do Minh Tuan · Future Pulse 🔮
Dropbox published how it connected the Model Context Protocol to Dash, its internal search and knowledge platform, so that AI code review can pull in the security requirements written during design. The problem it addresses shows up often enough that I expect it on most projects: the design document exists, and the code review never reads it.
The gap is bigger than it looks. A team writes a threat model, decides that payment data gets encrypted at rest and that the admin endpoint requires a second check, and then the document goes into a wiki. Six weeks later someone writes the endpoint, the reviewer looks at the diff, and the diff looks fine. The missing control is not visible in the diff, because it was never written.
What MCP does here
MCP, the Model Context Protocol, is a standard way for an AI model to request data from another system. Think of it as a common connector shape, so a tool does not need a bespoke integration for every model and every data source. Dropbox uses it so its AI reviewer can query Dash during a pull request.
A pull request is the proposal to merge a set of code changes. When one is opened, the AI reviewer asks Dash for the security specs that apply, gets them back, and checks the change against them. If a required encryption step is absent, it says so at review time rather than at audit time.
Dash is described as Dropbox's internal search and knowledge platform. That matters, because the value here is the place where design decisions were already recorded and searchable, not the model. Without that, the MCP server has nothing useful to fetch. My guess is that teams wanting to copy this will discover they need to fix their documentation first, and that is the actual project.
Why the design-to-code handoff breaks
An AI coding assistant reviews what is in front of it. It sees a diff and comments on style, obvious bugs, maybe a suspicious string concatenation. It does not know that this service handles health data, or that the previous incident was caused by a missing authorisation check on exactly this route.
A human reviewer knows some of that, on a good day, if they were on the project long enough. The knowledge lives in people and in documents, and review is where it leaks. Feeding the documents into the review step is a sensible use of the technology, and I think it is more valuable than another autocomplete.
I am less convinced by the framing that this makes security automatic. A model checking code against a spec will miss the case where the spec is wrong, or where the requirement changed and nobody updated the document. It catches drift between design and implementation, which I think is common. It does not catch a bad design.
There is also the question of who reads the review. An AI comment appears in the same thread as a colleague's, and a tired reviewer will accept it because it sounds specific. That is fine when the comment cites a real requirement, and dangerous when it paraphrases one. I would want every comment to name the document and the line it came from.
A version that works for a small team
You do not need Dash. You need a folder of decisions in the repository, in Markdown, with a clear naming convention. One file per decision: what we chose, what we rejected, and what must be true for the choice to hold. Then give your review tool access to that folder.
If you use an assistant locally, an MCP server that reads that folder is a weekend of work. If you use GitHub Actions, a pre-commit or pull request step can load the relevant files into the prompt before asking for a review. The trick is retrieval: do not paste forty documents into every request. Match on the paths touched by the diff and pull the two or three decisions that mention those areas. Once the folder passes a dozen files, add a small index that maps directories to decisions, or the matching step becomes a project of its own.
You also want a rule that the review output cites the decision it is enforcing. A comment that says 'this violates the encryption requirement' is useful. A comment that says 'consider encryption' is noise, and noise is how teams learn to ignore the tool.
The business argument
The post cites the old claim that fixing a vulnerability after release costs far more than fixing it during development, with a multiplier attached. I would treat the multiplier as folklore. The direction is right and the number is not something I would put in a budget.
What I would put in a budget is the cost of a missed control. A missing authorisation check on one endpoint can mean a breach notification, a legal review and a very bad week. The engineering fix might be ten lines. The imbalance is the argument, not a percentage.
The other argument is about hiring. A small team cannot staff a security specialist for every review, and this lets a generalist reviewer ask better questions. That is honest and it is the part I would repeat to a founder: the tool does not replace the specialist, it makes the specialist's checklist available when the specialist is not in the room.
What I would want to know before adopting it is how the system behaves when the documents contradict each other, which they will after a year. I would also ask what happens when a decision is superseded but the old file is still the one that search returns. That answer decides whether you get a useful reviewer or a machine that confidently quotes a decision you reversed in March.
Written with AI assistance, reviewed and edited by Do Minh Tuan.