Skip to content

Conversation

@priethor
Copy link
Contributor

@priethor priethor commented Nov 28, 2025

What

Part of #171

Add WordPress Abilities API support for SCF taxonomy management, enabling AI assistants and MCP clients to create, read, update, delete, duplicate, import, and export taxonomies.

Why

Taxonomies need the same MCP/Abilities integration that post types already have; AI assistants should be able to manage custom taxonomies through the Abilities API

How

  • Adds SCF_Taxonomy_Abilities class with 8 abilities: list, get, create, update, delete, duplicate, export, import
  • Registers abilities under scf-taxonomies category, reusing the JSON Schema introduced in JSON Schemas: add Taxonomy schema #261
  • Follows existing post-type abilities patterns for consistency

Testing Instructions

  1. Ensure WordPress has the Abilities API available (6.9+ or through the Abilities API plugin)
  2. Connect your preferred LLM to your WP installation through the MCP Adapter
  3. Ask the LLM to list the SCF abilities.
  4. Ask it to list, create, update, delete, etc. taxonomies. It should use the available abilities

@priethor priethor added this to the 6.7.0 milestone Nov 28, 2025
@priethor priethor self-assigned this Nov 28, 2025
@priethor priethor added the [Type] Enhancement New feature or request label Nov 28, 2025
@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

❌ Patch coverage is 92.87834% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.84%. Comparing base (75fad26) to head (7d1d1e0).
⚠️ Report is 1 commits behind head on trunk.

Files with missing lines Patch % Lines
...ncludes/abilities/class-scf-taxonomy-abilities.php 92.87% 24 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             trunk    #263      +/-   ##
==========================================
+ Coverage     7.96%   8.84%   +0.87%     
- Complexity    4285    4322      +37     
==========================================
  Files          265     265              
  Lines        33076   33404     +328     
==========================================
+ Hits          2635    2953     +318     
- Misses       30441   30451      +10     
Flag Coverage Δ
e2e 21.79% <ø> (ø)
phpunit 5.45% <92.87%> (+1.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@priethor priethor marked this pull request as ready for review November 28, 2025 17:28
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props priethor.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@priethor priethor merged commit 6124103 into trunk Nov 28, 2025
8 checks passed
@priethor priethor deleted the add/abilities-taxonomies branch November 28, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants