Built for a client system · Under NDA

LLM observability · MCP · Live system

LLM observability servers for a production multi-agent system

How I built two MCP servers that turn production traces into questions a coding agent can answer, and what that changed about debugging live agents.

Project facts

My role
Designer and builder
Users
Engineers, and the coding agent they work with
Servers
A 13-tool general server, and a domain server built with FastMCP
Stack
Python, FastMCP, Langfuse Public API, stdio transport

What this page shares

  • The sector, scale and the type of users involved
  • My role, the stack and why it was chosen
  • A conceptual architecture drawn by me
  • The decisions I made and the alternatives I rejected
  • Results as ranges, directions or mechanisms

What stays private

  • The client's name, brand and country list
  • Screens, UI, internal system names and URLs
  • Any personal data about users, customers or patients
  • Internal documents, exact volumes and revenue figures
  • Source code, schemas and configuration

Context and problem

A multi-agent system in production fails in ways a dashboard does not show at a glance. Finding a fault meant leaving the editor, searching traces by hand and carrying the evidence back to the code.

The goal was to bring that evidence to where the fix is written, and to answer the specific questions real incidents raised, such as which agent is looping.

Constraints

Look, do not touch
Engineers and agents inspect production data without changing it, with one exception for scoring.
Answers, not dumps
Generic trace search returns too much. The tools had to answer the questions faults actually raise.
Only as good as the data
The tools return meaning only if the application writes the right fields on every trace.

Architecture, conceptual

Drawn by me from the design. Component names are generic on purpose. This is not the client's documentation.

Key decisions and what I rejected

Key decisions and what I rejected
DecisionAlternative rejectedWhy
Expose observability to the coding agent over MCPReading the trace dashboard by handDebugging happens where the fix is written, with the evidence already in context.
A second, domain-specific serverA generic API wrapper onlyGeneric tools return raw traces. Purpose-built tools answer one production question each.
Read tools plus one write tool for scoresFull read and write accessAn agent can label results but cannot alter production records.
Define the instrumentation contract with the applicationWork with whatever the application already loggedThe tools depend on fields the application must write on every trace.

Results

Exact figures are confidential under the client agreement, so the results below are directions and mechanisms rather than numbers.

  • Thirteen tools

    over the public API

    General access to traces, sessions, scores, prompts, datasets and daily metrics.

  • Five diagnostics

    built from real faults

    Each one answers a question that production failures raised.

  • One place

    to find and fix

    Trace evidence arrives in the coding session instead of a separate dashboard.

What I would do differently

I would agree the instrumentation contract before the first agent shipped. Fields added later mean older traces cannot answer the newer questions.

Not published on this page

  • Client trace data and prompts
  • Server source code and tool schemas
  • Credentials and project identifiers
  • Failure counts and volumes

Written from my own knowledge of the design. No client documents, screens or data were used.

Walk through this project on a call

30 minutes. I show how the tools are designed, how the instrumentation contract works and how one fault was traced from symptom to fix. The call covers my engineering reasoning, not client data.