@maskera/mcp 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/cli.js +1166 -231
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +53 -8
- package/dist/index.js +1048 -132
- package/dist/index.js.map +1 -1
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ Tools (all declare `inputSchema`, `outputSchema`, and MCP tool `annotations`):
|
|
|
113
113
|
- `maskera_list_files`: List files inside allowed workspace roots without reading contents.
|
|
114
114
|
- `maskera_search_files`: Search UTF-8 files locally and redact every matched line before returning (supports searching by an existing placeholder like `[NAMN_1]`).
|
|
115
115
|
- `maskera_read_file`: Read a local UTF-8 file already redacted, storing the restore map locally under `session_id`.
|
|
116
|
-
- `maskera_write_file`: Restore placeholders from `session_id` and write directly to disk without exposing raw PII back to the LLM.
|
|
116
|
+
- `maskera_write_file`: Restore placeholders from `session_id` and write directly to disk without exposing raw PII back to the LLM. Without `session_id` it uses the latest session that knows every placeholder in the text, and refuses when several sessions would restore it differently.
|
|
117
117
|
- `maskera_redact`: Redact text locally (`mode: "auto"` or `"rules"`, `profile: "general" | "clinical"`, `custom_terms`).
|
|
118
118
|
- `maskera_restore`: Restore placeholders using `session_id` or an explicit map (hidden and blocked under `--no-raw-restore`, or gated under `--approval-mode browser|native`).
|
|
119
119
|
- `maskera_list_sessions` / `maskera_clear_session` / `maskera_status`: Inspect counts (never raw PII), clear memory, or check model and policy status.
|
|
@@ -165,8 +165,22 @@ pnpm test:mcp:pack
|
|
|
165
165
|
|
|
166
166
|
# Latency & throughput benchmark (CLI startup, multi-turn ONNX cache, SSE restorer)
|
|
167
167
|
pnpm bench:mcp
|
|
168
|
+
|
|
169
|
+
# Permanent adversarial production-readiness audit & release gates
|
|
170
|
+
pnpm audit:quick # protocol + privacy canaries + security invariants + 4/4 mutations
|
|
171
|
+
pnpm audit:privacy # canary scanner & network egress auditor
|
|
172
|
+
pnpm audit:security # security invariants + live mutation testing
|
|
173
|
+
pnpm audit:e2e # protocol conformance + built CLI E2E
|
|
174
|
+
pnpm audit:clients # real CLI clients (claude, codex, opencode) on packed tarball
|
|
175
|
+
pnpm audit:adversarial # Unicode, formats, large payloads, streaming splits, fuzzing
|
|
176
|
+
pnpm audit:package # tarball contents/checksums + clean install smoke
|
|
177
|
+
pnpm audit:offline # active egress-blocked offline verification
|
|
178
|
+
pnpm audit:benchmark # unseen Swedish corpus production eval, latency & 500-op soak
|
|
179
|
+
pnpm audit:full # full suite + automated release gates
|
|
168
180
|
```
|
|
169
181
|
|
|
182
|
+
See [AUDIT.md](./AUDIT.md), [THREAT_MODEL.md](./THREAT_MODEL.md), [TEST_MATRIX.md](./TEST_MATRIX.md), [RELEASE_GATES.md](./RELEASE_GATES.md), and [audit-results.json](./audit-results.json) for full evidence, trust boundaries, and release criteria.
|
|
183
|
+
|
|
170
184
|
## Options and environment
|
|
171
185
|
|
|
172
186
|
- `--rules-only` or `MASKERA_MCP_MODE=rules`: Deterministic rules only without loading the ONNX model.
|