Skip to main content
Glama
@konsulto/mcp

@konsulto/mcp

Official
by konsulto

@konsulto/mcp

License: MIT Node

Claude Code(およびその他のMCP対応クライアント)が、CLIからKonsultoサイバーセキュリティ監査プラットフォームを操作できるようにするMCPサーバーです:

  • 読み取り — 参加中の監査の一覧表示、指摘事項やテンプレートの検索、指摘事項の読み取り(LLMが文章を推論できるようにMarkdown形式でレンダリングされた本文を含む)、セクション単位の読み取り。

  • 書き込み — 構造化されたフィールドからの指摘事項作成(バックエンドがTiptap形式の本文を構築)、スカラー値の更新、Markdownを使用したセクション本文の追加・置換、ドライランプレビュー付きのステータス一括変更。

  • 証拠 — ファイル/インラインコンテンツ/base64のアップロード、指摘事項の適切なセクションへの証拠の組み込み。

  • スコープと資産 — スコープの一覧表示、資産の一覧表示・作成、資産の照合・作成および指摘事項へのリンク付け。

ユーザーのロール権限に基づいて動作し、ユーザーごとのMCPトークンによって制御されます。テナントの機能フラグが有効であること、ロールに mcp:use があること、トークンが失効・期限切れでないこと、という3つの実行時ゲートがあります。

クイックスタート

1. KonsultoウェブアプリでMCPトークンを発行する

サインイン → プロフィール → MCPトークン → 新しいMCPトークン。kon_mcp_… の値をコピーしてください(一度しか表示されません)。(テナント管理者が アカウント → APIアクセス でMCP統合を有効にしている必要があります。)

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とオプションのエンドポイントが含まれますが、機密情報は含まれません。

ワークフローパターン

パターン

使用タイミング

フォルダー固定 .konsulto.yml

同じエンゲージメントで繰り返し作業する場合。フォルダーごとに一度 konsulto init を実行。

セッションごとの set_active_audit

1つのワークスペースで、意識的に監査を切り替える場合。Claudeに「<監査名>に切り替えて」と指示。

呼び出しごとの明示的指定

1つのセッションで複数の監査を扱う場合。各ツール呼び出しに audit: を渡す。

ツール

すべてのツールには konsulto_* というプレフィックスが付いているため、設定済みの他のMCP(Burp、nmap、prowlerなど)と競合しません。

IDとコンテキスト

ツール

内容

konsulto_whoami

ID、権限、アクティブな監査。セッションの最初に呼び出します。

konsulto_list_my_audits

参加中の監査の一覧。

konsulto_set_active_audit

セッションの残りの期間、特定の監査を固定(名前によるあいまい一致)。

konsulto_get_audit_context

概要の確認 — 名前、ステータス、スコープ/資産数、重大度の集計、チーム。

テンプレート

ツール

内容

konsulto_search_templates

クエリ/重大度で指摘事項テンプレートを検索。軽量な形式 — ID、タイトル、重大度、概要、スロット名、分類。本文は含まれません。

指摘事項 — 読み取り

ツール

内容

konsulto_search_findings

監査内を検索(デフォルトはアクティブな監査)。

konsulto_get_finding

LLMが文章を推論できるようにMarkdown形式でレンダリングされた本文を含む指摘事項を読み取り。

konsulto_read_section

指摘事項の本文の1セクションのみをMarkdownとして読み取り。「POCを説明して」といった場合に get_finding より低コスト。

指摘事項 — 書き込み

ツール

内容

konsulto_compose_finding

構造化フィールド + オプションのテンプレート + 証拠から作成。バックエンドがTiptap形式の本文を構築。

konsulto_update_finding

スカラーフィールド(タイトル、重大度、ステータス、分類、資産)を変更。

konsulto_bulk_update_status

ステータスの一括変更。プレビュー用の dryRun: true をサポート。

konsulto_append_to_section

