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
SourceModifierInterface.php•669 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Modifier;
interface SourceModifierInterface
{
/**
* Get the identifier for this modifier
*/
public function getIdentifier(): string;
/**
* Check if this modifier supports the given content type
*/
public function supports(string $contentType): bool;
/**
* Modify the source content
*
* @param string $content PHP code content
* @param array<string, mixed> $context Additional context information
* @return string Formatted markdown documentation
*/
public function modify(string $content, array $context = []): string;
}