Cage Security
v1.0.0Offline AppSec firewall MCP server with deterministic security audit tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_path Audit a path for traversal outside a root
Resolve a caller-supplied path inside an absolute root with pathcage and report traversal, encoded traversal, symlink-independent lexical escapes, and length violations. This is lexical and does not read the filesystem.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
decodeCheck | boolean | |
maxPathLength | integer | |
root | string |
audit_headers Audit HTTP security headers
Audit HTTP headers with headersafe, including CSP and Set-Cookie analysis, CRLF validation, and comparison against a strict security header baseline.
| Parameter | Type | Description |
|---|---|---|
csp | string | |
headers | object | |
setCookie |
audit_redirect Audit a redirect target
Check a relative or absolute redirect target with redirectcage against explicit origin, host, protocol, query, fragment, dot-segment, and blocked-path policy.
| Parameter | Type | Description |
|---|---|---|
target * | string | |
allowHash | boolean | |
allowIpLiterals | boolean | |
allowProtocols | ||
allowQuery | boolean | |
allowSubdomains | boolean | |
allowUserinfo | boolean | |
allowedHosts | ||
allowedOrigins | ||
blockedPaths | ||
fallback | string | |
maxDecodeLayers | integer | |
maxLength | integer | |
normalizeDotSegments | boolean |
audit_env Audit dotenv content
Parse dotenv text with envcage without shell expansion or interpolation, optionally validate it against a small schema DSL, and report secret hygiene without returning secret values.
| Parameter | Type | Description |
|---|---|---|
dotenv * | string | |
maxBytes | integer | |
maxEntries | integer | |
maxKeyLength | integer | |
maxValueLength | integer | |
onDuplicate | ||
schema | object |
audit_cookie Audit or serialize cookies
Parse a Cookie header with duplicate and percent-encoding protection, or serialize a Set-Cookie value with hardened cookiecage defaults. Parsed cookie values are redacted from the response.
| Parameter | Type | Description |
|---|---|---|
mode * | ||
header | string | |
name | string | |
options | object | |
parseOptions | object | |
value | string |
audit_zip_entries Audit ZIP archive entries
Inspect a small base64 ZIP archive with zipcage and report traversal, polyglot, compression-ratio, encrypted-entry, duplicate-name, special-file, and metadata inconsistencies without extracting files.
| Parameter | Type | Description |
|---|---|---|
archiveBase64 * | string | |
options | object |
redact_log Redact and sanitize logs
Neutralize log forging, terminal controls, secrets, credentials, sensitive object keys, optional high-precision PII patterns, and oversized structured records with logcage.
| Parameter | Type | Description |
|---|---|---|
extraSecrets | array | |
maxArrayLength | integer | |
maxDepth | integer | |
maxKeys | integer | |
maxLength | integer | |
maxNodes | integer | |
mode | ||
pii | object | |
record | ||
redactPaths | array | |
sensitiveKeys | array | |
text | string |
audit_cors Audit a CORS policy
Lint a CORS configuration with corscage and optionally evaluate a bounded request shape for origin, method, preflight, credential, private-network, and header exposure decisions.
| Parameter | Type | Description |
|---|---|---|
evaluate | object | |
policy | object |
audit_json Audit a JSON payload
Inspect JSON text with jsoncage for duplicate keys, prototype pollution keys, depth, size, node count, unsafe numbers, invalid Unicode, BOM, and NUL hazards.
| Parameter | Type | Description |
|---|---|---|
json * | string | |
options | object |
lint_security_code Lint source for security issues
Run sentinel-lint rules against one bounded source snippet in an isolated temporary file. The scanner never executes the snippet, never follows symlinks, and the temporary file is deleted before the tool returns.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
filename | string | |
maxFileSize | integer |