GitHub README в PDF
Получает README с GitHub и рендерит в PDF
Создайте PDF из GitHub README.
**Источник:**
- URL репозитория или `owner/repo`
- Доп. ветка и путь README
**Вывод:**
- Оформление в стиле GitHub и параметры печати
Документация API
Конечная точка запроса
POST /ru/api/tools/github-readme-to-pdf
Параметры запроса
| Имя параметра | Тип | Обязательно | Описание |
|---|---|---|---|
| repository | text | Да | - |
| branch | text | Нет | - |
| readmePath | text | Нет | - |
| theme | select | Нет | - |
| baseFontSize | number | Нет | - |
| pageSize | select | Нет | - |
| landscape | checkbox | Нет | - |
| printBackground | checkbox | Нет | - |
| marginTop | number | Нет | - |
| marginBottom | number | Нет | - |
| marginLeft | number | Нет | - |
| marginRight | number | Нет | - |
| waitUntil | select | Нет | - |
| waitTime | number | Нет | - |
Формат ответа
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
Файл:
Файл
Документация MCP
Добавьте этот инструмент к конфигурации сервера MCP:
{
"mcpServers": {
"elysiatools-github-readme-to-pdf": {
"name": "github-readme-to-pdf",
"description": "Получает README с GitHub и рендерит в PDF",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=github-readme-to-pdf",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Вы можете объединять несколько инструментов, например: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, максимум 20 инструментов.
Если вы столкнулись с проблемами, пожалуйста, свяжитесь с нами по адресу [email protected]