MCP Abilities - Scriptless Social Sharing
WordPress Abilities for Scriptless Social Sharing
by basicus · github.com/bjornfix/mcp-abilities-scriptless-social-sharing · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/bjornfix/mcp-abilities-scriptless-social-sharing/archive/refs/heads/main.zipReadme
MCP Abilities – Scriptless Social Sharing
Inspect Scriptless Social Sharing settings and control automatic sharing buttons for an individual WordPress post through authenticated Abilities.
Tags: mcp, social-sharing, abilities-api
What It Does
MCP Abilities – Scriptless Social Sharing is an optional Adapter for the Scriptless Social Sharing plugin. It exposes the current settings, reports whether automatic buttons are disabled on a post, and updates that per-post state.
The Real Workflow
- Read the site-wide Scriptless Social Sharing settings when context is needed.
- Inspect the current per-post state before changing it.
- Enable or disable automatic sharing buttons for the exact post.
- Read the post state again whenever another workflow needs confirmation.
Why This Feels Different
The Adapter works with the supported plugin’s existing option and post-meta model. It does not replace the sharing plugin, recreate its frontend, or introduce a second settings store.
Before vs After
| Before | After |
|---|---|
| Open each post in the WordPress editor to inspect sharing state. | Read the exact state through scriptless/get-post-sharing. |
| Toggle the per-post setting manually. | Apply the same reversible change through one authenticated Ability. |
| Assume a database write worked. | Report success only when the requested state is present afterwards. |
Who It Is For
- Sites already using Scriptless Social Sharing.
- WordPress automation clients that coordinate article publication and sharing controls.
- Operators who want a small Adapter rather than a second social-sharing system.
Requirements
- WordPress 6.9 or later.
- PHP 8.0 or later.
- The WordPress Abilities API.
- Scriptless Social Sharing active on the same WordPress installation.
- An authenticated user with
manage_options.
Documentation
The public product page is MCP Abilities – Scriptless Social Sharing. The stable package is available directly from Devenia.
Start Here
Disable automatic sharing buttons for post 42:
{
"post_id": 42,
"disabled": true
}
Abilities (3)
| Ability | Purpose |
|---|---|
scriptless/get-settings |
Return the current Scriptless Social Sharing option array. |
scriptless/get-post-sharing |
Report the stored sharing-button state for one post or page. |
scriptless/update-post-sharing |
Enable or disable automatic sharing buttons for one post or page. |
Safety and Ownership Boundaries
- Every Ability requires
manage_options. - Read operations do not mutate WordPress.
- The update operation changes only
_scriptlesssocialsharing_disablefor the requested post. - Success is returned only after WordPress reflects the requested state.
- The Adapter remains inactive when Scriptless Social Sharing is unavailable.
- No external service or third-party PHP library is bundled.
Installation
- Install and activate Scriptless Social Sharing.
- Download the current Adapter ZIP.
- In WordPress, open Plugins → Add New Plugin → Upload Plugin.
- Upload the ZIP and activate the Adapter.
- Confirm that the Abilities API is active.
Recent Changes
1.0.1
- Added the canonical public package identity and product page.
- Added post-state persistence verification.
1.0.0
- Added settings read, per-post state read, and per-post state update Abilities.
Contributing
Bug reports and focused improvements are welcome. Keep vendor behavior inside this Adapter and preserve the public Ability names.
License
GPL-2.0-or-later. See the GNU General Public License.