Aegis-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AEGIS_DB_PATH | No | Path to the SQLite WAL hash-chained audit ledger (defaults to system temp dir). | |
| AEGIS_ENVIRONMENT | No | Deployment environment. In prod, startup fails closed if no policy file is loaded. | dev |
| AEGIS_POLICY_MODE | No | Enforcement mode: enforce blocks violations, monitor audits would_block without blocking. | enforce |
| AEGIS_POLICY_PATH | No | Optional path to a YAML RBAC/ABAC policy file. | |
| AEGIS_ENABLE_DLP_REDACTION | No | Enable deterministic PII and secret redaction. | true |
| AEGIS_BLOCK_THRESHOLD_SCORE | No | Minimum risk score (0-100) required to block a tool call. | 70 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Aegis-MCP provides Zero-Trust security inspection, deterministic PII/secret DLP redaction, static MCP manifest poisoning analysis, and cryptographic audit-ledger verification. Use aegis_inspect_tool_call before executing untrusted tool calls, aegis_redact_sensitive_data for read-only scrubbing, and aegis_scan_mcp_manifest to audit third-party MCP server definitions.
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 |
|---|---|
| aegis_inspect_tool_callA | Evaluate a proposed MCP tool invocation against Aegis-MCP's Zero-Trust firewall (prompt injection, path traversal, destructive SQL, shell command injection, obfuscation decoding, RBAC/ABAC policies, session taint tracking, and deterministic DLP redaction) and append an immutable record to the SHA-256 hash-chained audit ledger. Use this before executing untrusted or high-risk MCP tool calls. Do NOT use this for read-only text scrubbing without auditing (use aegis_redact_sensitive_data instead) or for static manifest scanning (use aegis_scan_mcp_manifest instead). |
| aegis_redact_sensitive_dataA | Deterministically redact PII and secrets (emails, Luhn-validated credit cards, ISO 7064 mod-97 IBANs, Spanish DNI/NIE, JWTs, PEM private keys, cloud/API tokens, E.164 phone numbers, and high-entropy secrets) from free-form text or a JSON object. Read-only and idempotent; does not write to the audit ledger. Provide at least one of 'text' or 'payload'. Do NOT use this when you need threat scoring or RBAC enforcement (use aegis_inspect_tool_call instead). |
| aegis_scan_mcp_manifestA | Statically scan an MCP server manifest (server instructions, tools, prompts, and resources) for tool poisoning, hidden instruction tags, concealment directives, Unicode bidi/tag smuggling, context-siphoning parameters, and cross-server shadowing. Read-only and deterministic. Use this when auditing third-party or newly discovered MCP server definitions before trusting them. Do NOT use this for live runtime tool-call arguments (use aegis_inspect_tool_call instead). |
| aegis_verify_audit_chainA | Cryptographically verify the SHA-256 hash chain of the Aegis-MCP SQLite audit ledger across all v1 and full-payload v2 entries. Returns validity status, total entries, legacy v1 count, latest head hash, and the first tampered entry ID if corruption is detected. Read-only; does not alter ledger state. |
| aegis_get_policy_statusA | Return the active Aegis-MCP runtime security configuration: deployment environment, enforcement mode ('enforce' or 'monitor'), fail-closed state, RFC 8785 canonical policy SHA-256 version, block threshold score, and DLP/taint/rate-limit feature flags. Read-only status check; does not inspect calls or mutate policy. |
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 5 tools
Each of the five tools targets a clearly distinct operation: ledger verification, policy status readout, live call inspection, text redaction, and static manifest scanning. The descriptions explicitly cross-reference each other with 'Do NOT use this for... use X instead' guidance, eliminating any realistic misselection.
All tools follow a uniform 'aegis_verb_noun' snake_case pattern (verify_audit_chain, get_policy_status, inspect_tool_call, redact_sensitive_data, scan_mcp_manifest). The prefix and verb style are consistent and the nouns clearly identify the target resource.
Five tools is well within the ideal 3-15 range for a focused security firewall server. Every tool covers a distinct stage of the trust pipeline (manifest scan, runtime inspect, redact, policy, audit verify) with no filler.
The surface covers the core lifecycle: pre-trust manifest scanning, runtime call evaluation, redaction, policy introspection, and audit-chain verification. Minor gaps exist around policy mutation/configuration and querying or exporting individual audit records beyond chain verification, but these appear intentional for a read-only enforcement layer.