Coravixa AI Connector and Store MCP Connect

Let Claude, ChatGPT, Gemini or any MCP-compatible AI client build pages and manage your WooCommerce store through secured, revocable tokens. No OpenAI, Anthropic or Google API key is stored in WordPress.

Back to documentation

Video tutorial (2 min 5 s, with voiceover)

The video has English voiceover and captions, and is hosted on the Coravixa YouTube channel. Chapters: 0:17 open AI Connector · 0:30 create a token · 0:48 copy the one URL · 1:04 paste it into your AI app · 1:23 test with a prompt · 1:40 manage and revoke tokens. The video covers the AI Connector one-URL method; Store MCP Connect is described below.

The two connectors at a glance

Coravixa includes two separate MCP (Model Context Protocol) connectors. Both let an AI assistant call a fixed list of approved tools. Neither one gives the AI access to PHP execution, shell commands, raw SQL, file deletion or secrets.

AI ConnectorStore MCP Connect
PurposePlan sites, generate sections and create draft pagesLook after the shop: products, stock, prices, orders, payment methods, workflows and undo
Where it livesCompanion plugin Coravixa AI Connector (bundled with the theme)Built into Coravixa Core
Admin screenCoravixa → AI ConnectorCoravixa → Store MCP Connect
Tools716
Endpoint/wp-json/coravixa-ai/v1/mcp/wp-json/coravixa/v1/mcp
Token prefixcai_vmcp_
Default stateActive once the plugin is activated; no token means no accessOff until you press Turn on
Needs WooCommerceNoYes
Two ways to connect (AI Connector 1.1). One-URL method: click Generate token and connection URL, copy the single URL that already contains the token and paste it into the Server URL field of an app that has no header field (for example a custom connector dialog), with No authentication selected. Header method: use the plain endpoint with Authorization: Bearer YOUR_TOKEN in Claude Code and similar clients. Store MCP Connect uses the header method only.

Before you start

Step 1: Install the AI Connector plugin

  1. Go to Appearance → Install Plugins.
  2. Install and activate Coravixa AI Connector. The ZIP is bundled inside the Coravixa theme package.
  3. Open Coravixa → AI Connector.

Store MCP Connect needs no installation. It ships inside Coravixa Core.

