AI tool toggles (admin)
HTTP routes and behavior for ai tool toggles (admin).
GET /api/admin/ai-tools # list tools: { name, description, enabled, admin_only }PUT /api/admin/ai-tools/{name} # { enabled } -- applies to chat and /mcp immediatelyPUT /api/admin/ai-tools/debug # toggle tool debug modeTool debug mode records names, timing, status, and payload sizes only; tool inputs, outputs, and error bodies are never written to logs. Every MCP tool result also crosses a shared credential scrubber before it can reach chat, /mcp, or the remediation agent, including nested JSON, authorization/cookie headers, URL userinfo, and secret-bearing query parameters.