| 开发者 | dudaster |
|---|---|
| 更新时间 | 2026年6月19日 03:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
"confirm": true parameter. Accidental deletions are prevented by design.aria-hidden). Full dry-run support so you can preview changes before saving.AI Agent → AICOM Endpoint → WordPress
API Key Scopes
Each API key is granted specific scopes — you control exactly what each AI agent can and cannot do:
read.wp, write.wp.posts, manage.taxonomies, manage.meta, manage.wordpress.settings, manage.media, manage.files, manage.users, manage.plugins, manage.backups, manage.a11y, manage.woocommerce.products, manage.woocommerce.settings, manage.elementor, manage.polylang, manage.yoast, manage.clautron
Endpoint
REST API:
POST /wp-json/aicom/v1/mcp
Fallback (no mod_rewrite required):
POST /?aicom=1
Health check:
GET /?aicom=1
Authentication
Authorization: Bearer aicom_XXXXXXXX_<secret>
or:
X-API-Key: aicom_XXXXXXXX_<secret>
MCP Request Example
{"jsonrpc":"2.0","method":"tools/call","params":{"name":"wp.posts.list","arguments":{"post_type":"post","posts_per_page":10}},"id":1}
aicom folder to /wp-content/plugins/ or install directly from Plugins → Add New by searching for "AICOM"https://yoursite.com/wp-json/aicom/v1/mcpAuthorization: Bearer <your-key> in every request.htaccess:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Safety tip: Start with Soft Lock enabled to limit the agent to read-only operations, then unlock once you're confident in the integration.No. Every request must include a valid API key. Keys are bcrypt-hashed in the database and scoped — each key only has access to the specific operations you explicitly grant it. Without a valid key, the endpoint returns 401 Unauthorized.
Yes. The fallback endpoint /?aicom=1 works on any server configuration, with or without pretty permalinks or Apache mod_rewrite.
Yes. Each plugin's tools are loaded automatically only if the corresponding plugin is active. If WooCommerce is not installed, no WooCommerce tools appear in the tool list or audit log.
Yes, in two ways: (1) assign only read.wp scopes to the API key, or (2) enable Soft Lock or Hard Lock mode from the Safety page — this blocks write and destructive operations site-wide regardless of key scopes.
Soft Lock permits public, discovery and read class tools only — agents can browse and read content but cannot write, delete or change settings. Hard Lock permits only public tools (like server.status) — the site is effectively frozen from an AI perspective. Hard Lock overrides Soft Lock.
Yes. Send "dry_run": true in your request parameters. The operation will be validated and simulated but no data will be changed. The audit log will record it as a dry run.
Yes. Every request is logged to the audit log with timestamp, remote IP, API key label, tool name, parameters, result summary, and response duration. The log is accessible from AICOM → Audit Logs and can be filtered by date, key, or tool name.
MCP is an open standard created by Anthropic for connecting AI models to external tools and data sources. AICOM implements the MCP standard so any MCP-compatible AI client — Claude, OpenClaw, and others — can communicate with your WordPress site natively without custom integrations.
Yes, completely free and open source under the GPL-2.0-or-later license.
Yes. Each API key has an optional IP allowlist. If set, requests from any other IP will be rejected even if the key is valid.
rest_pre_dispatch intercept bypasses WordPress JSON validation so weak models can connect without "rest_invalid_json" errors.session.status tool — check whether a session is open before calling session.open, avoiding SESSION_ALREADY_OPEN errors.TOOL_NOT_FOUND now includes fuzzy name suggestions ("Did you mean: wp.posts.create?") to guide models that hallucinate tool names.status, content, post_id) are resolved automatically with a hint.manage.polylang scope: post language assignment and translation linking remain under manage.polylang; string translations and term language/linking now require the new manage.polylang.settings scope.inputSchema now returned in tools/list — each tool includes parameter types, descriptions, and required flags so models can call tools correctly without prior knowledge.tools or list_tools method for small-context models.method:"tools/wp.posts.create" pattern and return a corrected JSON-RPC example.tools/call is sent without a name field.aicom.recipes tool returns step-by-step task recipes filtered to the key's actual permissions and active modules.initialize instructions — three exact steps with copy-paste JSON-RPC format.session.status registered as a discovery tool (no session required, no scope required).session_id column on fresh installs — every request was failing the INSERT silently, leaving the Activity tab empty. The fix repairs existing installs automatically on update.initialize, notifications/initialized, and ping now return spec-compliant responses, so strict MCP clients can connect.tools/call and tools/list methods/?aicom=1 for servers without mod_rewrite