VM

victoriametrics/mcp-victorialogs

Deployment & DevOps

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

106 stars 31 forks Качество 89 Тренд 35Apache-2.0

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

Обзор

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

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

Реализация сервера Model Context Protocol (MCP) для VictoriaLogs.

Это обеспечивает доступ к вашему экземпляру VictoriaLogs и бесшовную интеграцию с API и документацией VictoriaLogs. Он может предоставить вам комплексный интерфейс для логов, наблюдаемости и задач отладки, связанных с вашими экземплярами VictoriaLogs, а также обеспечить продвинутую автоматизацию и возможности взаимодействия для инженеров и инструментов.

Особенности

Этот MCP-сервер позволяет использовать почти все API только для чтения VictoriaLogs, то есть все функции, доступные в веб-интерфейсе:

  • Запрос к журналам и изучение данных логов
  • Отображение параметров вашего экземпляра VictoriaLogs
  • Перечисление доступных потоков, полей, значений полей
  • Запрос статистики для журналов как метрик
  • UI с инструкциями по установке и проверкой инструментов на корневом конечном устройстве (только в режиме потокового HTTP)

Кроме того, MCP-сервер содержит встроенную актуальную документацию и способен осуществлять поиск без онлайн-доступа.

Более подробную информацию о доступных инструментах и подсказках можно найти в разделе «Использование».

Вы можете объединить функциональность инструментов, документацию, поиск в ваших запросах и придумать отличные сценарии использования для вашего экземпляра VictoriaLogs.

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

README

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

VictoriaLogs MCP Server

The implementation of Model Context Protocol (MCP) server for VictoriaLogs.

This provides access to your VictoriaLogs instance and seamless integration with VictoriaLogs APIs and documentation. It can give you a comprehensive interface for logs, observability, and debugging tasks related to your VictoriaLogs instances, enable advanced automation and interaction capabilities for engineers and tools.

Features

This MCP server allows you to use almost all read-only APIs of VictoriaLogs, i.e. all functions available in Web UI:

  • Querying logs and exploring logs data
  • Showing parameters of your VictoriaLogs instance
  • Listing available streams, fields, field values
  • Query statistics for the logs as metrics
  • UI with setup instructions and tools inspection on the root endpoint (only in Streamable HTTP mode)

In addition, the MCP server contains embedded up-to-date documentation and is able to search it without online access.

More details about the exact available tools and prompts can be found in the Usage section.

You can combine functionality of tools, docs search in your prompts and invent great usage scenarios for your VictoriaLogs instance. And please note the fact that the quality of the MCP Server and its responses depends very much on the capabilities of your client and the quality of the model you are using.

You can also combine the MCP server with other observability or doc search related MCP Servers and get even more powerful results.

Try without installation

There is a publicly available instance of the VictoriaMetrics MCP Server that you can use to test the features without installing it:

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

Установка

docker run -i --rm -e VL_INSTANCE_ENTRYPOINT -e VL_INSTANCE_BEARER_TOKEN -e VL_INSTANCE_HEADERS ghcr.io/victoriametrics/mcp-victorialogs
Новичок в MCP? Начните с руководства на mcpskill.org →

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

{ "mcpServers": { "victorialogs": { "command": "/path/to/mcp-victorialogs", "env": { "VL_INSTANCE_ENTRYPOINT": "<YOUR_VL_INSTANCE>", "VL_INSTANCE_BEARER_TOKEN": "<YOUR_VL_BEARER_TOKEN>", "VL_INSTANCE_HEADERS": "<HEADER>=<HEADER_VALUE>,<HEADER>=<HEADER_VALUE>" } } } }