Linux 软件免费装
Banner图

SharkTrace – AI Agent Monitor, Audit Trail & Activity Log for MCP

开发者 iqbal1hossain
更新时间 2026年11月28日 22:57
PHP版本: 7.4 及以上
WordPress版本: 7.1.5
版权: GPLv2 or later
版权网址: 版权信息

标签

activity log audit log audit trail ai agent mcp

下载

0.2.0 0.1.1

详情介绍:

SharkTrace is an AI agent monitor and AI agent audit trail for WordPress. It shows which AI agents work on your site, what each one changed, where they are working right now, and when two of them collide. Sites now run several AI agents at once: an MCP client in Claude or ChatGPT, a content bot over the REST API, a WP-CLI automation, a plugin's built-in AI assistant. SharkTrace tells them apart, keeps an AI agent activity log of everything each one does, and warns you when two agents change the same content. Use it alongside any WordPress MCP server (MCP Adapter, Abilities API, or a third-party MCP plugin) to get an MCP audit log and full AI agent observability without sending data anywhere. Everything stays in your own database. Nothing is sent to an external service. What you get Attribution you can trust An event counts as an AI agent only when WordPress can prove it: an Abilities API execution, an Application Password used by a named client, or an explicit X-Agent-Name, X-Agent-Id or X-MCP-Client header on an authenticated REST or WP-CLI request. Anything else is shown as Unknown / WordPress rather than guessed. Identity headers are labels, never permissions. Agents Every agent gets its own profile, keyed by a fingerprint (Application Password, agent id, MCP client and session, or a low-confidence client + user + browser family). Each profile shows its status (Online, Away, Offline), actions, failures, objects touched, sessions and working hours. Rename an agent, mark it Trusted, Watched or Flagged, or merge two profiles of the same agent. Activity log and audit trail Saved views (All, Agents only, High risk, Failed, Today), filters by agent, action, risk, status, transport and date, search, and a detail drawer with the before and after values of every change. Together they form a complete audit trail of AI agent activity on your site. Content Which pages and posts agents change most, and a timeline per page with one lane per agent or person, links to the revision compare screen and the block editor. Live and Conflicts A presence board shows who is working on what right now, from agent writes, presence pings and the block editor's post lock. When two actors change the same object within the conflict window, SharkTrace opens a conflict (High: same field, Medium: same object, Info: open in the editor), shows what each actor wrote and which version is live, and lets you resolve or dismiss it. SharkTrace only warns: it never blocks or changes a write. Sessions One agent task per session, shown as a waterfall: the ability call on top, every write it caused beneath it, on a millisecond axis, with failed steps marked. Inside WordPress WP-CLI Every wp command is logged with its arguments (secrets redacted), duration and exit code. wp sharktrace list, wp sharktrace agents and wp sharktrace export read the log from the command line. Privacy and data safety SharkTrace Pro The optional Pro add-on adds CSV and JSON export (screen and wp sharktrace export) and email alerts for new conflicts and high-risk agent actions. Everything else above is free. REST API Endpoints under sharktrace-ai-agent-monitor/v2: events, agents, stats, settings, objects, presence, conflicts, sessions and stream (server-sent events). Reading requires manage_options (filter staiam_view_capability); changes use staiam_manage_capability. Agents can report what they are working on with POST /presence {"object":"post:42"}. Extension points Credits The admin app uses the Inter typeface by The Inter Project Authors (https://github.com/rsms/inter), bundled with the plugin under the SIL Open Font License 1.1 (see licenses/Inter-OFL.txt).

安装:

  1. Install the plugin through the Plugins screen, or upload the sharktrace-ai-agent-monitor folder to /wp-content/plugins/.
  2. Activate it. Activation creates the SharkTrace tables.
  3. Open SharkTrace in the admin menu.
  4. Give each AI agent its own Application Password (Users → Profile) and have it send an X-Agent-Name header, so SharkTrace can tell the agents apart.

屏幕截图:

  • Agents: every agent with its status, trust and activity.
  • Activity log with saved views, filters and the change detail drawer.
  • Live: the presence board and the activity stream.
  • Conflict: what each actor wrote and which version is live.
  • Session trace: an ability call and the writes it caused, on a millisecond axis.
  • Block editor: the Agent activity panel and the "agent is editing" notice.

常见问题:

How do I monitor AI agents on my WordPress site?

Install and activate SharkTrace. It starts recording agent activity from MCP clients, the REST API, WP-CLI and the Abilities API right away. Open SharkTrace in the admin menu to see the activity log, agent profiles, live presence and conflicts.

Does it work with my MCP server plugin?

Yes. SharkTrace records what reaches WordPress, so it works with the WordPress MCP Adapter and with third-party MCP server plugins. MCP clients such as Claude, ChatGPT and Cursor are identified by their Application Password, MCP client name and session id.

How do I tell agents apart?

SharkTrace keys every agent by a fingerprint, strongest signal first:

  1. The Application Password it authenticates with. Give each agent its own Application Password and it gets its own profile, marked high confidence.
  2. An X-Agent-Id header, for agents that share one account.
  3. An MCP client name together with its session id (Mcp-Session-Id or X-Agent-Session).
  4. Otherwise the client name, the WordPress user and the browser family. These profiles are marked Low confidence, because two copies of the same client on the same account look alike.
Send X-Agent-Name too, so the profile has a readable name. You can rename any agent, and merge two profiles that turn out to be the same agent, on the agent's profile screen.

Which activity counts as an AI agent?

Only activity WordPress can prove came from an agent: an Abilities API execution, an Application Password used by a named client, or an authenticated REST or WP-CLI request with an explicit agent header. Everything else is recorded as Unknown / WordPress, never guessed.

How is this different from a regular activity log plugin?

General activity log plugins record what users do. SharkTrace is built for AI agents: it separates each agent into its own profile, groups an agent's writes into sessions, shows which agent is working where right now, and detects when two agents edit the same content.

Do I need the Abilities API?

No. Core write collection works on WordPress 6.7 and later. Ability runs are recorded when the Abilities API is available (WordPress 6.9 or later, or the Abilities API plugin).

Does SharkTrace stop agents from overwriting each other?

No. It warns: it opens a conflict, shows it on the Live and Conflicts screens, in the admin bar and in the block editor, and with Pro sends an email. It never blocks or changes a write.

Will it slow my site down?

Events are collected in memory and written once, at the end of the request, in one transaction. Front-end page views without an agent signal run no SharkTrace queries.

Who can see the recorded data?

Users with the manage_options capability. Use the staiam_view_capability filter to require a different capability.

How long is data kept?

30 days by default. Change it under SharkTrace → Settings → General.

Does the plugin send anything to an external service?

No. Everything stays in your own database. The Pro email alerts use your site's own wp_mail().

What happens when I delete the plugin?

Uninstalling drops the SharkTrace tables and deletes its options, its user setting and its scheduled jobs. Deactivating alone keeps the data.

更新日志:

0.2.0 0.1.1 0.1.0