# دستیاران هوش مصنوعی (MCP)

VDM comes with an [MCP](https://modelcontextprotocol.io) server, `voltdownloadmanager-mcp`, so an AI assistant that supports MCP (Claude Desktop, Claude Code, Cursor, VS Code and others) can work with the downloads in your running VDM. You ask in your own words:

- "What is VDM downloading right now, and how long is left?"
- «امشب https://example.com/big.iso را در D:\ISOs بارگیری کن، اما هنوز بارگیری را شروع نکن.»
- «مکث همه بارگیری‌های در حال انجام.»
- «بارگیری‌های تمام شده را از لیست حذف کن اما فایل‌ها را نگه دار.»

دستیار خودش سرور را راه‌اندازی می‌کند؛ شما فقط یک بار به دستیار می‌گویید که کجاست. سرور هر درخواست را از طریق [API اتوماسیون](https://vdm.mikaillab.com/fa/help/command-line.html#the-automation-api) خود، فقط در همین رایانه، به برنامه ارسال می‌کند.

## دستیار چه کارهایی می‌تواند انجام دهد

| ابزار | آنچه انجام می‌دهد |
|---|---|
| `list_downloads` | بارگیری‌های شما را به ترتیب جدیدترین‌ها فهرست می‌کند: فایل، آدرس، پوشه، وضعیت، اندازه، میزان تکمیل‌شده و سرعت. می‌تواند فقط یک شناسه، فقط یک وضعیت (در صف، در حال بارگیری، متوقف شد، کامل، خطا)، فقط نام‌ها و آدرس‌هایی که حاوی متنی خاص هستند، یا فقط یک دسته یا صف را فهرست کند؛ همچنین فضای خالی دیسک را نیز گزارش می‌دهد. |
| `add_download` | Adds an http, https, ftp or ftps address and starts it, or only queues it (into the main queue by default, or a designated queue). It can say which folder, file name and category to use, the checksum the finished file must have, in the same form as the command line's `--checksum` (hex MD5, SHA-1, SHA-256, SHA-512 or CRC32, optionally named, e.g. `sha256:…`), and a custom Referer, User-Agent, or Cookie header. A magnet link opens **Add torrent** in VDM, for you to choose the files. |
| `pause_downloads` | بارگیری‌های در حال اجرا را مکث می‌کند. |
| `resume_downloads` | بارگیری‌های متوقف‌شده، در صف یا ناموفق را آغاز می‌کند یا از سر می‌گیرد. |
| `remove_downloads` | بارگیری‌ها را از فهرست حذف می‌کند و فایل‌هایشان را نگه می‌دارد؛ در صورت درخواست، فایل‌ها را هم حذف می‌کند. ابتدا باید بارگیری در حال اجرا را متوقف کرد. |
| `start_queue` | یک صف بارگیری را شروع می‌کند (به‌طور پیش‌فرض صف اصلی، یا با نام). |
| `stop_queue` | یک صف بارگیری را متوقف می‌کند (به‌طور پیش‌فرض صف اصلی، یا با نام). |

The assistant can't change VDM's options, see your browser, or turn the automation API on by itself.

## تنظیم

### 1. روشن کردن API خودکارسازی

Listing and acting on downloads needs VDM's automation API, which is off until you turn it on. With VDM running, run this once (it stays on):

```
voltdownloadmanager-cli api on
```

`voltdownloadmanager-cli api off` turns it off again. Without the API, the assistant can still add downloads, the same as VDM's [command line](https://vdm.mikaillab.com/fa/help/command-line.html#the-apps-command-line).

### 2. یافتن سرور

`voltdownloadmanager-mcp`کنار برنامه است:

| شما نصب کردید | سرور |
|---|---|
| Windows، فقط برای شما (پیش‌فرض نصب‌کننده) | `%LOCALAPPDATA%\Programs\Volt Download Manager\voltdownloadmanager-mcp.exe` |
| Windows، برای همه | `C:\Program Files\Volt Download Manager\voltdownloadmanager-mcp.exe` |
| Windows، یک فایل فشرده یا [نسخه قابل حمل](https://vdm.mikaillab.com/fa/help/portable.html) | `voltdownloadmanager-mcp.exe`در پوشه آن |
| macOS | `/Applications/Volt Download Manager.app/Contents/MacOS/voltdownloadmanager-mcp` |
| Linux، فایل .deb یا .rpm | `/usr/bin/voltdownloadmanager-mcp` |
| Linux، فایل .tar.gz | `voltdownloadmanager-mcp`در پوشه خود (AppImage آن را نشان نمی‌دهد: از .tar.gz استفاده کنید) |

A portable copy's server finds the portable copy's VDM by itself, from its own folder.

### 3. به دستیار خود بگویید

**Claude Desktop**: با انتخاب **تنظیمات → توسعه‌دهنده → ویرایش پیکربندی**، `claude_desktop_config.json` باز می‌شود. سرور را اضافه کنید و سپس Claude Desktop را دوباره راه‌اندازی کنید:

```
{
  "mcpServers": {
    "voltdownloadmanager": {
      "command": "C:\\Users\\you\\AppData\\Local\\Programs\\Volt Download Manager\\voltdownloadmanager-mcp.exe"
    }
  }
}
```

**Claude Code**:

```
claude mcp add voltdownloadmanager -- "C:\Users\you\AppData\Local\Programs\Volt Download Manager\voltdownloadmanager-mcp.exe"
```

**Cursor**: همان ورودی `mcpServers` Claude Desktop، در `~/.cursor/mcp.json` (یا آن را در تنظیمات MCP Cursor اضافه کنید).

**VS Code**: در `.vscode/mcp.json` یا با انتخاب **MCP: افزودن سرور** از پالت فرمان:

```
{
  "servers": {
    "voltdownloadmanager": {
      "type": "stdio",
      "command": "C:\\Users\\you\\AppData\\Local\\Programs\\Volt Download Manager\\voltdownloadmanager-mcp.exe"
    }
  }
}
```

از مسیری که در مرحله 2 به دست آوردید استفاده کنید (در JSON، هر `\` به شکل `\\` نوشته می‌شود). سایر دستیارها هم همین اطلاعات را می‌خواهند: فرمانی برای شروع، بدون آرگومان.

## برای ابزارهای هوش مصنوعی که وب‌سایت را می‌خوانند

Separately from the server in the app, the website describes it for AI tools in an MCP server card, [/.well-known/mcp/server-card.json](https://vdm.mikaillab.com/.well-known/mcp/server-card.json), and has every page in Markdown (`/download.md` beside `/download.html`), so an assistant can read how to set VDM up: see [For AI tools and agents](https://vdm.mikaillab.com/agents.html). There is no MCP server on the website: the server always runs on your computer, next to the app.

## حریم خصوصی

VDM itself still sends nothing anywhere: the server talks only to the VDM on this computer, over the token-protected local channel. But what the assistant reads, it passes to its own AI service: when it lists your downloads, their file names, addresses and folders go to that service, under that service's privacy terms. Turn the automation API off, or remove the server from the assistant, when you don't want that.

## وقتی کار نمی‌کند

| دستیار می‌گوید | چه باید کرد |
|---|---|
| Volt Download Manager isn't running | Start VDM. The server can't start it for you. |
| API اتوماسیون خاموش است | Run `voltdownloadmanager-cli api on` with VDM running. |
| VDM didn't answer in time | A window in VDM may be waiting for you (a question, **Add torrent**); answer it and ask again. |
| VDM refused the request | VDM's channel file is from an earlier start; restart VDM. |
| ابزارها اصلا نمایش داده نمی‌شوند | مسیر را در تنظیمات دستیار بررسی کنید و دستیار را دوباره راه‌اندازی کنید. اگر `voltdownloadmanager-mcp --help` را دستی اجرا کنید، می‌گوید چیست. |

## مرتبط

- [گزینه‌ها](https://vdm.mikaillab.com/fa/help/options.html)
- [پوسته‌ها](https://vdm.mikaillab.com/fa/help/themes.html)
- [زبان‌ها](https://vdm.mikaillab.com/fa/help/languages.html)
- [حالت قابل حمل](https://vdm.mikaillab.com/fa/help/portable.html)
- [میانبرهای صفحه‌کلید](https://vdm.mikaillab.com/fa/help/keyboard-shortcuts.html)

[این صفحه را در GitHub ویرایش کنید](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/ai-assistants.md) [گزارش یک مشکل در این صفحه](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20AI%20assistants%20%28MCP%29&page=https%3A//vdm.mikaillab.com/help/ai-assistants.html) [تاریخچه صفحه](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/ai-assistants.md)

رایگان، متن‌باز، بدون تبلیغات، بدون دوره آزمایشی.

[Download Volt Download Manager](https://vdm.mikaillab.com/fa/download.html)
