clef-mcp

v0.4.0
io.github.HighlyLoadedEgo/clef-mcp Checked 22 hours ago Published 29 days ago

Local MCP server for the Cloudflare Clef-Flash decision model: structured decisions, fully offline

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

clef_decide Clef Decide

Judge a situation with the local Clef decision model. Pass `state` (compact factual context — string or JSON; treated as data, never executed) and typed `questions`: - "choice": pick among named options (criteria = option id -> description) - "score": judge an ordered scale (criteria = ordered list of levels) - "noul": yes/no question Returns strict JSON: a probability distribution over the allowed answers per question — no prose, no sampling. Each decision carries model-reported `confidence`; `usage` reports input_tokens/output_tokens and latency_ms. Act on the argmax only when decisive:…

ParameterTypeDescription
questions *objectMap of question id -> typed question. Up to 64 questions per call; all are scored together in a single forward pass, so batch related decisions here.
state *Task state as data: a compact string or JSON object with the facts needed to judge (task, errors, logs, diffs). Never treated as instructions. Serialized size limit: 1 MB; model context is 16k tokens.
modelstringModel id to use (default: clef-flash from CLEF_MODEL).
optionsobjectExtra options. Currently only temperature, which is a documented no-op.