cap-shield
io.github.robinlidberg-dot/cap-shield
Serveur MCP OK 15 outils
Context selection and compression for AI agents - recall measured, not claimed.
Fiche technique
- Auteur
- robinlidberg-dot (espace de noms du registre)
- Dépôt
- github.com/robinlidberg-dot/cap-shield-mcp
- Site
- cap-shield-robin.fly.dev
- Version
- 0.7.6
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://cap-shield-robin.fly.dev/mcp Streamable HTTP
- Paquets
- cap-shield 0.6.2 pypi stdio
- Outils
- 15
- Catégories
- IA, agents et mémoire
- Dernière mise à jour
- 26 nov. 2026
- Publication
- 26 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.robinlidberg-dot/cap-shield)<a href="https://latlas.dev/mcp/io.github.robinlidberg-dot/cap-shield"><img src="https://latlas.dev/badge/fiche/io.github.robinlidberg-dot/cap-shield.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://cap-shield-robin.fly.dev/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:11
- Temps de réponse
- 2 096 ms (initialize + tools/list)
- Version du protocole
- 2024-11-05
- Nom annoncé
- cap-shield 0.7.6
- Outils
- 15
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:11 | OK | 2 096 ms | 15 |
Outils exposés (15, réponse à tools/list, 28 nov. 2026)
measure_traffic
Measure possible savings
Measure how much of your own agent traffic could be saved. NO ACCOUNT OR KEY NEEDED — use this first. Returns byte savings over the wire and, if a query is given, token savings from selective context retrieval. Nothing is stored: the text is compressed in memory and discarded. Rate limited to 20 calls per hour per IP.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| texts | array<string> | oui | Your actual messages. 200 max. |
| query | string | non | Optional. What your agent would search its memory for. Given this, token savings are measured too. |
| dict_id | string | non | Which trained dictionary to measure against. Call list_packages to see the options and their measured figures. |
list_packages
List compression packages
List the available dictionaries with their MEASURED compression, including the ones that perform badly. Each entry says whether it works one message at a time or only batched, and how many messages came out LARGER. No key needed.
Aucun paramètre.
remember
Store a memory entry
Store a memory entry for later retrieval. REQUIRES A KEY (or a sandbox_key from start_sandbox). This does not call any language model — it stores text in an isolated per-tenant archive. Use assemble_context to get relevant entries back.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | Groups related memories. |
| text | string | oui | |
| item_id | string | non | Optional. Same id overwrites the entry. Omit for a generated one. |
| ttl_days | integer | non | Optional. After this many days, assemble_context stops selecting this entry. It is not deleted, just no longer chosen. Omit to keep it eligible indefinitely, as before this field existed. |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
remember_batch
Store many memory entries
Store up to 100 memory entries in ONE call. REQUIRES A KEY (or a sandbox_key from start_sandbox). Counts as one call against the rate limit and one packet per entry against the monthly quota, so prefer it over many remember calls. All or nothing: duplicate ids or a blocked entry reject the whole batch before anything is stored. Does not call any language model.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | Groups related memories. |
| items | array<object> | oui | |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
list_memories
List stored memory
List what is stored, newest first, with a short preview of each entry and its item_id. REQUIRES A KEY (or a sandbox_key from start_sandbox). Omit namespace to list your namespaces instead. Use the item_id with update_memory or forget. Read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | non | Omit to list namespaces. |
| offset | integer | non | |
| limit | integer | non | Default 50. |
| tag | string | non | Only entries with this tag. |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
update_memory
Replace a memory entry
Replace the text of an EXISTING memory entry. REQUIRES A KEY (or a sandbox_key from start_sandbox). Fails with MEMORY_NOT_FOUND if the item_id does not exist (use remember to create). The previous text is kept in the entry's version history; created date and tags are kept.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | |
| item_id | string | oui | |
| text | string | oui | |
| ttl_days | integer | non | Optional. Omit to keep the current expiry. |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
forget
Delete memory entries
Permanently delete up to 100 memory entries, including their version history. REQUIRES A KEY (or a sandbox_key from start_sandbox). Cannot be undone. Unknown ids are reported in not_found, not treated as an error.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | |
| item_ids | array<string> | oui | |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
assemble_context
Retrieve relevant memory
Retrieve the memory entries that answer a question, within a token budget. REQUIRES A KEY (or a sandbox_key from start_sandbox). Send the returned 'context' to your language model INSTEAD of the whole history. This does not call a model itself — it selects what to send. The budget is a ceiling, not a target: selection stops where relevance runs out, often well below it. The response says how many entries were left behind and why. If the response has a 'budget_warning', the best match did not fit: call again with its suggested_token_budget.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | |
| query | string | oui | What you need context about. |
| token_budget | integer | non | |
| reduce | boolean | non | Opt-in (FAS L): shorten the assembled context with a small, local, task-agnostic model before it is returned, to lower your own model's token cost. Requires tenant consent for context_reduction (set via /api/v1/gdpr/consent) — otherwise the call is rejected with SAMTYCKE_KRAVS instead of silently i… |
| target_tokens | integer | non | Only relevant together with reduce=true. How many tokens the assembled context should be shortened to. Omit for a default halving of what was actually retrieved. |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
assemble_escalation_context
Retrieve wide dated memory
Retrieve a WIDE context for a question your model could not answer from assemble_context. REQUIRES A KEY (or a sandbox_key from start_sandbox). Use it when assemble_context returned escalate_recommended=true, or when the answer depends on dates, counts or several sessions. This does not call a model itself. Returns 'context' (up to token_budget, default 150 000 tokens: lower it if your model's window is smaller), where each stored entry starts with a header '--- Session YYYY/MM/DD (Ddd) HH:MM ---' giving when it was stored, and 'utelamnat_kontext': lower-ranked entries that were left out, in the same format. Read those only if the answer is still missing from 'context'. Python users can pass the whole response to cap_escalate_helper.eskalera_om_behovs_v6().
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| namespace | string | oui | |
| query | string | oui | The question to answer. |
| token_budget | integer | non | Ceiling for 'context'. The default is what the method was measured with. |
| utelamnat_tokens | integer | non | Ceiling for 'utelamnat_kontext'. 0 = none. |
| sandbox_key | string | non | Optional. A temporary key from start_sandbox, for trying without an account. |
start_sandbox
Start a 24-hour memory sandbox
Try memory WITHOUT an account. Returns a temporary sandbox_key; pass it as the sandbox_key argument to remember, remember_batch, assemble_context, list_memories, update_memory or forget. Everything is deleted after 24 hours. Limits: 200 entries, 1 MB of text. No email needed. Do not store real personal data in a sandbox.
Aucun paramètre.
get_account
Create account and API key
Get an account and an API key. Requires an email address. The key is returned ONCE and cannot be shown again — store it immediately. Beta quotas are low by design; they are hard stops, never overage billing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| string | oui | ||
| traffic | string | non | Optional. What your agent sends. |
issue_pass
Issue a signed agent pass
Issue a short-lived (15 minute) signed credential (a JWT) stating who the caller acts for. REQUIRES A KEY. Anyone can verify it independently against /.well-known/jwks.json — without calling CAP-Shield again. 'acts_for' and 'scope' are NOT validated against reality: the pass only attests that the key holder claimed this, at this time, and that the claim is recorded in the audit chain. This is identity and claimed authorization, not a payment or access-control mechanism.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| acts_for | string | oui | Who the agent claims to act for, e.g. 'acme-corp/procurement'. |
| audience | string | non | Optional. Who the pass is shown to. |
| scope | object | non | Optional, freeform, NOT validated. Example: {"can_read": "invoice_json", "max_budget_usd": 500}. |
verify_pass
Verify a signed agent pass
Check a CAP-Shield pass you were given: signature against CAP-Shield's published keys, issuer, expiry, and, if you give them, audience and required scope. No key needed. Returns valid true/false with the reason and the claims. It cannot tell you whether acts_for is TRUE, only that a key holder claimed it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| pass | string | oui | The JWT from issue_pass. |
| audience | string | non | Your own identifier. Omit only if any audience is fine. |
| required_scope | object | non | Key/value pairs that must be in cap_scope. |
pack_batch
Compress a batch of messages
Pack several messages into ONE compressed packet instead of packing them one at a time. REQUIRES A KEY. Worth it for many small/medium messages (the per-message header cost is paid once per batch, and zstd shares context across them) — for a single message this has no advantage. Returns packet_b64 (hand it to unpack_batch to get the messages back) plus the measured byte savings versus packing each message separately. SECURITY: only batch messages that already share the SAME trust boundary (same tenant/agent — nothing attacker-influenced mixed in with a secret). Batched messages share one compression context, which can leak size-based information between them (a CRIME/BREACH-style side channel). There is no padding mitigation on this endpoint today, so trust-boundary separation is the only protection — don't rely on padding.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| texts | array<string> | oui | The messages to batch together, in order. Two or more — a single message gets no benefit. |
| dict_id | string | non | Which trained dictionary to compress against. Call list_packages to see the options. |
| agent_id | string | non | Optional. A label for audit/metrics. |
unpack_batch
Decompress a batch packet
Unpack a batch packet made by pack_batch (or by the /api/v1/pack-batch endpoint) back into the exact original list of messages, in order. REQUIRES A KEY. Not for a packet made by the single-message pack endpoint — that is a different format and this will reject it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| packet_b64 | string | oui | The packet_b64 returned by pack_batch. |
| agent_id | string | non | Optional. A label for audit/metrics. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://cap-shield-robin.fly.dev/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http cap-shield https://cap-shield-robin.fly.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : cap-shield ; URL : https://cap-shield-robin.fly.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : cap-shield ; Server URL : https://cap-shield-robin.fly.dev/mcp ; Create as a plugin{
"mcpServers": {
"cap-shield": {
"url": "https://cap-shield-robin.fly.dev/mcp"
}
}
}{
"mcpServers": {
"cap-shield": {
"type": "http",
"url": "https://cap-shield-robin.fly.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"cap-shield": {
"url": "https://cap-shield-robin.fly.dev/mcp"
}
}
}{
"mcpServers": {
"cap-shield": {
"httpUrl": "https://cap-shield-robin.fly.dev/mcp"
}
}
}[mcp_servers.cap-shield]
url = "https://cap-shield-robin.fly.dev/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
cap-shield · L’Atlas · Test du
[cap-shield — L’Atlas](https://latlas.dev/mcp/io.github.robinlidberg-dot/cap-shield)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.