Studio Egregori

mcp-chat

A small testbed for watching a model use tools. Every call, argument, result, and failure stays visible.

View sourceSetup instructions

Why I built it

My MCP servers had passing tests, but I still needed to see what a model would do with their responses. mcp-chat runs that interaction and exposes the evidence behind the answer.

My role: I built the testbed with AI assistance, exercised my own servers through it, and used the failures to change their responses and add regression coverage.

TypeScript · React · MCP over stdio · Ollama, Anthropic, OpenAI-compatible providers

A real run

mcp-chat showing a housing question, two successful tool calls with their record-scope notes, and the model's answer: 121 open violations and the registered owner company.
A run from November 11, 2026: a local model, the NYC Housing server, two tool calls. The figures are what the city’s records returned that day and will have changed since. This run succeeded; the failures that led to the fixes are described below. Token and timing notes.

What it found

  • A printing mistaken for a first appearance. A card lookup returned one printing; the model treated its set as the card’s debut. The server now identifies the returned printing and the first printing separately.
  • A wrong borough turned into “no match.” The model guessed a borough and accepted a correct zero. The housing server now identifies where the address is registered.
  • A correction the model ignored. A note pointing to the right borough was insufficient. Returning that borough’s numbers inline gave the model the data it needed.

These are three observed failures from the documented runs. They show why I test the model-and-tool interaction as well as the server. The published housing adapter includes pinned wrong-borough regression tests.

How it works

The published runtime starts local MCP servers, checks top-level argument names and types before each tool call, and streams the interaction to the browser. Failed calls remain failed cards. Debug mode shows logical model messages, tool names, token counts and timing for each turn. The argument checks are a subset of JSON Schema validation; the debug view does not capture the exact provider wire payload.

This is a local developer testbed. It has no accounts or remote hosting layer, and saved traces are unredacted. Use an established MCP client for everyday chat.

Run it locally → · Explore the civic servers →