cage-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Offline deterministic AppSec tools. Pass only bounded snippets, payloads and policy data; do not send secret values unless redaction or validation is the explicit task.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| audit_pathB | 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. |
| audit_headersB | Audit HTTP headers with headersafe, including CSP and Set-Cookie analysis, CRLF validation, and comparison against a strict security header baseline. |
| audit_redirectC | Check a relative or absolute redirect target with redirectcage against explicit origin, host, protocol, query, fragment, dot-segment, and blocked-path policy. |
| audit_envB | 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. |
| audit_cookieB | 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. |
| audit_zip_entriesA | 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. |
| redact_logB | Neutralize log forging, terminal controls, secrets, credentials, sensitive object keys, optional high-precision PII patterns, and oversized structured records with logcage. |
| audit_corsC | Lint a CORS configuration with corscage and optionally evaluate a bounded request shape for origin, method, preflight, credential, private-network, and header exposure decisions. |
| audit_jsonB | Inspect JSON text with jsoncage for duplicate keys, prototype pollution keys, depth, size, node count, unsafe numbers, invalid Unicode, BOM, and NUL hazards. |
| lint_security_codeB | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool targets a distinct input artifact (path, headers, code snippet, redirect, dotenv, cookie, ZIP, log, CORS config, JSON), so an agent can usually pick correctly. The main overlaps are audit_headers (which also does Set-Cookie analysis) vs audit_cookie, and audit_cors vs audit_headers, plus secret-handling appearing in both audit_env and redact_log.
Eight of ten tools follow a clean audit_<noun> pattern with predictable snake_case. lint_security_code and redact_log deviate in verb only, but both read naturally and the deviation signals a genuinely different action rather than sloppiness.
Ten tools is squarely in the sweet spot for a security-auditing server. Each tool covers a distinct hazard class and none feels like filler or a redundant wrapper.
The surface covers most common untrusted-input categories (paths, headers, redirects, env, cookies, ZIP, JSON, logs, source, CORS) with both reporting and sanitization verbs. Minor gaps remain for full-URL/SSRF analysis, HTML/XML/XXE, and templating or shell-command input auditing.