clef-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLEF_HOME | No | Cache/model home | ~/.cache/clef-mcp |
| CLEF_MODEL | No | Model id (`clef_decide` also accepts a per-call `model`) | clef-flash |
| CLEF_RUNTIME | No | Inference runtime (v0.1: only llama-cpp) | llama-cpp |
| CLEF_LLAMA_BIN | No | Explicit path to a `llama-server` binary | |
| CLEF_LOG_LEVEL | No | `error` | `warn` | `info` | `debug` (logs go to stderr) | error |
| CLEF_MAX_QUESTIONS | No | Max questions per call | 64 |
| CLEF_MAX_STATE_BYTES | No | Max serialized `state` size | 1048576 |
| CLEF_LLAMA_RELEASE_TAG | No | Pin the managed llama.cpp build, e.g. `b11378` | latest nightly |
| CLEF_MAX_INSTRUCTION_CHARS | No | Max chars per question instructions | 10000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| clef_decideA | Judge a situation with the local Clef decision model.
Pass
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| incident-triage | Frame a production incident as clef_decide questions: immediate action, severity and blast radius. |
| next-action | Ask Clef what the coding agent should do next on a task: inspect, modify, test or ask the user. |
| ticket-routing | Classify an incoming message into the team that should handle it. |
| security-review | Ask Clef whether a code snippet, change or setup smells like a security problem. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| capabilities | Live capability snapshot: model, runtime, limits, error codes. |
| evals-schema | How to write cases for clef-mcp evals. |
| evals-dataset | The 30-case dataset shipped with clef-mcp. |
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection; its purpose (querying a local decision model and returning probability distributions) is stated unambiguously.
The lone name clef_decide follows a clear prefix_verb snake_case pattern consistent with the server name, so no convention mixing is possible.
A single tool is thin for a server surface, though the tool is intentionally consolidated and supports batching up to 64 questions in one forward pass, which mitigates the count.
The core decision workflow (choice/score/noul questions, batching, model override, usage reporting) is fully covered, but there is no way to enumerate available model ids or check model availability/status before calling.