TT

truenas/truenas-mcp

Developer tools

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

135 stars 29 forks Качество 79 Тренд 24GPL-3.0

truenas/truenas-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/truenas/truenas-mcp.

Обзор

truenas/truenas-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/truenas/truenas-mcp.

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

** ⚠️ Обзор исследований** Этот проект находится в активной разработке и выпущен в виде предварительного обзора исследований. API и функции могут измениться. Не рекомендуется для использования в производстве.

Сервер Model Context Protocol (MCP) для TrueNAS, который позволяет моделям искусственного интеллекта взаимодействовать с API TrueNAS с помощью запросов на естественном языке.

Содержание

  • Особенности
  • Архитектура
  • Здание
  • Установка
  • Шаг 1: Скачать или создать бинарный файл
  • Шаг 2: Получите ключ TrueNAS API
  • Шаг 3: Настройте ваш MCP-клиент
  • Claude Desktop
  • Код Клода
  • Шаг 4: Перезапустите клиента MCP
  • Шаг 5: Проверьте соединение
  • Опции командной строки
  • Детали соединения
  • Безопасность
  • Пример использования
  • Расширенные функции
  • Задачи MCP для долгосрочных операций
  • Режим сухого запуска для операций записи
  • Разработка

Особенности

TrueNAS MCP предоставляет комплексные возможности управления с помощью естественного языка:

Основные категории

  • 📊 Мониторинг - Системная информация, состояние, оповещения, метрики производительности
  • 💾 Хранилище - Пулы, наборы данных, снимки, общие ресурсы (SMB/NFS)
  • 🖥️ Виртуализация - управление и статус виртуальных машин
  • 🔐 Directory Services — интеграция Active Directory, LDAP, FreeIPA и мониторинг состояния

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

README

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

TrueNAS MCP Server

⚠️ Early Access This project is in early access. Destructive operations require explicit confirmation, but tools, arguments and outputs may still change between releases. Review each confirmation carefully and use caution in production environments.

An MCP server for TrueNAS. It runs on your computer, connects to the TrueNAS API, and lets an AI assistant such as Claude query and manage the system in plain language.

Features

  • Monitoring: system info and health, disks and disk health, services, alerts, jobs, CPU, memory, disk, network, ARC and UPS metrics.
  • Storage: pools, datasets, snapshots, and SMB and NFS shares (create, change and delete shares, set an SMB share ACL, and replace the filesystem ACL of a path).
  • Data protection: replication and periodic snapshot task status, running either task now, on-demand snapshots, cloning a snapshot to a new dataset, snapshot holds, and rolling back to or deleting a snapshot.
  • Apps: catalog search, install, start, stop, upgrade, update and delete.
  • Maintenance: system updates, boot environments, pool scrubs, taking a pool disk offline or online and replacing a disk, and starting, stopping and restarting services.
  • Network: gateways, nameservers, interface addresses and IPv6 autoconfiguration, with TrueNAS’s automatic rollback for interface changes.
  • Directory services: Active Directory, LDAP and FreeIPA status and setup.
  • Accounts: local users and groups: listing, creating, changing and deleting them, never granting sudo, roles or administrative group membership, and never deleting home directories or primary groups.
  • Capacity planning: usage analysis and growth trends.
  • Virtual machines: VM status.

Safety: --read-only hides every tool that changes the system. Destructive actions need your explicit confirmation, and secrets are redacted from everything sent back to the assistant.

See docs/full-features.md for every tool and docs/examples.md for example questions.

Install

You need TrueNAS 25.10 or later.

1. Get the binary

Download the archive for your platform from the Releases page: macOS (Apple Silicon or Intel), Linux (x86-64 or ARM64) or Windows (x86-64 or ARM64). Put the binary on your PATH as truenas-mcp:

# Use arm64 instead of amd64 on ARM machines.
tar -xzf truenas-mcp-linux-amd64.tar.gz
sudo install truenas-mcp-linux-amd64 /usr/local/bin/truenas-mcp

On Windows, unzip truenas-mcp-windows-amd64.zip (truenas-mcp-windows-arm64.zip on ARM) and use the full path to the .exe as the command in your client config. Each release has a checksums.txt to verify the download.

To build it yourself, you need Go 1.27.4 or later:

git clone https://github.com/truenas/truenas-mcp.git
cd truenas-mcp
make build    # writes ./truenas-mcp
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

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

{ "mcpServers": { "truenas": { "command": "truenas-mcp", "args": ["--read-only"], "env": { "TRUENAS_URL": "192.0.2.10", "TRUENAS_API_USER": "truenas_admin", "TRUENAS_API_KEY": "your-api-key" } } } }