MiniCTRM - Build Tutorial 653: An MCP server for your system: the desk's questions and actions as tools
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
An MCP server in your own language beside your back end, designed before it was built: a dozen desk tools and two over the scripting façade, every one a client of your API as the asking person with a personal API token and their privileges; write tools that rehearse through the preview and act only on a confirm tied to the rehearsal by an idempotency key; an append-only record of every call on the Security screen; server instructions, a tool-list budget test, the rules in CLAUDE.md, a help topic for your users, and a conversation you have had with your own system.
Design before code – An assistant, a tool and a protocol from zero; the three ways to give an AI a system, with MiniCTRM's verdicts; the tool list and its rules, on paper first.
The server, read-only tools first – A sidecar in your language with the official SDK, two pipes, a personal API token with the asking person's privileges, and a protocol-level check.
Writes: rehearse, then confirm – Every write tool previews first and acts only on a confirm tied to its rehearsal; every call recorded in a table nobody can edit.
The long tail through the façade – describe_api over your glossary, sliced small, and run_script over your runner, rehearsing by default; the instructions the server hands the model.
Connect, the rules, then ship – Claude Code and Claude Desktop connected, a budget on the tool list, the rules into CLAUDE.md, a help topic for your users, a real conversation; then /ship.
How MiniCTRM did it – Six tools over the API Glossary, desk tools in front, and an honest table of the two servers side by side.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
The desk's questions, asked in plain words
1 / 16Design before code
An assistant, a tool and a protocol
2 / 16Design before code
Three ways to give an AI your system
3 / 16Design before code
Design before code
4 / 16The server, read-only tools first
A sidecar, a token, and two pipes
5 / 16The server, read-only tools first
The server, read-only tools first
6 / 16Writes: rehearse, then confirm
Rehearse, then confirm; and the record
7 / 16Writes: rehearse, then confirm
Writes that rehearse, and the record
8 / 16The long tail through the façade
The long tail, through the façade
9 / 16The long tail through the façade
describe_api and run_script
10 / 16Connect, the rules, then ship
Connecting an assistant, and the rules that keep it honest
11 / 16Connect, the rules, then ship
Connect, the rules, the help, and a conversation
12 / 16Connect, the rules, then ship
Ship it
13 / 16How MiniCTRM did it
Six tools over a glossary, and desk tools in front
14 / 16How MiniCTRM did it
Your server beside MiniCTRM's, honestly
15 / 16What you have now
What you have now
16 / 16
You have finished lesson 653, An MCP server for your system: the desk's questions and actions as tools.