Documentation

Everything you need to install, configure, and get the most out of RockScout AI.

Installation

From WordPress.org

  1. In your WordPress dashboard go to Plugins → Add New
  2. Search for "RockScout AI"
  3. Click Install Now, then Activate
  4. Go to Settings → RockScout AI to configure

Manual install

  1. Download the ZIP from wordpress.org/plugins/rockscout-ai
  2. Go to Plugins → Add New → Upload Plugin
  3. Upload the ZIP and activate

Requirements

WordPress6.9 or higher (7.0+ recommended for Abilities API)
PHP7.4 or higher
AI API keyOpenAI or Anthropic key for AI chat features
MCP AdapterOptional — enables MCP tools exposure
Note: The plugin works without the Abilities API and MCP Adapter — those features simply won't be available on older WordPress versions.

Configuration

After activation, go to Settings → RockScout AI.

AI Provider

Choose your AI provider (OpenAI or Anthropic) and enter your API key. The key is stored encrypted using wp_salt().

// Your API key is never sent anywhere except the AI provider.

Activity Logger

Configure which events to track. All are enabled by default:

Chat Widget

Control where the chat widget appears: WP Dashboard widget, admin page, or both. Choose which user roles can access the chat (defaults to users with read capability).

Plugin Modes

RockScout AI has two modes, based on whether you've entered an API key:

ModeKeyFeatures
DemoNoneActivity log (7 days, local), site health dashboard. No AI chat.
Free (BYOK)Your OpenAI / Anthropic keyActivity log (30 days), site health + diagnostics, AI chat with site context, email notifications, MCP abilities.

Switching is seamless — just add or remove the key. No data is lost.

Activity Logger

Hooks into WordPress actions to record changes. Events are stored in a custom table wp_rockscout_events.

Tracked events

HookEventData stored
upgrader_process_completePlugin/theme updateName, old → new version, user
activated_pluginPlugin activationPlugin name, user
deactivated_pluginPlugin deactivationPlugin name, user
switch_themeTheme changeOld → new theme, user
save_postPost/page editPost ID, title, user, time
wp_loginUser loginUser ID, IP, time
update_optionOption changeOption name, user
deleted_pluginPlugin deletionPlugin name

Retention & cleanup

A WP-Cron job runs daily to remove events older than the retention period (7 days in Demo, 30 days with BYOK). Expected volume: ~50–200 records/week on a typical site.

Customizing tracked events

// Disable tracking for specific event types
add_filter( 'rockscout_tracked_events', function( $events ) {
    unset( $events['wp_login'] );
    return $events;
});

Site Health

Creates a snapshot of the site's technical state. Runs on demand (via chat) and once/day via WP-Cron.

Collected data

Chat Widget

Built with vanilla JavaScript — no frameworks, no heavy dependencies. Renders in WP Dashboard.

How queries work

Client asks a question
  → Plugin collects context:
      ├── Last 10 activity log events
      ├── Current site health snapshot
      └── User's question
  → Builds prompt (in plugin)
  → Sends to AI provider (OpenAI / Claude)
  → Displays response in widget

Styling the widget

The widget uses CSS custom properties for easy theming:

/* Override in your theme or custom CSS */
.rockscout-chat {
    --rockscout-primary: #ffc726;
    --rockscout-bg: #ffffff;
    --rockscout-text: #1a1a2e;
    --rockscout-radius: 12px;
}

Abilities API & MCP

On WordPress 6.9+ with Abilities API, RockScout AI registers these abilities that external AI agents can discover via MCP:

AbilityDescriptionInput
rockscout/site-healthFull site health snapshotNone
rockscout/activity-logRecent site changesdays (int, default 7)
rockscout/plugin-statusPlugin list with versions & updatesNone

All require manage_options capability. Exposed via MCP only when the MCP Adapter plugin is active.

Graceful degradation: Without Abilities API the plugin works normally — just shows an admin notice recommending WP 6.9+.
// How abilities are registered (simplified)
if ( function_exists( 'wp_register_ability' ) ) {
    wp_register_ability( 'rockscout/site-health', [
        'label'               => 'RockScout Site Health Check',
        'description'         => 'Returns current health status',
        'input_schema'        => [],
        'permission_callback' => function() {
            return current_user_can( 'manage_options' );
        },
        'execute_callback'    => 'rockscout_get_site_health',
        'meta'                => [ 'mcp' => [ 'public' => true ] ],
    ] );
}

Hooks & Filters

HookTypeDescription
rockscout_tracked_eventsFilterModify which event types are tracked
rockscout_health_dataFilterAdd/remove data from health snapshot
rockscout_chat_contextFilterModify context sent to AI with each query
rockscout_before_chatActionFires before an AI query is sent
rockscout_after_chatActionFires after AI response is received
rockscout_event_loggedActionFires after a new event is recorded
// Example: Add custom data to health snapshot
add_filter( 'rockscout_health_data', function( $data ) {
    $data['custom_check'] = my_custom_health_check();
    return $data;
});

REST API

Endpoints under the rockscout/v1 namespace:

EndpointMethodPermissionDescription
/rockscout/v1/eventsGETmanage_optionsActivity log events
/rockscout/v1/healthGETmanage_optionsSite health snapshot
/rockscout/v1/chatPOSTreadSend chat message, get AI response
/rockscout/v1/settingsGET/POSTmanage_optionsRead or update plugin settings

All endpoints require authentication (nonce or Application Password) and validate capabilities.

Security

Uninstall & Data

Deactivation: No data is deleted. The plugin simply stops hooking into WordPress actions.

Uninstall (delete): When you delete the plugin, uninstall.php runs and:

  1. Drops the wp_rockscout_events custom table
  2. Removes all rockscout_* options from wp_options
  3. Clears any scheduled WP-Cron events

FAQ

Does the plugin slow down my site?

No. The activity logger hooks into existing WordPress actions with minimal overhead. The chat widget loads only in the WP Dashboard — never on the frontend.

What AI providers are supported?

OpenAI and Anthropic (Claude).

Can I use it without an API key?

Yes — Demo mode gives you activity logging (7 days) and the site health dashboard with no key required.

Does it work with WordPress < 6.9?

The core features (activity log, site health, chat) require WordPress 6.9+. The Abilities API and MCP features additionally require the MCP Adapter plugin.

Is client data sent to external services?

The site context and user question are sent to your chosen AI provider (OpenAI or Anthropic) — no other external service. No PII is included. See our Privacy Policy.

Can I customize which data AI sees?

Yes — use the rockscout_chat_context filter to modify or redact data before it's sent.

Changelog

1.0.0 — Initial release

What's Next

We're working on an agency tier that will add white-label branding, escalation to human agents with full context, a per-client knowledge base, and a multi-site management dashboard. If you're interested, follow the project on GitHub or reach out at rocksite.pro.