Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
FileWriteRequest.php701 B
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\McpServer\Action\Tools\Filesystem\Dto; use Spiral\JsonSchemaGenerator\Attribute\Field; final readonly class FileWriteRequest { public function __construct( #[Field( description: 'Relative path to the file (e.g., "src/file.txt"). Path is resolved against project root.', )] public string $path, #[Field( description: 'Content to write to the file', )] public string $content, #[Field( description: 'Create directory if it does not exist', default: true, )] public bool $createDirectory = true, ) {} }

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