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
TemplateDefinitionInterface.php•1.07 KiB
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Template\Definition;
use Butschster\ContextGenerator\Template\Template;
/**
* Interface for template definitions
*/
interface TemplateDefinitionInterface
{
/**
* Create the template instance
*
* @param array<string, mixed> $projectMetadata Optional project metadata for context-aware template creation
*/
public function createTemplate(array $projectMetadata = []): Template;
/**
* Get the template name/identifier
*/
public function getName(): string;
/**
* Get the template description
*/
public function getDescription(): string;
/**
* Get template tags for categorization
*
* @return array<string>
*/
public function getTags(): array;
/**
* Get the template priority (higher = more preferred)
*/
public function getPriority(): int;
/**
* Get detection criteria for automatic selection
*
* @return array<string, mixed>
*/
public function getDetectionCriteria(): array;
}