Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
SourceInterface.php1.02 kB
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Source; use Butschster\ContextGenerator\Modifier\ModifiersApplierInterface; use Butschster\ContextGenerator\SourceParserInterface; interface SourceInterface extends \JsonSerializable { /** * Get source description */ public function getDescription(): string; public function hasDescription(): bool; /** * Get all source tags * * @return array<non-empty-string> */ public function getTags(): array; /** * Check if source has any tags */ public function hasTags(): bool; /** * Parse the content for this source * * @param SourceParserInterface $parser Parser for the source content * @param ModifiersApplierInterface $modifiersApplier Applier for content modifiers * @return string Parsed content */ public function parseContent( SourceParserInterface $parser, ModifiersApplierInterface $modifiersApplier, ): string; }

MCP directory API

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