
stefanoamorelli/hyprmcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Сервер MCP для гипроктла
Обзор
[[Т0]] Легкий неофициальный сервер Model Context Protocol (MCP), который раскрывает все функциональные возможности hyprctl - интерфейса командной строки для композита Hyprland Wayland - для языковых моделей. Этот сервер позволяет интерфейсам естественного языка запрашивать и контролировать управление окнами Hyprland, макеты, входы и многое другое. Проект экспериментальный и находится в стадии бета-тестирования. Например, в Claude Desktop изменить файл ~/.config/Claude/claude desktop config.json следующим образом: Эти инструменты позволяют языковым моделям легко взаимодействовать с функциями Hyprland. Выполняет hyprctl activewindow -j и возвращает детали. Чтобы запустить сервер локально для разработки:
Обзор (машинный перевод)
[[Т0]]
Легкий неофициальный сервер Model Context Protocol (MCP), который раскрывает все функциональные возможности T1 — интерфейса командной строки для композита Hyprland Wayland — для языковых моделей.
Этот сервер позволяет интерфейсам естественного языка запрашивать и контролировать управление окнами Hyprland, макеты, входы и многое другое.
**Примечание: ** Проект экспериментальный и находится в стадии бета-тестирования.
Быстрый старт
###1.Клонировать репозиторий
###2.Возьми свой HYPRLAND_INSTANCE_SIGNATURE
###3 Установите сервер в MCP-клиенте
Например, в Claude Desktop изменить файл ~/.config/Claude/claude_desktop_config.json следующим образом:
Доступные инструменты
Название инструмента | Описание
run_hyprctl_command[T5]]hyprctl[[T]][T5]][[T]][T][T]][T][T]][T][T]][T][T]][T][T]][T][T]][T][T][T]][T][T]][T][T]][T][T]][T][T][T]][T][T]][T][T]][T][T][T]][T][T]][T][T]][T][T][T]][T][T][T]][T][T]][T][T][T]][T][T]][T][T][T]][T][T]][T][T][T]][T][T]][T][T][T]][T][T][T]][T][T
[6][править править вики-текст][править править код]
list_monitors | Список всех подключенных мониторов и свойств.
list_workspaces | Список всех активных рабочих пространств.
[9][9]] Все окна и их свойства
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
https://github.com/user-attachments/assets/b4fc1d26-ec04-451a-b7c9-7f87b44d9c9e
A lightweight, unofficial Model Context Protocol (MCP) server that exposes all the functionality of hyprctl—the command-line interface for the Hyprland Wayland compositor—to language models.
This server enables natural language interfaces to query and control Hyprland’s window management, layouts, inputs, and more.
Note: This project is experimental and in beta.
🚀 Quick Start
1. Clone the repository
git clone https://github.com/stefanoamorelli/hyprmcp.git
cd hyprmcp
2. Grab your HYPRLAND_INSTANCE_SIGNATURE
echo $HYPRLAND_INSTANCE_SIGNATURE
3. Install the server in your MCP client
For example, in Claude Desktop, modify the ~/.config/Claude/claude_desktop_config.json file as follows:
"Hyperland MCP Server": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"subprocess",
"mcp",
"run",
"/hyprmcp/hyprmcp/server.py"
],
"env": {
"PYTHONPATH": "/hyprmcp",
"HYPRLAND_INSTANCE_SIGNATURE": ""
}
},
🧰 Available Tools
| Tool Name | Description |
|---|---|
run_hyprctl_command |
Executes arbitrary hyprctl commands. |
get_version |
Retrieves the Hyprland version and build info. |
list_monitors |
Lists all connected monitors and properties. |
list_workspaces |
Lists all active workspaces. |
list_clients |
Lists all windows and their properties. |
list_devices |
Lists all connected input devices. |
get_active_window |
Shows the currently active window details. |
list_layers |
Displays all layers in the compositor. |
get_splash |
Retrieves the current random splash message. |
dispatch_command |
Dispatches a command to Hyprland. |
set_keyword |
Dynamically sets a configuration keyword. |
reload_config |
Forces a reload of the Hyprland config file. |
enter_kill_mode |
Enables kill mode to terminate windows by click. |
These tools allow language models to interact with Hyprland’s features seamlessly.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →