topos.mcp.diagnostics¶
Security diagnostic overlay helpers for MCP tools.
- class topos.mcp.diagnostics.SecurityOverlay(active_findings, acknowledged_risks, verdict)[source]
Bases:
objectAllowlist-aware security diagnostics for one evaluation.
- active_findings
- acknowledged_risks
- verdict
- topos.mcp.diagnostics.overlay_for_file(path, result, *, allows=None, include_security_findings)[source]
Apply the project/one-off allowlist over a file classification.
- topos.mcp.diagnostics.overlay_for_source(source, language, result, *, file_path=None, allows=None, include_security_findings)[source]
Apply the project/one-off allowlist over an in-memory classification.