We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/context-hub/generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
TemplateDetectionStrategy.php•882 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Template\Detection\Strategy;
use Butschster\ContextGenerator\Application\FSPath;
use Butschster\ContextGenerator\Template\Detection\TemplateDetectionResult;
/**
* Strategy interface for template detection approaches
*/
interface TemplateDetectionStrategy
{
/**
* Attempt to detect a template for the given project
*/
public function detect(FSPath $projectRoot, array $projectMetadata): ?TemplateDetectionResult;
/**
* Get the confidence threshold this strategy requires to be considered valid
*/
public function getConfidenceThreshold(): float;
/**
* Get the priority of this strategy (higher = runs first)
*/
public function getPriority(): int;
/**
* Get the name of this detection strategy
*/
public function getName(): string;
}