Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
TitleBlock.php772 B
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Lib\Content\Block; use Butschster\ContextGenerator\Lib\Content\Renderer\RendererInterface; /** * Block for title/heading content */ final readonly class TitleBlock extends AbstractBlock { /** * @param string $content The title content * @param int $level The heading level (1-6) */ public function __construct( string $content, private int $level = 1, ) { parent::__construct($content); } /** * Get the heading level */ public function getLevel(): int { return $this->level; } public function render(RendererInterface $renderer): string { return $renderer->renderTitleBlock($this); } }

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