| 开发者 | bilalnaseer |
|---|---|
| 更新时间 | 2026年11月20日 22:18 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
Yes. WSP MCP is completely free and open source (GPL). Every tool, the Audit Log and the dashboard are included. No account, subscription or outside service is needed.
Claude (desktop, web and mobile), ChatGPT, Cursor, Codex, Google Antigravity, OpenClaw, OpenCode, and any other app that supports MCP.
No. Everything is built in.
Tools that change your site are off until you turn them on, and the AI can only do what its WordPress user is allowed to do. You can see every action in MCP > Audit Log, and you can create a new connection key at any time to cut off old ones.
The Connection page gives you a private key to paste into your AI app. Advanced users can use a WordPress Application Password instead.
AI apps load the tool list when they connect. Fully quit and reopen your AI app (not just a new chat) and the new tools will appear.
Watch the step-by-step video tutorial: https://youtu.be/GLyLzxVOxm4
Watch the step-by-step video tutorial: https://youtu.be/2gRIRcqqOpo
Watch the step-by-step video tutorial: https://youtu.be/hxhjs3IUYQE
date (ISO 8601, in your site's timezone unless you add an offset or Z). Before, setting the status to "future" saved the current time and WordPress published the item immediately. A "future" status without a future date is now rejected with a clear error instead of going live, and responses report the status and date that were actually saved./.well-known/ at the web server (for example SiteGround). OAuth discovery is now also served from a non-.well-known address.wsp_get_site_context tool and as MCP resources. Reconnect your AI app after editing. Don't put passwords or keys in these documents.wsp_update_site_context) — lets your AI write or update AGENTS.md and CHANGELOG.md itself (replace, append, or add a new entry at the top). Large files can be sent in chunks. Each document can now hold up to 300,000 characters (was 50,000). Administrators only, OFF by default.wsp_install_plugin), Install Plugin From URL (wsp_install_plugin_from_url, https .zip only), Delete Plugin (wsp_delete_plugin, must be deactivated first) and Update Plugin (wsp_update_plugin). They use WordPress's own installer and require the install_plugins, delete_plugins and update_plugins capabilities (administrators; respects DISALLOW_FILE_MODS).wsp_get_plugins) now lists every installed plugin with its active state and available update. Create Category (wsp_create_category) can also create WooCommerce product categories.wsp_get_global_styles) returns the site's theme.json customizations or the merged effective values, and can list the theme's style variations. Update Global Styles (wsp_update_global_styles) deep-merges new colors, typography, spacing and block styles, or applies a style variation. List / Read / Create / Update Template (wsp_get_templates, wsp_get_template, wsp_create_template, wsp_update_template) manage block templates and template parts (header, footer, …). All require edit_theme_options and are OFF by default. Custom CSS cannot be set through these tools, and template content is filtered with wp_kses_post().edit_theme_options and are OFF by default. Widget text is filtered with wp_kses_post().wsp_upload_theme) — installs a theme generated by your AI agent (sent as theme files) or a theme .zip (base64 or URL), optionally replacing an existing copy and activating it. Uses WordPress's own theme installer. Requires the install_themes capability (administrators; respects DISALLOW_FILE_MODS) and is OFF by default.create_users / edit_users. OFF by default.manage_options. OFF by default.activate_plugins. Deactivate Plugin refuses to deactivate this plugin, so the MCP connection cannot cut itself off. OFF by default.switch_themes. OFF by default.edit_theme_options (the same capability the WordPress menu editor needs) and are OFF by default. Contributed by @dulaj44.wsp_get_post) — fetch a single post by ID in any status (draft, pending, private, trash) with its full content, so an AI agent can review a draft before updating it. Requires edit_posts plus per-post read permission; a Contributor cannot read another author's private post. OFF by default. Contributed by @dulaj44 (closes #38).object_id whose post type does not match the requested type (e.g. type: page with a blog post ID) instead of silently storing it.wp_wsp_mcp_audit_log), which now also records each request's ability category and execution duration in milliseconds — no external service involved. Restricted to administrators (manage_options).https://example.com/test/) could leave a connected connector with "no tools available." Discovery documents are now served at every URL spelling this install can actually reach, and the two-install-on-one-domain case is disambiguated with a base-path-aware issuer identity.edit_posts / delete_posts) and not object-level permission. A Contributor authenticating with their own Application Password could edit, publish, unpublish or trash a post, page or attachment owned by an Administrator or Editor once the write tool was enabled. All of these callbacks now load the target object and enforce current_user_can( 'edit_post', $id ) / current_user_can( 'delete_post', $id ), restrict each tool to its expected post type, and require the post type's publish capability before accepting a publish, future or private status. New shared helper file includes/abilities/guard.php.tools/call request is now recorded in a dedicated, self-hosted database table (wp_wsp_mcp_audit_log) — tool name, timestamp, acting user, request IP, and outcome (success, denied, or error). No external API or paid service is involved.manage_options), matching every other MCP admin screen.wsp_mcp_audit_log_retention_days) are pruned automatically by a daily cron task, so the table stays lightweight.initialize. Clients that send tools/list immediately (Claude Desktop via mcp-remote, and any fast script) landed in the same second as the initialize that created the session, so the expiry-sliding UPDATE wrote the value already stored and MySQL/MariaDB reported 0 changed rows — which the plugin read as a missing session. A zero-row update is now confirmed with an existence check before the session is rejected. Adding a delay before the second request is no longer necessary. Fixes GitHub #30.wsp_upload_media (Upload Media) now accepts base64 file content via a new data parameter — an MCP client can upload a file attached to the chat straight into the media library without first hosting it at a public URL. The url parameter still works as before; pass either one. An optional mime_type hint and data: URI prefixes are supported. Only image types (jpg, png, gif, webp) are allowed, decoded bytes are written through media_handle_sideload(), and the tool still requires upload_files. Fixes GitHub #17.wsp_elementor_sanitize_settings() (strips custom_css, custom_attributes, and dynamic keys); update-active-kit and regenerate-css require manage_options, the rest require edit_posts.wpforms_view_forms / wpforms_edit_forms for forms and wpforms_view_entries / wpforms_edit_entries for entries.wpcf7_edit_contact_forms and wpcf7_delete_contact_forms; get-integrations requires manage_options.gravityforms_create_form. No behavioral code changes.gravityforms_edit_forms, gravityforms_create_form, gravityforms_view_entries, etc.). Only registered when Gravity Forms is active (class_exists('GFAPI')).column type.wp_kses_post(); each tool enforces a strict capability check (edit_posts, publish_posts, or manage_options).update_field() — for posts, users, terms, and options — is now recursively sanitized (arrays walked; each string run through wp_kses_post()) so <script>/<style> and inline event handlers can no longer be stored through the MCP tools. Legitimate WYSIWYG/HTML field content still works. Addresses the WordPress.org "arbitrary code insertion" review finding.~/.config/opencode/opencode.json file with the API key inlined in the header, ready to create and paste.wp_kses_post() so scripts cannot be injected via _elementor_data.manage_options (was edit_posts), matching the admin-level nature of global options.wsp_register_acf_abilities() dual-mode registration helper (dead code, not hooked).Requires at least now uses the major-only WordPress version format (6.9).manage_options; value reads/writes enforce per-object capabilities (edit_post, edit_user, list_users, manage_categories, manage_options).wsp-mcp-ai-agents-connector (folder, main file, and text domain) to match the public name ahead of WordPress.org submission.manage_woocommerce capability.