About protect-context
protect-context is an MCP server published by XJTLUmedia in the Healthcare category: agent guardrails: contract, evidence ledger, loop brake, diff-scope warnings, durable journal. Conduid read 15 tools from its source: guard_brief, guard_budget, guard_contract, guard_contract_check, guard_diff_audit, guard_evidence and 9 more. No package is published for it, so it installs from a source checkout.
The repository has 3 stars and 1 forks, and its last commit was on 24 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.
Install
git clone https://github.com/XJTLUmedia/Protect-ContextTools (15)
guard_briefThe compact pre-agent brief, built from this project's store.| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many brief lines to return. Integer. Default 20. Clamped to at least 1; the brief itself is already capped by section, so this only bounds the view. |
guard_budgetRead-only per-session tool-output characters and the top 5 toolsguard_contractA model-called write lands in the project layer only; the personal layer stays owner-only| Parameter | Type | Description |
|---|---|---|
| action | any | |
| add | any | |
| list | any | |
| remove | any | |
| text | any |
guard_contract_checkChecklist where 02 (evidence cited) and 08 (diff size) are measured from the store; the rest is keyword coverage, labelled as self-report| Parameter | Type | Description |
|---|---|---|
| summary | any |
guard_diff_auditRead-only diff size against the configured warn/hard thresholds| Parameter | Type | Description |
|---|---|---|
| baseline | string | Git ref to diff the working tree against. String or omitted. Default None, which means HEAD (an unborn repository is compared as an unborn HEAD). Example: a commit sha. A ref git cannot resolve is reported in the text; it is not raised. |
guard_evidenceRead-only; the window shows each non-ok row's last output line, and `evidence_id` returns one run in full| Parameter | Type | Description |
|---|---|---|
| evidence_id | any | |
| limit | any | default 5 |
guard_intentRead-only owner wants, needs, preferences, constraints, corrections and statements; no query needed, provenance-labelled| Parameter | Type | Description |
|---|---|---|
| limit | any | 0–20, default 5 |
guard_journalRead-only; recovers decisions, corrections, and the agent's own earlier notes after a compaction| Parameter | Type | Description |
|---|---|---|
| limit | any | 0–20, default 5 |
| type | any |
guard_loop_checkRead-only failing-command streaks and whether the next identical re-run blocksguard_noteForced to the `agent` trust level| Parameter | Type | Description |
|---|---|---|
| tags | any | |
| text | any | |
| type | any |
guard_orientationRead-only bounded tree, language counts, and conventions filesguard_preflightRead-only tool presence and versions; a slow probe reads `(version unavailable)`, never `missing`guard_recallRead-only scan of the retained window; hits labelled `trusted` or `agent`| Parameter | Type | Description |
|---|---|---|
| cmd | any | |
| evidence_id | any | |
| limit | any | 0–20, default 5 |
| query | any | |
| tags | any | AND |
| type | any |
guard_statusSame data that feeds the widget, including journal totals and the task anchorguard_verifyRecords `ev-NNNN`; refusal on a blocked loop| Parameter | Type | Description |
|---|---|---|
| command | any | |
| timeout_s | any | default 180, clamped 1–900 |
Security checks
6 checks have not been run yet.