Skip to main content
Glama

get_qit_dir

Retrieve the QIT configuration directory path to access testing tools for WordPress/WooCommerce plugins.

Instructions

Get the QIT configuration directory path.

⚠️ 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 'get_qit_dir' tool. It executes the QIT CLI command 'qit:dir' using the executeAndFormat utility to retrieve the QIT configuration directory path.
    handler: async () => { const cmdArgs = ["qit:dir"]; return executeAndFormat(cmdArgs); },
  • Input schema for 'get_qit_dir' tool, which takes no parameters.
    inputSchema: z.object({}),
  • The tool registration object defining 'get_qit_dir' within utilitiesTools, which is later aggregated into allTools.
    get_qit_dir: { name: "get_qit_dir", description: "Get the QIT configuration directory path.", inputSchema: z.object({}), handler: async () => { const cmdArgs = ["qit:dir"]; return executeAndFormat(cmdArgs); }, },
  • Registration of utilitiesTools (containing get_qit_dir) into the allTools aggregate export used by the server.
    ...utilitiesTools,

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