Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions docs/en/guides/ai.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: Use from AI (MCP)
description: Triage vulnerabilities and work with projects, estimates and tasks from AI clients such as Claude, using a personal token and the Vectana MCP server.
---

Vectana has an [MCP](https://modelcontextprotocol.io/) server so AI clients such as Claude Desktop and Claude Code can work with it. Ask in plain words: "summarize the CRITICAL vulnerabilities assigned to me", "import this package-lock.json into the internal tool project", "create an initial estimate for the ACME deal".

The AI acts **with your permissions**. Projects you cannot see and fields you cannot change stay hidden and read-only for the AI too.

## Issue a personal token

Issue one under **Personal settings → Personal tokens (AI and scripts)**.

![Personal tokens](/screenshots/en/personal-tokens.png)

1. Enter what it is for (e.g. `Claude Desktop`)
2. Choose its access
- **Read only**: view lists and details only; nothing can be added or changed
- **Read and write**: everything you can do yourself
3. Choose an expiry and press **Issue**. The token (starting with `vcu_`) and MCP settings are shown

:::warning
A token is shown **only once**, when issued. If you lose it or it may have leaked, revoke it with the trash icon and issue a new one.
:::

We recommend starting with **Read only** and switching to **Read and write** once you are comfortable. A personal token cannot issue or revoke tokens.

## Add it to your MCP client

### Claude Desktop and others

Add this to the settings file (`claude_desktop_config.json` for Claude Desktop). You can copy it from the page where you issued the token.

```json
{
"mcpServers": {
"vectana": {
"command": "npx",
"args": ["-y", "@techolve/vectana-mcp"],
"env": {
"VECTANA_URL": "https://vectana.example.com",
"VECTANA_TOKEN": "vcu_..."
}
}
}
}
```

### Claude Code

```bash
claude mcp add vectana \
-e VECTANA_URL=https://vectana.example.com \
-e VECTANA_TOKEN=vcu_... \
-- npx -y @techolve/vectana-mcp
```

Node.js 20 or later is required.

### Environment variables

| Variable | Meaning |
| --- | --- |
| `VECTANA_URL` | Your Vectana URL (required) |
| `VECTANA_TOKEN` | Personal token (required) |
| `VECTANA_LOCALE` | `ja` or `en`: language of error messages |
| `VECTANA_READ_ONLY` | Set to `1` to offer only read tools to the AI |

## What it can do

| Area | What you can do |
| --- | --- |
| Dashboard | Read your dashboard and the organization dashboard |
| Vulnerabilities | List and view, change status, assignee and due date, comment |
| Packages | List, add by hand, import lockfiles and SBOMs, scan now |
| EOL | List EOL findings, list and add runtimes |
| Projects | List and view, create and update (including deal stages), assign members |
| Customers | List and view, create and update, add contacts |
| Estimates | List and view, create and update (with lines) |
| Tasks | Your tasks, project tasks, create and update, create security tasks |
| Sprints | List, burndown, velocity, create and update |

To import a lockfile or SBOM, just give the path of the file on the computer running the AI client ([supported formats](/guides/packages)).

:::note
So that an AI cannot delete data by mistake, **nothing can be deleted** through it. Delete from the web app instead.
:::

## Example requests

- "List my overdue vulnerabilities in Vectana"
- "Import `./package-lock.json` into the internal tool project and scan it"
- "lodash's vulnerability does not affect us: set it to ignored and leave the reason as a comment"
- "Create security tasks for the vulnerabilities that have none and assign them to me"
- "Create an initial estimate for the ACME deal: basic design 10 person-days, detailed design 15"
- "Look at the current sprint's burndown and tell me whether we will finish"
2 changes: 1 addition & 1 deletion docs/en/guides/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default defineMeta({
title: "Guides",
icon: "book-open",
order: 2,
pages: ["projects", "tasks", "sales", "packages", "ci", "vulnerabilities", "eol", "notifications"],
pages: ["projects", "tasks", "sales", "packages", "ci", "ai", "vulnerabilities", "eol", "notifications"],
});
96 changes: 96 additions & 0 deletions docs/guides/ai.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: AI から操作する(MCP)
description: 個人用トークンと Vectana の MCP サーバで、Claude などの AI クライアントから脆弱性のトリアージやプロジェクト・見積・タスクを操作する方法。
---

Vectana には、Claude Desktop や Claude Code などの AI クライアントから操作するための [MCP](https://modelcontextprotocol.io/) サーバがあります。「自分に割り当てられた CRITICAL の脆弱性をまとめて」「この package-lock.json を社内ツールに取り込んで」「ACME 社の商談に初期見積を作って」のように、普段の言葉で頼めます。

AI は**あなたの権限で**操作します。画面で見えないプロジェクトや、変更できない項目は、AI からも見えず変更もできません。

## 個人用トークンを発行する

「個人設定」の「個人用トークン(AI・スクリプト連携)」で発行します。

![個人用トークン](/screenshots/ja/personal-tokens.png)

1. 用途(例: `Claude Desktop`)を入力します
2. 権限を選びます
- **読み取りのみ**: 一覧や詳細を見るだけ。登録・変更はできません
- **読み書き**: あなたができる操作をすべて行えます
3. 有効期限を選んで「発行」を押すと、`vcu_` で始まるトークンと MCP の設定例が表示されます

:::warning
トークンは**発行したときに一度だけ**表示されます。紛失した場合や漏れた可能性がある場合は、ゴミ箱で失効させて発行し直してください。
:::

まずは「読み取りのみ」で試し、慣れてから「読み書き」にするのがおすすめです。個人用トークンでは、ほかのトークンの発行や失効はできません。

## MCP クライアントに登録する

### Claude Desktop など

設定ファイル(Claude Desktop なら `claude_desktop_config.json`)に追加します。発行画面の設定例をそのままコピーできます。

```json
{
"mcpServers": {
"vectana": {
"command": "npx",
"args": ["-y", "@techolve/vectana-mcp"],
"env": {
"VECTANA_URL": "https://vectana.example.com",
"VECTANA_TOKEN": "vcu_..."
}
}
}
}
```

### Claude Code

```bash
claude mcp add vectana \
-e VECTANA_URL=https://vectana.example.com \
-e VECTANA_TOKEN=vcu_... \
-- npx -y @techolve/vectana-mcp
```

Node.js 20 以上が必要です。

### 設定できる環境変数

| 変数 | 内容 |
| --- | --- |
| `VECTANA_URL` | Vectana の URL(必須) |
| `VECTANA_TOKEN` | 個人用トークン(必須) |
| `VECTANA_LOCALE` | `ja` または `en`。エラーメッセージの言語 |
| `VECTANA_READ_ONLY` | `1` にすると、読み取り系のツールだけを AI に見せます |

## できること

| 機能 | できること |
| --- | --- |
| ダッシュボード | 自分のダッシュボード、組織別ダッシュボードの数字を確認 |
| 脆弱性 | 一覧・詳細の確認、対応状況・担当者・期限の変更、コメント |
| パッケージ | 一覧、手動登録、lockfile・SBOM の取り込み、今すぐスキャン |
| EOL | EOL の一覧、ランタイムの一覧と登録 |
| プロジェクト | 一覧・詳細、作成・更新(商談のステージ変更を含む)、メンバーのアサイン |
| 顧客 | 一覧・詳細、作成・更新、担当者の追加 |
| 見積 | 一覧・詳細、作成・更新(明細を含む) |
| タスク | 自分のタスク、プロジェクトのタスク、作成・更新、セキュリティ対応タスクの作成 |
| スプリント | 一覧、バーンダウン、ベロシティ、作成・更新 |

lockfile や SBOM は、AI クライアントが動いているパソコン上のファイルパスを伝えればそのまま取り込めます([対応形式](/guides/packages))。

:::note
AI が誤ってデータを消さないよう、**削除の操作はできません**。削除は画面から行ってください。
:::

## 頼み方の例

- 「Vectana で自分が担当の脆弱性のうち、期限切れのものを一覧にして」
- 「社内ツールのプロジェクトに `./package-lock.json` を取り込んで、スキャンして」
- 「lodash の脆弱性は影響しないので ignored にして、理由をコメントに残して」
- 「タスク化されていない脆弱性からセキュリティ対応タスクを作って、自分に割り当てて」
- 「ACME 社の商談に、基本設計 10 人日・詳細設計 15 人日で初期見積を作って」
- 「今のスプリントのバーンダウンを見て、終わりそうか教えて」
2 changes: 1 addition & 1 deletion docs/guides/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default defineMeta({
title: "使い方",
icon: "book-open",
order: 2,
pages: ["projects", "tasks", "sales", "packages", "ci", "vulnerabilities", "eol", "notifications"],
pages: ["projects", "tasks", "sales", "packages", "ci", "ai", "vulnerabilities", "eol", "notifications"],
});
Binary file added public/screenshots/en/personal-tokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshots/ja/personal-tokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading