How regex-constrained sampling and grammar-guided decoding actually work at the token level, why prompt-only JSON mode fails 5–20% of the time in production, and the full toolchain for guaranteed structured output: Outlines, XGrammar, vLLM guided decoding, and Instructor.
Engineering
-
Constrained Generation: Outlines, JSON Mode, and Structured Output That Works -
MCP Deep Dive: Servers, Resources, and Tools A thorough technical walkthrough of the Model Context Protocol: how JSON-RPC over stdio and HTTP works, building servers with FastMCP and the TypeScript SDK, implementing tools and resources, the sampling primitive, security threat model, and production deployment patterns.