セクションにMarkdownの文章を追加。セクション名はエイリアス(recommendations, mitigation, fix, summaryなど)を受け入れ、サーバー側で正規のキーに正規化されます。

konsulto_replace_section

セクションの文章を置換。古い内容は監査証跡に保存されます。

証拠

ツール

内容

konsulto_attach_evidence

ファイルパス / インラインコンテンツ / base64をアップロード。evidenceIdを返します。

konsulto_add_evidence_to_finding

既存の指摘事項の本文にevidenceIdを組み込みます(auto 配置は poc → description → impact → remediation → end の順で探索)。

スコープと資産

ツール

内容

konsulto_list_scope

監査のスコープ要素 — テストが許可されている対象。

konsulto_list_assets

監査内(またはテナント全体)の資産。

konsulto_create_asset

スキャンで未追跡の資産が見つかった場合に、ホスト / URL / IAMロールなどを作成。

konsulto_link_asset

名前で資産を照合または作成し、指摘事項にリンク付け。

ヘルパーCLI

パッケージには2つのバイナリが含まれています:

  • konsulto-mcp — stdio MCPサーバー。Claude Codeがこれを起動します。直接実行することはありません。

  • konsulto — 対話型ヘルパー:

    • konsulto init — 現在のフォルダーに .konsulto.yml を作成

    • konsulto whoami — トークンの検証、ID + 権限 + アクティブな監査の表示

    • konsulto doctor — 認証ファイルモード、トークンの有効性、ネットワーク到達性、MCP機能の有効化、ロールの mcp:use 権限の健全性チェック

トラブルシューティング

症状

考えられる原因

修正方法

No Konsulto credentials found

KONSULTO_TOKEN 環境変数なし、~/.konsulto/credentials ファイルなし

環境変数を設定するか、ファイルを作成してください(クイックスタートの手順2を参照)。

This token is a tenant integration key, not an MCP token

kon_live_* トークンを使用している

プロフィール → MCPトークンから kon_mcp_* トークンを発行してください。

すべてのツールで401 / "authentication failed"

トークンが失効または期限切れ

新しいトークンを発行し、~/.konsulto/credentials を更新してください。

403 / "tenant has disabled MCP"

テナント管理者がMCPをオフにしている

管理者にアカウント → APIアクセスから再度有効にするよう依頼してください。

403 / "role no longer permits MCP"

ロールから mcp:use が削除された

管理者にロールへの権限付与を依頼してください。

permissions file mode is 644

認証ファイルの権限が緩い

chmod 600 ~/.konsulto/credentials を実行してください。

konsulto doctor は、これらそれぞれに対して1行の修正案を提示します。

セキュリティモデル

  • すべてのAPIリクエストに対する3つのライブゲート: テナント機能フラグが有効であること、ロールに mcp:use があること、トークンが失効・期限切れでないこと。いずれかが変更されると、MCPトラフィックは即座に遮断されます(トークンごとの失効処理は不要)。

  • トークンストレージ: ~/.konsulto/credentials (chmod 600) または KONSULTO_TOKEN 環境変数。~/.claude/mcp.json には決して保存しないでください。

  • 新しいIPからの初回アクセス時のメール通知: 未知のIPからトークンが使用されるとメールが届くため、漏洩を検知できます。メールには失効フローへのリンクが含まれています。

  • デフォルトの有効期限: 90日。最大365日。

  • 権限はライブで読み取り: ロールを変更すると1リクエスト以内に反映されるため、トークンの再発行は不要です。

1台のマシンでの複数エンゲージメント

KONSULTO_PROFILE=acme を設定すると、デフォルトの代わりに ~/.konsulto/credentials.acme を読み取ります。自社のテナントと顧客のテナントを同じノートPCから操作する場合に便利です。

ライセンス

MIT — LICENSE を参照してください。

Available Tools

19 tools
konsulto_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_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

    A4.2/5.0

    Scored across 19 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers