@konsulto/mcp
Official@konsulto/mcp
MCP-сервер, который позволяет Claude Code (и любому другому клиенту с поддержкой MCP) управлять платформой аудита кибербезопасности Konsulto из CLI:
Чтение — список ваших аудитов, поиск результатов/шаблонов, чтение результата (включая тело, отрендеренное в markdown, чтобы LLM могла анализировать текст), чтение отдельного раздела.
Запись — создание результатов на основе структурированных полей (бэкенд формирует тело Tiptap), обновление скалярных значений, добавление/замена текста раздела с использованием markdown, массовое изменение статуса с предварительным просмотром (dry-run).
Доказательства — загрузка файлов/встроенного контента/base64, вставка доказательств в тело результата в нужный раздел.
Область тестирования и активы — список области тестирования, список/создание активов, сопоставление или создание актива и привязка его к результату.
Действует от имени пользователя с его правами доступа, ограниченными персональным MCP-токеном. Три уровня проверки во время выполнения: включен ли функциональный флаг арендатора, есть ли у роли право mcp:use, не отозван/не истек ли токен.
Быстрый старт
1. Создайте MCP-токен в веб-приложении Konsulto
Войдите в систему → Profile → MCP Tokens → New MCP token. Скопируйте значение kon_mcp_… один раз — оно больше не будет отображаться. (Администратор арендатора должен сначала включить интеграцию MCP в разделе Account → API Access.)
2. Сохраните токен локально
mkdir -p ~/.konsulto && chmod 700 ~/.konsulto
cat > ~/.konsulto/credentials <<EOF
token: kon_mcp_REPLACE_WITH_YOUR_TOKEN
endpoint: https://api.konsulto.io
EOF
chmod 600 ~/.konsulto/credentialsИли используйте переменную окружения KONSULTO_TOKEN, если не хотите создавать файл.
3. Сообщите Claude Code о сервере
Добавьте в ~/.claude/mcp.json:
{
"mcpServers": {
"konsulto": {
"command": "npx",
"args": ["-y", "@konsulto/mcp"]
}
}
}Проверьте подключение:
npx @konsulto/mcp doctorВы должны увидеть все зеленые галочки.
Related MCP server: claude-sessions-mcp
Привязка к папке (необязательно, рекомендуется)
Запустите npx @konsulto/mcp init внутри папки проекта, чтобы привязать её к одному аудиту:
~/audits/acme-q2-pentest/
├── .konsulto.yml ← pins this folder to one audit
├── recon/
└── notes.mdКогда Claude Code запускается в этой папке (или любой подпапке), MCP автоматически привязывает аудит. Больше не нужно думать об ID аудита.
Файл можно передавать вашей команде — он содержит ID аудита и необязательный эндпоинт, никаких секретов.
Шаблоны рабочих процессов
Шаблон | Когда использовать |
Привязка папки | Повторная работа над одним и тем же проектом. Запускайте |
| Одно рабочее пространство, переключение между аудитами. Скажите Claude "switch to <имя аудита>". |
Явное указание для каждого вызова | Работа с несколькими аудитами в одной сессии. Передавайте |
Инструменты
Каждый инструмент имеет префикс konsulto_*, чтобы не конфликтовать с другими MCP (Burp, nmap, prowler и т.д.), которые у вас могут быть настроены.
Идентификация и контекст
Инструмент | Что делает |
| Идентификация, права доступа, активный аудит. Вызывайте первым в сессии. |
| Список аудитов, в которых вы состоите. |
| Закрепление одного аудита на оставшуюся часть сессии (нечеткий поиск по имени). |
| Краткая сводка — имя, статус, количество областей/активов, сводка по критичности, команда. |
Шаблоны
Инструмент | Что делает |
| Поиск шаблонов результатов по запросу/критичности. Компактный вид — id, заголовок, критичность, резюме, имена слотов, таксономия. Без тела. |
Результаты — чтение
Инструмент | Что делает |
| Поиск внутри аудита (по умолчанию активного). |
| Чтение результата, включая его тело, отрендеренное в markdown, чтобы LLM могла анализировать текст. |
| Чтение только одного раздела тела результата в формате markdown. Дешевле, чем |
Результаты — запись
Инструмент | Что делает |
| Создание на основе структурированных полей + необязательный шаблон + доказательства. Бэкенд формирует тело Tiptap. |
| Изменение скалярных полей (заголовок, критичность, статус, таксономия, активы). |
| Массовое изменение статуса. Поддерживает |
| Добавление текста в формате markdown в раздел. Имена разделов принимают псевдонимы (recommendations, mitigation, fix, summary и т.д.) — они нормализуются до канонических ключей на стороне сервера. |
| Замена текста раздела. Старое содержимое сохраняется в истории аудита. |
Доказательства
Инструмент | Что делает |
| Загрузка пути к файлу / встроенного контента / base64. Возвращает evidenceId. |
| Вставка evidenceId в тело существующего результата (автоматическое размещение: poc → description → impact → remediation → end). |
Область тестирования и активы
Инструмент | Что делает |
| Элементы области тестирования для аудита — что разрешено тестировать. |
| Активы в аудите (или во всем арендаторе). |
| Создание хоста / URL / IAM-роли и т.д., когда сканирование обнаруживает новый актив. |
| Сопоставление или создание актива по имени и привязка его к результату. |
Вспомогательный CLI
Пакет поставляется с двумя бинарными файлами:
konsulto-mcp— stdio MCP-сервер. Claude Code запускает его. Вам не нужно запускать его напрямую.konsulto— интерактивный помощник:konsulto init— создание.konsulto.ymlдля текущей папкиkonsulto whoami— проверка токена, отображение личности + прав доступа + активного аудитаkonsulto doctor— проверка прав доступа к файлу учетных данных, валидности токена, доступности сети, включения функции MCP, наличия праваmcp:useу роли
Устранение неполадок
Симптом | Вероятная причина | Решение |
| Нет переменной | Установите переменную окружения или создайте файл (см. шаг 2 быстрого старта). |
| Вы использовали токен | Создайте токен |
401 / "authentication failed" при каждом вызове | Токен отозван или истек | Создайте новый и обновите |
403 / "tenant has disabled MCP" | Администратор арендатора отключил MCP | Попросите администратора включить его в разделе Account → API Access. |
403 / "role no longer permits MCP" | Ваша роль потеряла право | Попросите администратора предоставить это право вашей роли. |
| Слишком свободные права на файл учетных данных |
|
konsulto doctor охватывает каждую из этих проблем с предложением решения в одну строку.
Модель безопасности
Три уровня проверки при каждом запросе API: включен ли функциональный флаг арендатора, есть ли у вашей роли право
mcp:use, не отозван/не истек ли ваш токен. Отключение любого из них немедленно прекращает трафик MCP — отзыв каждого токена по отдельности не требуется.Хранение токенов:
~/.konsulto/credentials(chmod 600) или переменнаяKONSULTO_TOKEN. Никогда не храните их в~/.claude/mcp.json.Уведомление при входе с нового IP: когда ваш токен используется с IP-адреса, с которого ранее не было входов, вы получаете письмо, чтобы можно было обнаружить утечку. В письме есть ссылка на процесс отзыва.
Срок действия по умолчанию: 90 дней. Максимум 365.
Права доступа считываются в реальном времени: изменение вашей роли вступает в силу в течение одного запроса — вам не нужно перевыпускать токен.
Несколько проектов на одной машине
Установите KONSULTO_PROFILE=acme, чтобы считывать ~/.konsulto/credentials.acme вместо стандартного файла. Полезно, если вы работаете с арендатором Konsulto клиента с того же ноутбука, который используете для арендатора вашей фирмы.
Лицензия
MIT — см. LICENSE.
Available Tools
19 toolskonsulto_add_evidence_to_findingA
Graft an already-uploaded attachment into an existing finding's body at the named section. The "auto" section walks poc → description → impact → remediation → end-of-doc. Use this when adding evidence after the finding was created (e.g. screenshots taken later, additional reproduction logs).
Inputs: findingId (required), evidenceId (required), caption, section.
konsulto_append_to_sectionA
Append markdown prose to a named section of a finding. Use this to add a paragraph or two without touching the rest of the finding. Content is markdown — paragraphs, lists, code blocks, links. The backend converts it to the finding's rich-text format.
Inputs: findingId (required), section (required), content (required).
konsulto_attach_evidenceA
Upload a file (or inline content) as an attachment in the active audit. Returns an evidenceId. Pass the evidenceId to konsulto_add_evidence_to_finding or include it in konsulto_compose_finding's evidence array to graft it into a finding's body. This tool only uploads — it does NOT link to a finding by itself. Exactly one of filePath/content/contentBase64 must be set.
Inputs: audit, filePath, content, contentBase64, +2 more.
konsulto_bulk_update_statusA
Change the status of many findings at once. Use for "client confirmed the fix on all of these" or "all stale findings should be closed". Set dryRun: true first to preview affected findings before committing.
Inputs: findingIds (required), status (required), dryRun.
konsulto_compose_findingA
Create a brand-new finding from structured fields + optional template + optional evidence. The backend builds the Tiptap body from a layout — NEVER pass Tiptap JSON as a field. Use plain prose for summary/impact/remediation, an array of plain strings for stepsToReproduce. Evidence is grafted into the body at the requested section ("auto" walks poc → description → impact → remediation → end).
Inputs: fields (required), audit, templateId, severity, +2 more.
konsulto_create_assetA
Create a new asset in the active audit. Use when a scan or evidence reveals a host/URL/IP that isn't yet tracked. After creating, use konsulto_link_asset to attach it to a finding.
Inputs: name (required), type (required), audit, identifiers, +2 more.
konsulto_get_audit_contextA
One-shot orientation tool — returns the active audit's name, status, dates, scope element count, asset count, finding severity rollup, and team. Call this at session start (after whoami) to ground yourself before doing work in the audit. Defaults to the active audit; pass audit to override.
Inputs: audit.
konsulto_get_findingA
Read a single finding by ID, including its body rendered as markdown so the LLM can reason about the prose. Use when the user asks to review, explain, or summarize a specific finding. The body markdown is alongside the structured fields (severity, status, taxonomy, etc.).
Inputs: findingId (required).
konsulto_link_assetA
Attach an asset to a finding. Tries to match an existing asset by name (case-insensitive substring); creates one if none matches. Then patches the finding's assets[] to include the reference. Use this when the user says "this finding affects acme.com:443" — the tool figures out whether to reuse an existing asset or make a new one.
Inputs: findingId (required), assetHint (required), assetType.
konsulto_list_assetsA
List assets in the audit (or tenant-wide if no audit filter). Returns name, type, identifiers (hostname/ip/url/cidr) so you can match evidence to the right asset. Use konsulto_link_asset to attach an asset to a finding.
Inputs: audit, q, limit.
konsulto_list_my_auditsA
List audits this user is a team member of. Use to find the audit ID you want to work in. Filter by status (active/draft/completed/archived).
Inputs: status, limit.
konsulto_list_scopeA
List the scope elements for an audit — what's authorized to be tested. Use to confirm targets are in-scope before recording findings against them. Defaults to the active audit.
Inputs: audit.
konsulto_read_sectionA
Read just one section of a finding's body as markdown. Use for "explain the POC", "summarize the impact", "show me the remediation". Cheaper context-wise than konsulto_get_finding when the user only cares about one section. Section name accepts aliases (recommendations, mitigation, summary, etc.) — they map to canonical names server-side.
Inputs: findingId (required), section (required).
konsulto_replace_sectionA
Replace the entire prose under a named section. The previous content is preserved on the audit trail (recoverable). Prefer konsulto_append_to_section unless the user explicitly wants to rewrite the section. Content is markdown.
Inputs: findingId (required), section (required), content (required).
konsulto_search_findingsA
Search findings within an audit. Defaults to the active audit when set. Returns titles, severities, statuses, and IDs — the body field is not included. Use to check for duplicates before creating a new finding and to find a specific finding to update or attach evidence to.
Inputs: audit, q, severity, status, +1 more.
konsulto_search_templatesA
Search the finding-template catalog. Returns a slim shape (id, title, severity, summary, slot names, taxonomy) — NOT the full template body. Use this to pick a template before calling konsulto_compose_finding. When multiple candidates match, prefer the one whose summary best fits the evidence in hand.
Inputs: q, severity, limit.
konsulto_set_active_auditA
Pin one audit as the session's active audit. Subsequent tools that take an optional audit argument will default to this one. Accepts an audit ID OR a substring of the audit name (fuzzy match — exact match wins, then unique substring). Folder-level pinning via .konsulto.yml is the recommended persistent alternative.
Inputs: audit (required).
konsulto_update_findingA
Update scalar fields on an existing finding. Use this for changing title, severity, status, taxonomy, or assets — NOT for editing the prose body (use konsulto_append_to_section / konsulto_replace_section for that). NOT for evidence (use konsulto_add_evidence_to_finding).
Inputs: findingId (required), patch (required).
konsulto_whoamiA
Show who the MCP is acting as, their permissions, the active audit, and how authentication is configured. Call this first in any session to orient yourself before performing actions. Returns user identity, tenant, role permissions, MCP token expiry, and active audit pin.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Every tool has a clearly distinct purpose. Overlaps like append_to_section and replace_section are differentiated by operation type, and search vs get findings serve different needs. No ambiguity.
All tools follow a consistent 'konsulto_verb_noun' pattern. Verbs are action-specific (add, append, attach, compose, create, etc.) and nouns target distinct entities, making names predictable and easy to navigate.
19 tools cover the core workflows of a security audit MCP server—finding management, evidence, assets, templates, and audit context. The count is well-scoped, each tool earning its place without bloat.
The tool surface is comprehensive for the stated purpose, covering creating, reading, updating, and searching findings, evidence lifecycle, asset management, and audit orientation. The only notable gap is the absence of deletion operations (findings, assets, etc.), which may be intentional but slightly reduces completeness.
Maintenance
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server for the OnSecurity API that allows Claude to query Rounds, Findings, Prerequisites, Blocks and Notifications.5MIT
- AlicenseBqualityDmaintenanceMCP server for managing Claude Code conversation sessions12MIT
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT
- AlicenseAqualityDmaintenanceMCP server orchestrating local CLI agents (Claude Code, OpenAI Codex, Google Gemini) for cross-validation, second opinions, and persona-driven prompting.18MIT