Skip to main content
Glama

mcp-vtenext

MCP-сервер для VTENext CRM — предоставляет WebService API в качестве инструментов для Claude и других MCP-совместимых клиентов.

Требования

  • Node.js 18+

  • Запущенный экземпляр VTENext (самостоятельно развернутый или через Docker — см. ../docker)

Related MCP server: nimble-crm-mcp

Настройка

cd mcp/vtenext/server
npm install
cp .env.example .env

Отредактируйте файл .env:

VTENEXT_URL=http://your-vtenext-instance
VTENEXT_USERNAME=admin
VTENEXT_ACCESS_KEY=your_access_key
READ_ONLY=false

Ключ доступа (Access Key) находится в VTENext в разделе Admin → Users → [пользователь] → Access Key.

Режим «только чтение»

Установите READ_ONLY=true, чтобы предотвратить любые операции записи в VTENext. Если этот режим включен, инструменты create_opportunita, update_opportunita и add_nota_opportunita будут возвращать ошибку вместо записи данных.

Это полезно, когда сервер используется ИИ-ботами или автоматизированными агентами, которым разрешено только чтение данных CRM. Чтобы запустить экземпляр в режиме «только чтение» параллельно с полнофункциональным, передайте переменную через конфигурацию MCP:

{
  "mcpServers": {
    "vtenext-bot": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/mcp/vtenext/server/index.js"],
      "env": {
        "VTENEXT_URL": "http://your-vtenext-instance",
        "VTENEXT_USERNAME": "admin",
        "VTENEXT_ACCESS_KEY": "your_access_key",
        "READ_ONLY": "true"
      }
    }
  }
}

Интеграция с Claude Code

Добавьте в файл .mcp.json в корне вашего проекта:

{
  "mcpServers": {
    "vtenext": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/mcp/vtenext/server/index.js"]
    }
  }
}

Инструменты

Opportunità (Сделки)

Инструмент

Описание

list_opportunita

Список сделок с дополнительными фильтрами (статус, поиск, лимит)

get_opportunita

Получение полной информации о сделке по ID

search_opportunita

Поиск сделок по названию

create_opportunita

Создание новой сделки (запись — заблокировано в режиме «только чтение»)

update_opportunita

Обновление статуса, суммы или заметок по существующей сделке (запись — заблокировано в режиме «только чтение»)

Contatti (Контакты)

Инструмент

Описание

search_contatti

Поиск контактов по имени, email или компании

Attività e note (Действия и заметки)

Инструмент

Описание

add_nota_opportunita

Добавление комментария/заметки к сделке (запись — заблокировано в режиме «только чтение»)

list_attivita_opportunita

Список действий, связанных со сделкой

Utilità (Утилиты)

Инструмент

Описание

describe_modulo

Показать доступные поля для любого модуля VTENext

query_raw

Выполнение произвольного VTQL SELECT-запроса

Аутентификация

VTENext использует протокол vtiger WebService:

  1. GET /webservice.php?operation=getchallenge → токен

  2. MD5(токен + accessKey) → хешированный ключ

  3. POST /webservice.php с operation=login (form-encoded) → sessionName

Сессии кэшируются на 4 минуты (время жизни токена составляет 5 минут).

Тесты

# Unit tests (no VTENext required)
npm test

# Integration tests (requires live VTENext at VTENEXT_URL)
npm run test:integration

Лицензия

MIT

Available Tools

10 tools
add_nota_opportunitaC

Aggiunge una nota/commento a un'opportunità

Inputs: opportunita_id (required), testo (required).

create_opportunitaC

Crea una nuova opportunità in VTENext

Inputs: nome (required), stato, importo, data_chiusura, +1 more.

describe_moduloC

Mostra i campi disponibili per un modulo VTENext

Inputs: modulo (required).

get_opportunitaC

Recupera i dettagli completi di un'opportunità tramite ID

Inputs: id (required).

list_attivita_opportunitaC

Elenca le attività associate a un'opportunità

Inputs: opportunita_id (required), limit.

list_opportunitaC

Elenca le opportunità con filtri opzionali

Inputs: limit, stato, search.

query_rawC

Esegue una query VTQL grezza su VTENext (solo lettura)

Inputs: query (required).

search_contattiC

Cerca contatti per nome, email o azienda

Inputs: q (required), limit.

search_opportunitaC

Cerca opportunità per nome

Inputs: q (required), limit.

update_opportunitaC

Aggiorna i dati di un'opportunità esistente

Inputs: id (required), stato, importo, descrizione.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. For example, list_opportunita retrieves multiple records with filters, get_opportunita fetches a single record by ID, and search_opportunita finds records by name. The tools target different resources (opportunità, contatti, modulo) and actions (create, update, list, search, describe, query).

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case. Verbs like add, create, describe, get, list, query, search, and update are used predictably with corresponding nouns (e.g., add_nota_opportunita, create_opportunita, describe_modulo). There are no deviations in naming conventions.

    Tool Count5/5

    With 10 tools, the count is well-scoped for managing opportunities and related data in VTENext. Each tool serves a clear purpose, such as CRUD operations for opportunities, searching contacts, listing activities, and raw queries. No tool feels redundant or unnecessary for the server's domain.

    Completeness5/5

    The tool set provides complete coverage for the VTENext opportunity management domain. It includes full CRUD (create, get, update, list/search) for opportunities, plus related operations like adding notes, listing activities, searching contacts, describing modules, and raw queries. There are no obvious gaps, and agents can handle typical workflows without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables users to manage CRM leads, opportunities, projects, tasks, and sales records within ERPNext directly through MCP-compatible clients. It supports global searches, timesheet entries, and access to dashboard KPIs using natural language.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for the Nimble CRM API, enabling management of contacts, deals, notes, tasks, and tags through natural language.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for vtiger CRM that enables AI agents to log timesheets and create/update records in any module via natural language.
      33 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that connects to a sales CRM database, enabling AI agents to search prospects, view pipeline status, manage follow-ups, and update records using natural language commands.
      5
      82 npm
      ISC