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
TransformerConfig.php•461 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Rag\Config;
final readonly class TransformerConfig
{
public function __construct(
public int $chunkSize = 1000,
public int $overlap = 200,
) {}
public static function fromArray(array $data): self
{
return new self(
chunkSize: (int) ($data['chunk_size'] ?? 1000),
overlap: (int) ($data['overlap'] ?? 200),
);
}
}