<?php

declare(strict_types=1);

require_once __DIR__ . '/../../vendor/autoload.php';

$class = new ReflectionClass(App\Framework\Mcp\Tools\GitTools::class);

echo "=== Git MCP Tools in GitTools class ===\n\n";

$tools = [];
foreach ($class->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
    $attrs = $method->getAttributes(App\Framework\Mcp\McpTool::class);
    if (! empty($attrs)) {
        $attr = $attrs[0]->newInstance();
        $tools[] = $attr->name;
    }
}

sort($tools);

foreach ($tools as $tool) {
    echo "- $tool\n";
}

echo "\nTotal: " . count($tools) . " tools\n";
