MCP Server
Instructions profile & watchdog
Tune the server's instructions for small local models, and measure real tool usage.
Instructions profile
The server's instructions string (which shapes how the model uses the tools) has two variants, selected by DOKKAI_MCP_PROFILE. The tool contracts are identical in both.
- Unset (default) — the original, concise instructions.
small-model— a more directive, anti-loop variant aimed at 3B-class local models: it points atgrep_projectfor known identifiers and tells the model to stop calling tools once it has enough information.
Session watchdog
The server always tracks per-tool call counts and response sizes for the running session and prints a summary (per-tool calls/chars/~tokens plus totals) to stderr on shutdown — no configuration needed. Useful to measure real tool usage against a token budget without instrumenting a client.