dehu
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEHU_MCP_HOME | No | Overrides the app data / home folder used by dehu-mcp. | |
| DEHU_MCP_PROFILE | No | Profile name used to select among several configured certificates/people (configured per profile with `setup --profile <name>`). | |
| DEHU_MCP_NTFY_URL | No | ntfy URL for optional phone push notifications, e.g. https://ntfy.sh/<long-random-topic>. | |
| DEHU_MCP_P12_PASSWORD | No | Certificate password for headless servers without an OS keyring. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Spanish government notifications (DEHú) for the configured certificate holder. Data comes from a local store refreshed by a background sync; call sync_now for fresh data. PENDING notifications are never opened by these tools: opening one counts as legally notified and starts deadlines (if never opened, it is deemed notified 10 calendar days after being made available) — tell the user and let them decide. If nothing is configured, tell the user to run dehu-mcp setup --p12 <file> in a terminal.
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
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| certificate_statusC | Configured certificate/profile, its expiry, and recent sync runs. |
| sync_nowB | Log in to DEHú with the certificate (headless Cl@ve) and refresh notifications and communications. Downloads PDFs of realized notifications and read communications. since=YYYY-MM-DD to (re)import history. |
| pending_notificationsA | Notifications waiting to be opened (as of the last sync). Only lists them — opening is a legal act. |
| list_notificationsA | Realized (accepted or expired) notifications, newest first. since=YYYY-MM-DD; emitter = substring of the issuing body (e.g. 'Tributaria', 'Extranjer', 'Seguridad Social'). |
| list_communicationsC | Communications (informative, no legal effect), newest first. state PENDIENTE = unread. |
| document_textC | Text of a downloaded notification/communication PDF (by sentReference) plus its file paths. |
| read_communicationA | Mark an UNREAD communication as read in DEHú and download it. Communications have no legal effect, but this changes state in the user's account — only call with confirm=True after the user agrees. Never used for notifications. |
| recent_changesC | What changed (new pending notifications, new notifications/communications, sync problems) in the last N hours. |
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 8 tools
Most tools are cleanly separated: pending vs. realized notifications are split by state, and communications vs. notifications are explicitly disambiguated in descriptions. Minor overlap remains between sync_now (which downloads PDFs), read_communication (which also downloads), and document_text (which reads downloaded PDFs), so an agent could hesitate about which download path to use.
Two clear verb_noun tools (sync_now, read_communication) coexist with bare noun phrases (certificate_status, document_text, recent_changes) and adjective_noun forms (pending_notifications), while only the list_* pair is internally consistent. The names are still readable and largely self-explanatory, but there is no single predictable pattern.
Eight tools is well within the sweet spot and each maps to a distinct step in the DEHú workflow: inspect credentials, sync, list three streams, extract text, acknowledge, and summarize changes. Nothing feels padded or missing at the count level.
The read-side surface is solid (pending, realized, communications, document text, change digest), but the central legal action — opening/accepting a pending notification — has no tool at all, and there is no way to act on or dismiss individual notifications. An agent can observe the inbox but hits a dead end at the most consequential step, which may be intentional but leaves a notable gap.