Context: IplanRioPeriod: 2025–2026
in production

EAí gateway and the city's MCP server

The bridge between citizens on WhatsApp and the city's AI agents.

My role

Second-largest contributor to the gateway, contributor to the MCP server and author of most of the evals and prompts API in 2025.

500 → 50 ms
average latency versus the Python version
220
of my commits on the evals API in 2025
SPAN 01 // CONTEXT

Problem

The EAí assistant takes text and voice messages over WhatsApp. The Python gateway had become a bottleneck, and the agents needed standard access to city tools.

SPAN 02 // IMPLEMENTATION

Solution

I worked on the Go rewrite of the gateway. The webhook answers 202 and enqueues to RabbitMQ, and workers call Google Agent Engine or Letta, with voice notes transcribed through Speech v2 first. On the official MCP server I built hybrid token verification (Keycloak JWT or service token), stateless HTTP transport so it runs with multiple replicas, and the web search tool backed by Surkai.

SPAN 03 // DETAILS

Highlights

  • Consumers re-register after a RabbitMQ drop, with backoff retries and dead-lettering.
  • MP3, OGG, OPUS, M4A and other formats are transcribed before reaching the agent.
  • The citizen data service calls the MCP server to find each person's family health clinic automatically.
  • An API to version agent system prompts with history and to run evaluations.
SPAN 04 // OUTCOME [200 OK]

Result

According to the team, average gateway latency dropped from about 500 ms to 50 ms compared with the Python version.

Quick actionsSwitch language to Português (PT-BR)
PT-BR
Quick actionsToggle light / dark theme
THEME
Quick actionsDownload résumé in Portuguese (PDF)
PDF · PT-BR
Quick actionsDownload résumé in English (PDF)
PDF · EN
Quick actionsCopy email address (fredzolio.dev@gmail.com)
COPY
NavigationProduction services and featured work
#servicos
NavigationAll projects
/en/projects/
NavigationCareer timeline
#carreira
NavigationTalks, hiring, documentation & open source
#atuacao
NavigationSkills & tooling
#stack
NavigationAcademic background, courses & languages
#formacao
NavigationContact & résumé
#contato
Projects & case studiesRio Queue
IplanRio · in production
Projects & case studiesPublic service search and recommendations
IplanRio · in production
Projects & case studiesCourses, jobs and employability API
IplanRio · in production
Projects & case studiesSuperApp load test
IplanRio · internal
Projects & case studiesNota Carioca data pipelines
IplanRio · in production
Projects & case studiesGCP cost investigation and Billing Guard
IplanRio · in production
Projects & case studiesEAí gateway and the city's MCP server
IplanRio · in production
Projects & case studiesCoding agent platform for developers
IplanRio · internal
Projects & case studiesAgents for infrastructure operations
IplanRio · internal
Projects & case studiesCity chatbot integrations
IplanRio · in production
Projects & case studiesGo email worker
IplanRio · in production
Projects & case studiesExecutive meeting room displays
IplanRio · in production
Projects & case studiesAlliomed
Vizo · in production
Projects & case studiesMaestro, a coding agent delivery pipeline
Vizo · internal
Projects & case studiesProventus
Vizo · in use by customers
Projects & case studiesSienge SaaS RPA
Vizo · sold
Projects & case studiesAWS infrastructure assessment
Vizo · client work
Projects & case studiesPLANEHAB Nosso Bairro
Freelance · live
Projects & case studiesConecta Solar
Freelance · live
Projects & case studiesVardis
Freelance · client work
Projects & case studiesLivinHub
Freelance · client work
Projects & case studiesNDC Nexus
New Data Company · prototype
Projects & case studiesWhatsApp group monitor
New Data Company · prototype
Projects & case studiesInternal ERP
New Data Company · internal
Projects & case studiesJungle Wallet
Personal · open source
Projects & case studiesZolioLab
Personal · internal
Projects & case studiesOSCE Cirurgia
Personal · prototype
Projects & case studiesENEM essay grading spike
Personal · experiment
Projects & case studiesGamePixzo
Personal · prototype
Projects & case studiesSurkai
Personal · open source