What problem does it solve?
It prevents caller-controlled flags like include_sensitive from deciding whether secrets, tokens, or credentials are disclosed in MCP tool and API responses, ensuring disclosure decisions belong to server/operator policy.
Core Features & Use Cases
- Per-surface redaction configuration: Configure redact_sensitive_fields through the env-var hierarchy (per-surface, global, config, safe-by-default) resolved by should_redact_sensitive_fields in unifi-core.
- Policy extension guidance: Choose between the PolicyGateChecker allow/deny gate shape and the surface-scoped resolver shape when adding policy for a new domain.
- Enforcement-point auditing: Distinguish per-tool read-path redaction from the centralized StrictKwargFastMCP write-back marker guard, and migrate legacy include_sensitive caller flags to server-owned policy.
- Use Case: When a request asks to expose a raw field on a UniFi network tool, use this Skill to remove the caller flag, wire the response through redact_sensitive_fields, and verify the marker guard blocks replayed redacted values.
Quick Start
Review this MCP tool change that adds an include_sensitive parameter and migrate it to server-owned redaction policy.