# how it works
MCP tools
Claude can call four tools: recall, remember, forget and stats.
The hooks inject very little: one handoff record, and at most 3 one-line memories per prompt. With picks on, a pick adds at most one more memory per prompt. This keeps prompts fast and Claude's context small. But sometimes Claude needs more:
- Claude needs the full text of a memory.
- Claude needs a memory that the gate blocked.
- You want to save a fact now.
A hook cannot help here, because Claude cannot call a hook. Claude can call an MCP tool.
The plugin also starts an MCP server, monot mcp. The server is the same binary, and it reads the same ~/.monot/. The plugin install configures the server, so you do nothing extra. The server gives Claude four tools:
recalltakes an address or some words. With an address, it returns the whole memory. A recall line that Monot cut to 200 characters still carries its address. So Claude callsrecallto read the rest. With other words,recallfinds the memories that match and skips the gate. It returns 5 memories, or up to 20 if Claude asks for more.rememberstores a new fact. Claude gives the fact a type, a scope and a description. The type isdecision,preference,pointer,stateorgotcha. The scope isrepoorglobal. The description states the fact with its main identifier in at most 150 characters. A longer description gets an error that gives its length, and Claude writes a shorter one.rememberrefuses a description or text that holds a secret.rememberstores the fact at once. Extraction also writes facts, after a session ends.forgetdeletes one fact that Monot wrote. Claude gives the address of the fact.statsshows one row of counts per day. Ask Claude how Monot did today or this week, and Claude answers from counts that stay on your machine.
The tools run only when Claude calls them. You do not call them yourself. Instead, you tell Claude, for example, "remember that the Windows runner kills tests after 60 s". Claude then calls remember.
Allow the tools
Claude sees the tools as mcp__plugin_monot_monot__recall, __remember, __forget and __stats. Claude Code has a "don't ask" permission mode. In that mode, Claude Code denies these tools until you allow them. For example, you can allow them in ~/.claude/settings.json:
{
"permissions": {
"allow": [
"mcp__plugin_monot_monot__recall",
"mcp__plugin_monot_monot__remember",
"mcp__plugin_monot_monot__forget",
"mcp__plugin_monot_monot__stats"
]
}
}