MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 611 Scripting: an editor, a public API with a glossary, hooks on save, 623 Integrations: CSV in and out, feed adapters and the API, 633 Security: sign-in, privileges on every endpoint, audit, secrets.

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 / 16
The desk's questions, asked in plain words
Design before code

An assistant, a tool and a protocol

2 / 16
An assistant, a tool and a protocol
Design before code

Three ways to give an AI your system

3 / 16
Three ways to give an AI your system
Design before code

Design before code

4 / 16
Design before code
The server, read-only tools first

A sidecar, a token, and two pipes

5 / 16
A sidecar, a token, and two pipes
The server, read-only tools first

The server, read-only tools first

6 / 16
The server, read-only tools first
Writes: rehearse, then confirm

Rehearse, then confirm; and the record

7 / 16
Rehearse, then confirm; and the record
Writes: rehearse, then confirm

Writes that rehearse, and the record

8 / 16
Writes that rehearse, and the record
The long tail through the façade

The long tail, through the façade

9 / 16
The long tail, through the façade
The long tail through the façade

describe_api and run_script

10 / 16
describe_api and run_script
Connect, the rules, then ship

Connecting an assistant, and the rules that keep it honest

11 / 16
Connecting an assistant, and the rules that keep it honest
Connect, the rules, then ship

Connect, the rules, the help, and a conversation

12 / 16
Connect, the rules, the help, and a conversation
Connect, the rules, then ship

Ship it

13 / 16
Ship it
How MiniCTRM did it

Six tools over a glossary, and desk tools in front

14 / 16
Six tools over a glossary, and desk tools in front
How MiniCTRM did it

Your server beside MiniCTRM's, honestly

15 / 16
Your server beside MiniCTRM's, honestly
What you have now

What you have now

16 / 16
What you have now

You have finished lesson 653, An MCP server for your system: the desk's questions and actions as tools.

Where next?

← → move · N notes · Home / End