rf-log-mcp
rf-log-mcp
MCP-сервер для проверки файлов результатов Robot Framework, предоставляющий LLM краткое представление данных.
Обзор функций
Поддерживаемые форматы ввода:
output.xml: Robot / Rebot 6.0.x / 6.1+ / 7.xoutput.json: Robot / Rebot 7.2+
Предоставляемые возможности MCP:
Инструменты (Tools)
parse_resultget_viewsearch_messages
Ресурсы (Resources)
rf://runs/{run_id}/summaryrf://runs/{run_id}/tests/{test_id}
Поддерживаемые представления:
summaryfailure_pathstep_window
Related MCP server: RobotMCP
Важные примечания
Этот проект является MCP stdio server
Правильный способ использования: хост MCP запускает процесс
rf-log-mcp, а затем вызывает инструменты и ресурсы через stdio
Быстрый старт
1. Установка зависимостей
uv sync2. Рекомендуемый пример конфигурации MCP
{
"mcpServers": {
"rf-log-mcp": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"rf_log_mcp"
]
}
}
}Сборка и установка
Сборка
uv buildПосле сборки будут созданы:
dist/rf_log_mcp-0.1.0-py3-none-any.whldist/rf_log_mcp-0.1.0.tar.gz
Установка wheel
uv pip install dist/rf_log_mcp-0.1.0-py3-none-any.whlПосле установки можно сразу запускать:
rf-log-mcpПример конфигурации MCP для установленного пакета
{
"mcpServers": {
"rf-log-mcp": {
"command": "rf-log-mcp",
"args": []
}
}
}Пример явного пути для Windows
{
"mcpServers": {
"rf-log-mcp": {
"command": "D:\\project\\rf_log_mcp\\.venv\\Scripts\\rf-log-mcp.exe",
"args": []
}
}
}Типовой процесс вызова
Шаг 1: Парсинг файла результатов
parse_result(path="tests/fixtures/single_failure_611.xml")Типовой ответ:
{
"ok": true,
"run_id": 1,
"source_format": "xml"
}Шаг 2: Получение сводки
get_view(run_id=1, view="summary")Шаг 3: Получение пути сбоя или поиск сообщений
get_view(run_id=1, view="failure_path")
search_messages(run_id=1, query="timeout")Переменные окружения
RF_LOG_MCP_DB
Используется для переопределения пути к базе данных SQLite по умолчанию.
Пример для PowerShell:
$env:RF_LOG_MCP_DB="D:\data\rf-log-mcp\store.sqlite3"
rf-log-mcpПример конфигурации MCP:
{
"mcpServers": {
"rf-log-mcp": {
"command": "rf-log-mcp",
"args": [],
"env": {
"RF_LOG_MCP_DB": "D:\\data\\rf-log-mcp\\store.sqlite3"
}
}
}
}Часто задаваемые вопросы
1. Почему используется uv
Версии зависимостей в локальной среде могут конфликтовать с MCP, поэтому требуется venv для изоляции конфликтов (conda слишком медленная, uv — быстрая)
2. Можно ли передавать путь к файлу в get_view / search_messages?
Да.
Если файл уже был проанализирован, сервис сначала преобразует путь в соответствующий run_id, а затем выполнит запрос.
Тем не менее, рекомендуется в первую очередь использовать целочисленный run_id, возвращаемый parse_result().
5. В каких случаях нельзя напрямую использовать этот проект?
Если ваша платформа LLM:
Не поддерживает MCP
Или не поддерживает запуск локальных процессов
В таком случае прямое подключение невозможно, потребуется дополнительный уровень интеграции.
Проверки при разработке
uv run ruff check .
uv run pytestAvailable Tools
3 toolsget_viewC
Get one supported view using a numeric run id or an already-parsed file path.
Inputs: run_id (required), view (required), selector, cursor, +1 more. Returns: object
parse_resultB
Parse a Robot Framework output.xml or RF 7.2+ output.json file and index it.
Inputs: path (required), force_rebuild. Returns: object
search_messagesC
Search indexed messages using a numeric run id or an already-parsed file path.
Inputs: run_id (required), query (required), level, limit, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_view retrieves a specific view, parse_result processes and indexes files, and search_messages queries indexed messages. There is no overlap in functionality, and the descriptions clearly differentiate their roles, making misselection unlikely.
All tool names follow a consistent verb_noun pattern (get_view, parse_result, search_messages) with clear, descriptive verbs and nouns. The naming is uniform throughout, using snake_case consistently without any deviations or mixed conventions.
With only 3 tools, the set feels thin for a Robot Framework log management server, as it might lack operations like updating or deleting parsed data. However, the tools cover core parsing and querying functions, making it borderline appropriate but potentially limited in scope.
The tools provide basic parsing and search capabilities, but there are notable gaps: no update or delete operations for indexed data, and no tools for managing multiple runs or views beyond retrieval. This could lead to dead ends in workflows requiring data modification or broader management.
Maintenance
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for log file analysis. Gives LLMs the ability to efficiently analyze large log files without loading them into context.7101MIT
- AlicenseBqualityBmaintenanceRobotMCP is a comprehensive Model Context Protocol (MCP) server that bridges the gap between human language and Robot Framework automation. It enables AI agents to understand test intentions, execute steps interactively, and generate complete test suites from successful executions.194,288 PyPI118Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server that helps resolve Robocop static code analysis errors and warnings via LLM, providing tools to get reports and run format.11MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that parses Robot Framework output.xml files, scores and groups failures, and exposes structured triage data to Claude Desktop and Claude Code.MIT