GM

gms64260/mcp-glpi

Productivity workflow

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

35 stars 29 forks Качество 85 Тренд 14MIT

MCP Server для GLPI - интегрированное управление ИТ-услугами

Обзор

Сервер Model Context Protocol (MCP), который предоставляет GLPI (IT Service Management) помощникам ИИ, таким как Клод. v3 - это капитальный ремонт фундамента и покрытия поверх v2. CHANGELOG.md для полного списка изменений; остальная часть этого README документирует то, что раскрыто сегодня. Унифицированный HTTP-слой с автоматической повторной аутентификацией на 401, структурированными ошибками, повторением на 5xx. - : мультикритерии с AND/OR/AND NOT/OR NOT, force display, pagination, fetch all, выделенный счетчик. - :/listSearchOptions/{itemtype} кэшируется, поэтому переводы имени остаются действительными в версиях GLPI. - : glpi search tickets принимает дружественные парамы, glpi tickets stats by вентилирует счета по статусу/категории/технику/сущности/месяцу. - : сроки (последующие + задачи + решения + валидации), запрос / утверждение валидации, связывание билетов, вложение документов, удовлетворение, просроченные (SLA) билеты. Подробные просмотры возвращают пользователям id tech: 42 и решенное имя, поэтому LLM не нужно гадать.

Обзор (машинный перевод)

Типовой сервер контекстного протокола для GLPI, управление ИТ-услугами с открытым исходным кодом люкс. Помощник ИИ (Claude Desktop, Claude Code, Cursor, Open) WebUI, любой MCP клиент) 46 инструментов поверх GLPI REST API: билеты и их сроки, проблемы, изменения, проверки, активы и все другие общие тип объекта, пользователи и группы, база знаний, многокритериальный поиск и отчетность. Выходы - это компактные JSON, построенные для контекстного окна модели. инструменты аннотированы и могут быть выключены с одной переменной, а 50 Названия инструментов v3 продолжают работать как скрытые псевдонимы.

Версия 4.0.0. См. CHANGELOG.md для примечаний к выпуску и Обновление с 3.x ниже.

##Установка и настройка

Требования: Node.js 20 или более поздней версии, экземпляр GLPI 10 или 11 с REST API включенный (Setup > General > API), клиент API (токен приложения, опциональный) и Токен пользовательского API (Мои настройки > Ключи удаленного доступа) или логин и пароль.

Студия: Claude Desktop, Claude Code, Cursor

stdio — это транспорт по умолчанию: клиент запускает сервер и разговаривает с ним. Поверх Stdin/Stdout Клод Десктоп ([T0]] и Cursor ~/.cursor/mcp.json или '.cursor/mcp.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

mcp-glpi

A Model Context Protocol server for GLPI, the open-source IT service management suite. It gives an AI assistant (Claude Desktop, Claude Code, Cursor, Open WebUI, any MCP client) 46 tools over the GLPI REST API: tickets and their timeline, problems, changes, validations, assets and every other common itemtype, users and groups, the knowledge base, multi-criteria search and reporting. Outputs are compact JSON built for a model’s context window, write tools are annotated and can be switched off with one variable, and the 50 tool names of v3 keep working as hidden aliases.

Version 4.1.0. See CHANGELOG.md for the release notes and Upgrading from 3.x below.

Install and configure

Requirements: Node.js 20 or later, a GLPI 10 or 11 instance with the REST API enabled (Setup > General > API), an API client (app token, optional) and a user API token (My settings > Remote access keys) or a login and password.

stdio: Claude Desktop, Claude Code, Cursor

stdio is the default transport: the client starts the server and talks to it over stdin/stdout. Claude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json or .cursor/mcp.json in a project) use the same shape:

{
  "mcpServers": {
    "glpi": {
      "command": "npx",
      "args": ["-y", "mcp-glpi"],
      "env": {
        "GLPI_URL": "https://glpi.example.com",
        "GLPI_APP_TOKEN": "your-app-token",
        "GLPI_USER_TOKEN": "your-user-token",
        "GLPI_READ_ONLY": "1"
      }
    }
  }
}

Drop GLPI_READ_ONLY to allow writes. Claude Code:

claude mcp add glpi \
  -e GLPI_URL=https://glpi.example.com \
  -e GLPI_APP_TOKEN=your-app-token \
  -e GLPI_USER_TOKEN=your-user-token \
  -- npx -y mcp-glpi

The server opens a GLPI session at startup (or on the first call if GLPI is unreachable then) and closes it when the client disconnects.

Streamable HTTP: Open WebUI and other web clients

MCP_TRANSPORT=http GLPI_URL=https://glpi.example.com GLPI_USER_TOKEN=... npx -y mcp-glpi
# same with flags
npx -y mcp-glpi --http --host 127.0.0.1 --port 3000 --path /mcp
MCP GLPI Server v4.0.0 listening on http://127.0.0.1:3000/mcp
  transport: streamable HTTP (stateless, JSON responses)
  auth: none — bind to loopback or set MCP_HTTP_AUTH_TOKEN before exposing this port
Flag Description
--http Shorthand for --transport http
--transport stdio (default) or http
--host Bind address (default 127.0.0.1)
--port Port; 0 picks a free port (default 3000)
--path Endpoint path (default /mcp)
-h, --help Print usage

CLI flags win over the MCP_* variables. Endpoints: POST /mcp (JSON-RPC, one JSON response per request) and GET /health (liveness, no auth, no GLPI

Открыть полный README на GitHub

Установка

npx -y mcp-glpi
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "glpi": { "command": "npx", "args": ["-y", "mcp-glpi"], "env": { "GLPI_URL": "https://glpi.example.com", "GLPI_APP_TOKEN": "your-app-token", "GLPI_USER_TOKEN": "your-user-token", "GLPI_READ_ONLY": "1" } } } }