Step 2: Create a token in AI Connector

  1. On Coravixa → AI Connector, copy the MCP endpoint shown in the table (https://your-site.com/wp-json/coravixa-ai/v1/mcp).
  2. Under Create token, enter a name (for example Claude laptop), choose Read only or Read & write, and set how many days the token stays valid. The default is 90 days. Enter 0 for no expiry.
  3. Click Generate token and connection URL. A yellow notice shows one single connection URL that already contains the token (endpoint + cai_… token). Click Copy URL; it is shown only once. For clients with a header field, the plain token is shown below the URL. WordPress stores only a SHA-256 fingerprint.
Which scope? Start with Read only. A read-only token can list pages, list section types, read the site overview and generate a site plan or a section. Create a Read & write token only when you want the AI to create draft pages or append sections.
Coravixa AI Connector admin screen
Coravixa → AI Connector: endpoint, token form and local generators.

Step 3: Turn on Store MCP Connect and create a token

  1. Open Coravixa → Store MCP Connect. The status pill shows Off.
  2. Click Turn on. While it is off, every token is rejected with a 503 message.
  3. Under 2. Access tokens, enter a name, choose Read only (recommended) or Read & write, and choose 7 days, 30 days, 90 days or 1 year.
  4. Click Create token and copy it. It starts with vmcp_ and is shown only once. If you lose it, revoke it and create a new one.
  5. Copy the Server address from 1. Connect (https://your-site.com/wp-json/coravixa/v1/mcp).

A token acts with the rights of the administrator who created it, never more. If that administrator later loses store access, the token stops working.

Step 4: Connect your AI client

Replace the address and token with your own values. Use the endpoint of the connector you want (see the table above).

Claude Code (command line)

claude mcp add --transport http coravixa https://your-site.com/wp-json/coravixa/v1/mcp --header "Authorization: Bearer YOUR_TOKEN"

Add the AI Connector in the same way with a different name and its own endpoint and cai_ token:

claude mcp add --transport http coravixa-pages https://your-site.com/wp-json/coravixa-ai/v1/mcp --header "Authorization: Bearer YOUR_CAI_TOKEN"

Other MCP clients (JSON configuration)

{
  "mcpServers": {
    "coravixa": {
      "type": "http",
      "url": "https://your-site.com/wp-json/coravixa/v1/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

Any other client

Send JSON-RPC 2.0 POST requests to the endpoint with the header Authorization: Bearer YOUR_TOKEN. Alternative header names are X-Coravixa-AI-Token (AI Connector) and X-Coravixa-Token (Store MCP Connect). The AI Connector also offers a public status check at /wp-json/coravixa-ai/v1/status.

ChatGPT and Gemini. If the app only has a Server URL field and offers OAuth or No authentication, use the one-URL method: generate the token in Coravixa, copy the connection URL (shown once) and paste it as the Server URL with No authentication. The URL looks like https://your-site.com/wp-json/coravixa-ai/v1/mcp/cai_xxxxxxxx_…. The model runs in your AI client. WordPress only exposes the approved tools.
Treat the connection URL like a password. Anyone who has it can use that token. Prefer a Read only token with a short expiry, never post the URL in screenshots or public chats, and revoke it from the token list if it is exposed. Web server access logs on your own hosting may record the URL, so keep logs private. Responses are sent with no-store and no-referrer headers.

Step 5: Test with safe prompts

Begin with read-only requests and watch the tools the assistant calls.

Then, with a Read & write token, try one harmless change:

Preview, APPLY and undo

Store changes follow a two-step workflow so nothing changes by surprise.

  1. preview_store_workflow validates up to 20 steps (update_stock, update_price, update_order_status, set_payment_method, create_page) and changes nothing.
  2. You review the preview. Then the assistant calls execute_store_workflow with the confirmation text APPLY. Any other value is refused.
  3. Supported write actions record a Change Safety snapshot. Ask the assistant to run list_change_snapshots and then restore_change with a snapshot ID to undo.

Local Page Generator and Section Generator (no AI API)

Both admin screens work without an AI client. On Coravixa → AI Connector:

These generators use deterministic prompt matching, Coravixa niche data and existing theme layouts. They never call an external AI service. Generated pages are drafts for review.

AI Connector tools (7)

ToolAccessWhat it does
site_overviewReadSite name, URL, WordPress and theme versions.
list_pagesReadLists pages with status and edit links. Optional search and limit.
list_section_typesReadLists Coravixa Section Builder sections and their styles.
generate_site_planReadCreates a local site plan from a business brief. No external AI API.
generate_sectionReadReturns Gutenberg block markup for one section. Nothing is saved.
create_page_from_promptRead & writeCreates a draft page from a brief, with optional section list and styles.
append_section_to_pageRead & writeAppends one generated section to a page after saving a revision.

Store MCP Connect tools (16)

ToolAccessWhat it does
store_overviewReadProduct counts, orders by status, enabled payment methods, pickup.
list_productsReadLists products with optional search, status and stock filters.
get_productReadDetails of one product by ID.
list_ordersReadRecent orders. Customer names, emails and addresses are never returned.
list_payment_methodsReadPayment methods managed by the Coravixa Payments Hub and whether each is on.
list_pagesReadLists pages with status and links.
list_section_typesReadSection Builder sections, styles and look groups.
list_change_snapshotsReadRecent reversible changes recorded by Change Safety.
preview_store_workflowReadValidates and previews a multi-step workflow without changing data.
update_product_stockRead & writeSets stock for a simple product or variation.
update_product_priceRead & writeSets regular and optional sale price for a simple product or variation.
update_order_statusRead & writeMoves an order to processing, completed, on-hold or cancelled, with an optional note. Refunded orders cannot be changed.
set_payment_methodRead & writeTurns an installed payment method on or off.
create_page_from_sectionsRead & writeCreates a draft page from Section Builder sections.
restore_changeRead & writeRestores one Change Safety snapshot.
execute_store_workflowRead & writeRuns a reviewed workflow. Requires the confirmation APPLY.

Security and limits

Localhost and staging

Cloud AI services cannot reach localhost. For local XAMPP development, expose only the MCP endpoint through a secure HTTPS tunnel. On staging or production, use the site's HTTPS URL. Store MCP Connect enforces HTTPS only when the site environment type is production.

Troubleshooting

MessageCause and fix
Missing or malformed tokenThe header must be Authorization: Bearer cai_… or vmcp_…. Use the AI Connector token with the AI Connector endpoint and the Store MCP token with the Store MCP endpoint.
Invalid token / expiredThe token was revoked or has expired. Create a new one.
Store MCP Connect is switched off (503)Open Coravixa → Store MCP Connect and press Turn on.
HTTPS is required (400)Production sites must use HTTPS. Fix the site URL or SSL certificate.
This token is read-onlyCreate a Read & write token for write tools.
Too many requests (429) / Too many failed attemptsWait one minute (rate limit) or ten minutes (failed attempts), then check the token.
Token owner lacks capability / creator lost accessTokens act as the administrator who created them. Create a new token as an administrator with the needed rights.
WooCommerce is not activeActivate WooCommerce for the Store MCP tools.
Coravixa Core Section Builder is requiredActivate Coravixa Core before generating sections or pages.
Client cannot connect, no header fieldThe app has no header field. Use the one-URL method (paste the generated connection URL as Server URL, with No authentication) or a client that accepts a custom Authorization header.
Works on the site but not on localhostUse a secure HTTPS tunnel or a staging domain.

Frequently asked questions

Do I need an OpenAI, Anthropic or Google API key in WordPress?

No. The AI model runs in your AI client. WordPress only exposes approved tools through revocable tokens, and the built-in generators run locally.

Can the AI delete products, orders or pages?

No. There are no delete tools, and the connector does not expose PHP execution, shell, raw SQL or secrets.

Can I undo a change made by the AI?

Supported store changes create Change Safety snapshots. Use list_change_snapshots and restore_change. Generated pages are drafts that you can simply delete or edit in WordPress.

Can I use both connectors at once?

Yes. Add both endpoints to your client with their own tokens.

Is MediaSource required?

No. The connectors and local generators work independently of MediaSource.