Skip to content

feat: Agent Abilities — WC Canonical Abilities for admin + vendors (F-16a, F-18)#3237

Open
anik-fahmid wants to merge 1 commit into
developfrom
feat/f16a-f18-agent-abilities
Open

feat: Agent Abilities — WC Canonical Abilities for admin + vendors (F-16a, F-18)#3237
anik-fahmid wants to merge 1 commit into
developfrom
feat/f16a-f18-agent-abilities

Conversation

@anik-fahmid

@anik-fahmid anik-fahmid commented Jun 1, 2026

Copy link
Copy Markdown

📄 Specs: Dokan Agentic Specs — Phase 1

Summary

Registers Dokan marketplace operations as WooCommerce Canonical Abilities (shipping with WC 10.9 on June 23). Transport-neutral: same registration auto-exposes each ability via MCP, REST, WP-CLI, and future AI surfaces.

Strategy: Dokan Agentic Commerce Strategy — F-16a, F-18, H1

⚠️ Ship deadline: June 23, 2026

WC 10.9 ships that day with the Canonical Abilities API. Merging after loses "first marketplace plugin with Abilities API support on Day 1" positioning.

F-16a — 8 admin abilities

Ability Operation
dokan/vendors-query Search vendors by rating, sales, category, location
dokan/vendor-get Full vendor profile + storefront URL + policies
dokan/vendor-products-query Products filtered by vendor
dokan/vendor-orders-query Orders filtered by vendor
dokan/vendor-approve Approve pending vendor
dokan/vendor-suspend Suspend active vendor
dokan/vendor-commission-set Update commission per vendor/category
dokan/marketplace-stats-summary Aggregate marketplace stats

F-18 — 9 vendor self-service abilities

Vendors manage their own store through Claude/ChatGPT via Application Passwords. Permission callbacks enforce vendor-scope on every call.

dokan-vendor/product-create, product-update, inventory-update, withdrawal-request, store-update, orders-query, sales-summary, withdrawal-history, customer-message

What this replaces

Deprioritised Absorbed by
F-02 standalone MCP server Abilities auto-expose via WC MCP
F-07 admin AI agent Same abilities power WC AI Agent

Test plan

  • WC 10.9 beta: abilities visible in GET /wp-json/wp-abilities/v1/abilities
  • dokan/vendors-query returns vendor list with filters
  • dokan/vendor-approve changes vendor status to approved
  • dokan-vendor/product-create creates product scoped to current vendor
  • Vendor cannot call another vendor's dokan-vendor/* ability
  • Abilities appear alongside WC core abilities in WC MCP server

🤖 Generated with Claude Code

…-16a, F-18)

Registers Dokan marketplace operations as WooCommerce Canonical Abilities
(shipping with WC 10.9 on June 23). Transport-neutral: same registration
auto-exposes each ability via MCP, REST, WP-CLI, and future AI surfaces.

F-16a — 8 admin/marketplace abilities:
  dokan/vendors-query, vendor-get, vendor-products-query, vendor-orders-query,
  vendor-approve, vendor-suspend, vendor-commission-set, marketplace-stats-summary
  Hooks woocommerce_mcp_include_ability so Dokan abilities appear alongside
  WC core abilities in the WC MCP server.

F-18 — 9 vendor self-service abilities:
  dokan-vendor/product-create, product-update, inventory-update,
  withdrawal-request, store-update, orders-query, sales-summary,
  withdrawal-history, customer-message
  Vendors manage their store through Claude/ChatGPT via Application Passwords.
  Permission callbacks enforce vendor-scope on every call; sensitive ops
  (withdrawal, store-update) block staff delegation.

Replaces: F-02 standalone MCP server (P2), F-07 admin AI agent (P2),
F-14 multi-vendor comparison API (folded into F-16b Pro).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@anik-fahmid, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 12 minutes and 45 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f3cce946-40e8-432d-b41a-3f11187e8e01

📥 Commits

Reviewing files that changed from the base of the PR and between 139de4f and 52f379e.

📒 Files selected for processing (18)
  • docs/agent-abilities.md
  • includes/AgentAbilities/Abilities/MarketplaceStatsSummary.php
  • includes/AgentAbilities/Abilities/VendorApprove.php
  • includes/AgentAbilities/Abilities/VendorCommissionSet.php
  • includes/AgentAbilities/Abilities/VendorGet.php
  • includes/AgentAbilities/Abilities/VendorInventoryUpdate.php
  • includes/AgentAbilities/Abilities/VendorOrdersQuery.php
  • includes/AgentAbilities/Abilities/VendorProductCreate.php
  • includes/AgentAbilities/Abilities/VendorProductUpdate.php
  • includes/AgentAbilities/Abilities/VendorProductsQuery.php
  • includes/AgentAbilities/Abilities/VendorStoreUpdate.php
  • includes/AgentAbilities/Abilities/VendorSuspend.php
  • includes/AgentAbilities/Abilities/VendorWithdrawalRequest.php
  • includes/AgentAbilities/Abilities/VendorsQuery.php
  • includes/AgentAbilities/Manager.php
  • includes/AgentAbilities/Permissions.php
  • includes/AgentAbilities/Schemas.php
  • includes/DependencyManagement/Providers/CommonServiceProvider.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/f16a-f18-agent-abilities

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant