Skip to content

MCP and developers

MCP tools (Pro)

With MCP on in Settings and OG AI Core installed, these tools are added to OG AI Core's MCP server. Only administrators can use them.

Tool Access What it does
ogas_get_status read Score, open issues by severity, last scan, firewall mode, AI Autopilot state and data sources
ogas_get_findings read Findings, most severe first (status: open, ignored, fixed, all; limit up to 200)
ogas_run_scan write Starts or continues a full scan (about 50 seconds per call; call again while running)
ogas_explain_finding read Plain-English explanation of one finding (id)
ogas_fix_finding write Applies the one-click fix for a finding (id). Backed up, tested, undoable.
ogas_list_hardening read Measures with risk, whether each is on, and why one cannot be used
ogas_apply_hardening write Switches on one measure (id)
ogas_undo_hardening write Undoes one measure (id)
ogas_firewall_log read Recent requests the firewall caught (limit up to 300)

Example prompts: "What is my site's security score and what should I fix first?", "Explain finding 42", "Switch on the low-risk hardening measures".

Hooks

Hook Type Use
ogas_scan_steps filter The list of scan steps (id => [label, run, checks]); add your own step
ogas_scan_done action After a scan: ( $scan_id, $last )
ogas_settings_saved action After settings are saved

Constants and files

Name Effect
OGAS_FIREWALL_OFF (true) The firewall does nothing
wp-content/ogas-firewall-off Same, without editing wp-config.php

Data it stores

  • Tables {prefix}ogas_findings, {prefix}ogas_files and {prefix}ogas_log (your own table prefix).
  • Options starting with ogas_.
  • The quarantine vault and hardening backups in wp-content.

Everything is removed on delete only if Delete all OG Ai Security data when the plugin is deleted is ticked.