Skip to main content
Glama

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:

  1. Via Composer (recommended): composer require woocommerce/qit-cli --dev

  2. Set QIT_CLI_PATH environment variable: export QIT_CLI_PATH=/path/to/qit

  3. Ensure 'qit' is available in your system PATH

For more information, visit: https://github.com/woocommerce/qit-cli

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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);
    },
  • The Zod input schema for the 'sync_cache' tool, which requires no parameters.
    inputSchema: z.object({}),
  • 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);
      },
    },
  • 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 };
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/woocommerce/qit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server