Skip to main content
Glama
alderban107

hyprland-mcp

by alderban107

clipboard_read

Retrieve text content from the system clipboard for integration with desktop automation workflows in Hyprland environments.

Instructions

Read the current clipboard contents as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the clipboard reading logic using wl-paste.
    async def read() -> str:
        """Read clipboard contents as text."""
        require_tool("wl-paste")
        proc = await asyncio.create_subprocess_exec(
            "wl-paste", "-n",
            stdout=asyncio.subprocess.PIPE,
            stderr=asyncio.subprocess.PIPE,
        )
        stdout, stderr = await proc.communicate()
        if proc.returncode != 0:
            raise ClipboardError(f"wl-paste failed: {stderr.decode().strip()}")
        return stdout.decode()
  • MCP tool registration and handler entry point for clipboard_read.
    @mcp.tool()
    async def clipboard_read() -> str:

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alderban107/hyprland-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server