Making Envoy AI-Native: High-Performance Architecture for LLMs, MCP, and AI Agents
summary
Proposal builds a new Envoy layer called Native AI Support (issue #44681) that replaces ad hoc HTTP filters with a centralized AI protocol parser handling Gemini, OpenAI, Anthropic, MCP/A2A auth, transcoding and model routing. It implements a three-layer streaming parser built on Woof that tokenizes JSON, extracts routing/auth fields into small memory, and offloads large payloads to external buffering to avoid OOMs. Result is unified token accounting, transcoding to REST/MCP backends, lower CPU/memory overhead, and consistent governance.
AI-written summary · about
