human-voice-writer
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VOICE_HOME | No | Directory where everything lives (models, datasets, exports). Defaults to ~/.voice/; set VOICE_HOME to move it. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Train a small LLM on the user's writing, locally, then rewrite drafts in their voice. Setup order: voice_setup (diagnostic) → show the user the plan and ask once: go, customize or add a source → collect canonical records into ~/.voice/raw → voice_prepare → voice_add_pairs → voice_train → voice_eval. Use voice_humanize before sending any outreach. Never quote raw personal messages back to the user or into logs.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| voice_setupA | Diagnostic + setup. Detects hardware, lists the models that can train here (default first), scans the usual places for local sources (exports, app databases, note folders; paths only, never contents), installs local deps and registers this MCP. Show the user the plan before collecting anything. Call again with model= to apply the user's model choice. |
| voice_prepareB | Import the canonical records the agent wrote to ~/.voice/raw/*.jsonl ({text, is_me, from, to, thread, channel, ts}), group chat bursts, de-identify (user's own name/company kept), drop sensitive messages, dedupe, hold out a test set. Re-run with extra_redact=["Nickname", "Acme=COMPANY"] to redact leftovers the detector missed. Returns stats, a sample + leak candidates to check, and the messages that need AI-style rewrites. |
| voice_add_pairsB | Save AI-style versions you wrote: pairs=[{"id": "...", "ai": "..."}] or path to a JSONL file of the same. Placeholders, numbers and links must match the real message exactly. Returns progress and the next batch. |
| voice_trainA | LoRA fine-tune on this machine only (MLX or local NVIDIA). base_model is a catalog id (tiny, tiny-q3, small, small-alt, medium, medium-alt, large); default comes from the hardware. Refuses models that are not practical here. wait=false returns a job id (poll voice_status). |
| voice_evalA | Automatic eval on held-out messages: style distance, local AI-detector, fact lock, local style-prompt baseline. First call returns judge pairs + baseline tasks; second call with judge_answers={pair_id: 'a'|'b'} and baseline_outputs={id: text} returns pass/fail and a suggested fix. |
| voice_humanizeA | Rewrite a draft in the user's voice. channel: any channel the model learned (voice_status lists them, e.g. whatsapp, linkedin, imessage) or the generic message / post / email. Message channels (DMs, chats) can come back as a list of short messages; posts and email are one block. Names, numbers, links and the ask are locked; regenerates if a fact changes. |
| voice_statusC | Models, active default, last eval scores, dataset stats and running training jobs. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool maps to a distinct pipeline stage (setup, status, prepare, add_pairs, train, eval, humanize), so an agent can mostly tell them apart. Minor overlap: setup and status both surface model/default info, and prepare vs add_pairs both touch datasets, though descriptions differentiate them.
All seven tools use a uniform voice_ prefix with a clear verb/noun or verb form (voice_setup, voice_status, voice_prepare, voice_add_pairs, voice_train, voice_eval, voice_humanize). The convention is predictable and consistent throughout.
Seven tools is well-scoped for a fine-tuning-plus-generation pipeline. Each tool earns its place as a discrete stage with no bloat.
The surface covers the full lifecycle: setup, monitoring, data prep, pair authoring, training, evaluation, and generation. Minor gaps exist (no delete/reset, model export, or dataset cleanup), but core workflows are fully closed.