Building with AI
Connect an assistant to your models via MCP: read runs and logs, match crash families, propose validated fixes — never bypass a check.
Why give an AI your namelists
A WRF configuration is a few hundred interacting parameters where the failure mode for a wrong combination is a crashed run you paid for. This course shows how an assistant can help diagnose those failures. An assistant that can read your model, your runs, and your logs — and knows every crash the platform has ever root-caused — turns “my run died, now what” from an evening of forum archaeology into a conversation.
The plumbing: MCP
The connection standard is MCP (Model Context Protocol): a small API that lets an AI client call named tools with typed arguments. frothy exposes one at mcp.frothy.surf. Mint a token in your account tab (it’s shown once; revoke any time), paste the one-line connect command into Claude, and the assistant can see exactly what you can see: your models, your runs, your logs — token scoping is per-account, and the tools check ownership on every call.
What the tools actually do
The read side: list your models; fetch any version’s four config files along with the live validation findings; list runs with their crash classifications; pull the tail of a run’s rsl.error — the file where WRF actually says why it died. Plus one deliberately opinionated tool: the crash corpus, every crash family the platform has root-caused, with its verdict matrix and verified remedy. An assistant that reads the corpus first doesn’t re-derive last month’s debugging from scratch — it recognizes the signature and names the fix.
The one write, and its guardrails
propose_update is the only tool that changes anything, and it can only do one thing: submit a complete set of config files as a new version of your model. The same validator that gates the editor gates the tool — a proposal with validation errors is refused, not saved. History is append-only, so nothing is ever overwritten; you review the new version in forge and decide whether to run it. The assistant cannot start runs, cannot spend credits, cannot touch another account’s models, and cannot bypass a single check.
A real diagnosis, start to finish
This exact loop closed the crash saga from the previous course. List runs: three failures, same classification, on two different versions. Get model: the supposedly-fixed parameter was still set — the remedy had never landed.Propose update: a new version, identical except the one flag, with a note citing the crash family and its evidence. The owner reviewed it in forge and ran it. When that run also died, the same tools pulled the logs that falsified the hypothesis — the logs let the assistant test and reject its own explanation.
Where this goes
Today the flow lives in a chat window next to forge. The direction is for it to move inside: a “fix with AI” button on a failed run that arrives pre-loaded with the crash class, the log tail, and the corpus match; suggestions that show up as reviewable diffs rather than paragraphs. The guardrails don’t change — validated proposals, append-only versions, you press run.