sync_cache
Update local cache data from QIT Manager to ensure test environments and results remain current for WordPress/WooCommerce plugin testing.
Instructions
Re-sync local cache with QIT Manager.
⚠️ QIT CLI not detected. QIT CLI not found. Please install it using one of these methods:
Via Composer (recommended): composer require woocommerce/qit-cli --dev
Set QIT_CLI_PATH environment variable: export QIT_CLI_PATH=/path/to/qit
Ensure 'qit' is available in your system PATH
For more information, visit: https://github.com/woocommerce/qit-cli
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/utilities.ts:149-152 (handler)The handler function for the 'sync_cache' tool. It executes the QIT CLI command 'sync' using executeAndFormat to synchronize the local cache with the QIT Manager.handler: async () => { const cmdArgs = ["sync"]; return executeAndFormat(cmdArgs); },
- src/tools/utilities.ts:148-148 (schema)The Zod input schema for the 'sync_cache' tool, which requires no parameters.inputSchema: z.object({}),
- src/tools/utilities.ts:145-153 (registration)The complete tool object definition for 'sync_cache' exported as part of utilitiesTools.sync_cache: { name: "sync_cache", description: "Re-sync local cache with QIT Manager.", inputSchema: z.object({}), handler: async () => { const cmdArgs = ["sync"]; return executeAndFormat(cmdArgs); }, },
- src/tools/index.ts:18-18 (registration)Registration of utilitiesTools (including sync_cache) into the allTools aggregate export....utilitiesTools,
- src/server.ts:29-38 (registration)MCP server ListTools handler that registers and exposes all tools from allTools, including sync_cache.const tools = Object.entries(allTools).map(([_, tool]) => ({ name: tool.name, description: cliInfo ? tool.description : `${tool.description}\n\n⚠️ QIT CLI not detected. ${getQitCliNotFoundError()}`, inputSchema: zodToJsonSchema(tool.inputSchema), })); return { tools }; });