io.github.ragbase/ragbase-shield
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RAGBASE_SHIELD_NER | No | Set to `off` to turn off the optional name recognition model. | |
| RAGBASE_SHIELD_HOME | No | Data folder (default `~/.ragbase-shield`, or `%LOCALAPPDATA%\ragbase-shield` on Windows). | |
| RAGBASE_SHIELD_PORT | No | Shield Desk port. | 7878 |
| RAGBASE_SHIELD_LOCALE | No | Set to `en` for English code labels (PERSON_A, COMPANY_A) instead of PERSONNE_A, SOCIETE_A. | |
| RAGBASE_SHIELD_KEYRING | No | Set to `0` to keep the key in a 0600 file instead of the OS keychain. | |
| RAGBASE_SHIELD_LANGUAGE | No | Pins the language instead of detecting it per text. | |
| RAGBASE_SHIELD_MASK_TOQUE | No | Set to `0` to keep lawyers' "toque" numbers visible (masked by default). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
RAGbase Shield protège les données des clients de l'utilisateur par une pseudonymisation locale et réversible. Vous ne voyez que des codes : DOSSIER_1, DOC_3, PERSONNE_A, SOCIETE_B, ADRESSE_1, EMAIL_2, IBAN_1, RG_1... Les vraies valeurs restent sur l'ordinateur de l'utilisateur.
Règles :
Travaillez uniquement avec les outils Shield : shield_list_dossiers, shield_list_documents, shield_read_document, shield_search. N'utilisez jamais un autre outil (lecture de fichier, terminal, recherche) sur un dossier enregistré.
Ne demandez jamais à l'utilisateur les vrais noms, adresses ou numéros. Ne les écrivez jamais, même si vous croyez les deviner.
Dites à l'utilisateur de ne pas coller de texte client brut ni de joindre de fichier dans la conversation : ce contenu part chez le fournisseur avant que Shield puisse agir. Il doit connecter le dossier dans Shield Desk.
Recopiez les codes à l'identique (PERSONNE_A, jamais « Personne A »). N'inventez pas de code.
Enregistrez le document final, rédigé avec les codes, avec shield_save_draft. Shield remet les vrais noms sur l'ordinateur et renvoie seulement un identifiant OUTPUT_n.
Dites ensuite à l'utilisateur que le fichier restauré est dans le dossier « Shield - sorties » de son dossier client, et qu'il doit l'ouvrir sur son ordinateur.
Une session Shield travaille sur un seul dossier client : le premier dossier ouvert. Pour un autre dossier, l'utilisateur ouvre une nouvelle session (dans Claude Desktop : quitter puis relancer l'application).
RAGbase Shield protects the user's client data with local, reversible pseudonymisation. You only see codes (DOSSIER_1, DOC_3, PERSONNE_A, SOCIETE_B, IBAN_1...); the real values stay on the user's computer. Rules: work only through the Shield tools and never use other file, shell or search tools on a registered dossier; never ask the user for real names, addresses or numbers, and never type them; tell the user not to paste raw client text or attach files in the chat (connect the dossier in Shield Desk instead); copy codes exactly and never invent one; save the final document, written with codes, with shield_save_draft; then tell the user the restored file is in the "Shield - sorties" folder of the client dossier, to open on their computer. One Shield session works on one client dossier only (the first one opened); another dossier needs a new session (in Claude Desktop: quit and restart the app).
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 |
|---|---|
| shield_list_dossiersA | List the registered client dossiers by code (DOSSIER_1, DOSSIER_2...) with document and entity counts. Never shows real dossier titles. Liste les dossiers clients par code. |
| shield_list_documentsA | List the documents of a dossier by coded id (DOC_n) with masked file names, type and size. Liste les pièces d'un dossier (identifiants DOC_n, noms masqués). |
| shield_read_documentA | Read one document of a dossier, masked on this computer. Returns the text with codes (PERSONNE_A, SOCIETE_B, IBAN_1) instead of the real values. Long documents come in pages: call again with the returned start value. Lit une pièce masquée, page par page. |
| shield_searchA | Search the documents of a dossier locally. Codes in the query (PERSONNE_A) match every mention of that entity. Returns masked snippets only. Recherche locale, extraits masqués. |
| shield_save_draftA | Save the final draft (written with codes) into the dossier's 'Shield - sorties' folder. Real names are restored on this computer only; the tool returns a coded file id (OUTPUT_n) and the size, never the restored text. Enregistre le projet final ; les vrais noms sont remis sur l'ordinateur uniquement. |
| shield_statusA | Show the Shield version, the detection mode and its honest limits. Version, mode et limites. |
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 6 tools
Each tool covers a distinct step of a clear hierarchy: status, dossier listing, document listing, document reading, search, and draft saving. list_dossiers vs list_documents is unambiguous because one is a parent of the other, and read_document (single full doc) is clearly separated from search (snippet-level query).
All six tools share a single shield_ prefix and use snake_case, giving a predictable pattern. The only minor deviation is shield_status (a noun, not a verb_noun), while all others follow verb_noun like list_dossiers or save_draft.
Six tools is a tight, well-scoped set for a masked-document reader: each tool corresponds to a necessary step in the workflow (orient, browse, read, search, output). No tool appears redundant or out of place.
The read-side lifecycle is fully covered, including status, dossier and document enumeration, paged reads with continuation, and search. Minor gaps remain on the write side: there is no way to list or reopen previously saved outputs (OUTPUT_n) or to add/register new documents, which could dead-end an agent revisiting prior drafts.