PHP code example of freento / module-mcp-audit

1. Go to this page and download the library: Download freento/module-mcp-audit library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

freento / module-mcp-audit example snippets

bash
composer nto module:enable Freento_McpAudit
php bin/magento setup:upgrade
php bin/magento cache:flush
bash
php bin/magento module:enable Freento_McpAudit
php bin/magento setup:upgrade
php bin/magento cache:flush
xml
<type name="Freento\Mcp\Model\ToolRegistry">
    <arguments>
        <argument name="tools" xsi:type="array">
            <item name="get_table_sizes" xsi:type="object">Freento\McpAudit\Model\Tool\GetTableSizes</item>
            <!-- … 15 more entries … -->
        </argument>
    </arguments>
    <plugin name="freento_mcp_audit_tool_registry"
            type="Freento\McpAudit\Plugin\ToolRegistryPlugin"
            sortOrder="100"/>
</type>
bash
curl -X POST https://your-store.com/freento_mcp/index/index \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
        "jsonrpc":"2.0","id":6,"method":"tools/call",
        "params":{"name":"get_php_ini_settings","arguments":{
          "keys":["memory_limit","max_execution_time",
                  "opcache.memory_consumption","opcache.validate_timestamps"]
        }}
      }'