Cage Security

v1.0.0
io.github.draarivpatel-ui/cage-mcp-server Checked 9 hours ago Published 4 days ago

Offline 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.

ParameterTypeDescription
path *string
decodeCheckboolean
maxPathLengthinteger
rootstring

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.

ParameterTypeDescription
cspstring
headersobject
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.

ParameterTypeDescription
target *string
allowHashboolean
allowIpLiteralsboolean
allowProtocols
allowQueryboolean
allowSubdomainsboolean
allowUserinfoboolean
allowedHosts
allowedOrigins
blockedPaths
fallbackstring
maxDecodeLayersinteger
maxLengthinteger
normalizeDotSegmentsboolean

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.

ParameterTypeDescription
dotenv *string
maxBytesinteger
maxEntriesinteger
maxKeyLengthinteger
maxValueLengthinteger
onDuplicate
schemaobject

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.

ParameterTypeDescription
archiveBase64 *string
optionsobject

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.

ParameterTypeDescription
extraSecretsarray
maxArrayLengthinteger
maxDepthinteger
maxKeysinteger
maxLengthinteger
maxNodesinteger
mode
piiobject
record
redactPathsarray
sensitiveKeysarray
textstring

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.

ParameterTypeDescription
evaluateobject
policyobject

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.

ParameterTypeDescription
json *string
optionsobject

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.

ParameterTypeDescription
code *string
filenamestring
maxFileSizeinteger