Rendering MCP Tool Results as ChatKit Widgets in Rails

OpenAI’s ChatKit has a Python SDK. I’m using Rails. Here’s how I bridged MCP tool results to ChatKit widgets, with architecture decisions, extraction logic, and lessons from letting AI agents write most of the code.

December 7, 2025 · 9 min · Rida Al Barazi