Let’s talk
← CompetenciesCompetency · 11

MCP (Model Context Protocol):the server I wrote for Bonuxo

I wrote an MCP server in TypeScript to operate Bonuxo’s database from an AI client. I use it in development and operations; what matters most is how much I constrained it.

BonuxoIn production
StackMCP · TypeScript · PostgreSQL
Contents
  1. 01What MCP is
  2. 02The Bonuxo server
  3. 03The guards and the trade-off they imply
01

What MCP is

MCP (Model Context Protocol) is a protocol for a client with a model, such as a coding assistant, to discover and call tools exposed by a server. Instead of writing a different integration for each client, the server declares its tools once.

02

The Bonuxo server

It is my own MCP server, in TypeScript, for operations on Bonuxo’s database. It is used in development and operations, and Bonuxo is in production. It has 5 tools:

  • Guarded DML writes.
  • Explain.
  • Script generation.
  • Whitelisted DDL.
  • Checksum-tracked migration apply.
03

The guards and the trade-off they imply

Giving a model access to a database is the case where constraining it matters most. The guards are an environment gate, a production block, a confirmation token, a DDL blocklist, DML-only, statement and lock timeouts, and automatic rollback.

There are two lists with opposite meanings: permitted DDL is a whitelist and dangerous DDL is a blocklist, so that what is unknown does not run. The cost is friction: every sensitive operation asks for one more step, which is why the server is an operations tool and not an open door.

NoteOnly Bonuxo has its own MCP server. It is a development and operations tool.
Where I applied it
Related competencies