Guest on AI Engineer.

Generative UI... in Python? — Jeremiah Lowin, Prefect
Sep 10, 2026 · 17:38
Jeremiah Lowin, founder and CEO of Prefect and author of FastMCP, explains how MCP apps — a protocol extension introduced in January that lets tool results bypass the agent and reach users as HTML, CSS, and JavaScript — led him to build Prefab, a Python DSL for shipping UIs from MCP servers. Because FastMCP's users are mostly Python engineers in enterprises sharing tables, forms, and charts, he refused to pretend to ship React from Python and instead scoped the problem to composing pre-built components via nested context managers and reactive variables. Lowin argues the JSON serialization in the middle is the real point, since a serializable UI can be generated, received, or edited by an agent. His team also found the Python representation is about 70% smaller than JSON, so they now stream Python over the wire and convert it in a sandbox, and the Prefab docs are rendered entirely in Prefab with live-editable examples.

Your MCP Server is Bad (and you should feel bad) - Jeremiah Lowin, Prefect
Jan 12, 2026 · 54:33
Jeremiah Lowin, CEO of Prefect and creator of FastMCP, argues that most MCP servers are poorly designed because they are simply REST API wrappers, leading to confused LLMs and wasted tokens. He presents a framework for agent-native product design based on three dimensions—discovery, iteration, and context—and offers five actionable principles: outcomes over operations, flatten arguments, treat instructions as context, respect the token budget, and curate ruthlessly. Lowin emphasizes that agents fail when given too many tools or complex arguments, citing a hard limit of 50 tools per agent for reliable performance. He shares real-world examples, including a company with 800 endpoints that could not be effectively exposed, and critiques client implementations like Claude Desktop for not respecting spec-compliant features. The central takeaway: MCP servers should be designed as user interfaces for agents, not as developer APIs.
Powered by PodHood