01 / AGENT + MCP
Terracotta
Product design · UI · agent/API implementation · deployment
Public source · personal prototype
- Model routing
- Tool loop
- MCP / approval
- Result + trace
Problem
Switching between models and work tools fragments task context, execution permissions and cost accounting.
Design and changes
Implemented provider-specific tool loops and MCP connections. The agent path waits for approval on write tools, limits rounds and calls, and stores execution traces and usage.
Evidence
Published MCP initialize → tools/list → tools/call code, OAuth PKCE and token encryption, D1 persistence, and Docker/GHCR publication history.
Scope
An HTTP implementation targeting MCP 2025-11-25. Compatibility across services, approval enforcement at every API entry point, and A2A are not verified. Cost benchmarks are offline policy simulations.

