MA

mediar-ai/mcp-server-macos-use

Developer tools

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

355 stars 42 forks Качество 67 Тренд 33NOASSERTION

Агент ИИ, управляющий компьютером с помощью инструментов уровня ОС, совместимый с MCP, работает с любой моделью

Обзор

Официальный сайт: https://macos-use.dev/ Сервер Model Context Protocol (MCP) в Swift. Он позволяет управлять приложениями macOS, используя API доступности, преимущественно через MacosUseSDK. Вы можете использовать его в Claude Desktop или другом совместимом MCP-клиенте. Сервер слушает команды MCP по стандартному входу/выводу (stdio) и предоставляет несколько инструментов для взаимодействия с приложениями. https://github.com/user-attachments/assets/cd203171-bac6-4124-9a58-59947a25be07 https://github.com/user-attachments/assets/f274560a-559f-4140-b133-c0b5c500a02d Сервер предоставляет следующие инструменты с помощью метода CallTool MCP: 1. * Открывает или активирует заданное приложение, а затем проходит по его дереву доступности. * * идентификатор (String, Required): Имя приложения, ID bundle ID или путь к файлу.

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

Официальный сайт: https://macos-use.dev/

Сервер Model Context Protocol (MCP) в Swift. Он позволяет управлять приложениями macOS, используя API доступности, преимущественно через MacosUseSDK.

Вы можете использовать его в Claude Desktop или другом совместимом MCP-клиенте.

Сервер слушает команды MCP по стандартному входу/выводу ([[T2]) и предоставляет несколько инструментов для взаимодействия с приложениями.

https://github.com/user-attachments/assets/cd203171-bac6-4124-9a58-59947a25be07

https://github.com/user-attachments/assets/f274560a-559f-4140-b133-c0b5c500a02d

Доступные инструменты

Сервер предоставляет следующие инструменты с помощью метода CallTool MCP:

  1. macos-use_open_application_and_traverse
  • Описание: Открывает или активирует заданное приложение, затем проходит по его дереву доступности.
  • Параметры:
  • identifier (Строка, требуется): Имя приложения, идентификатор пакета или путь к файлу.
  1. macos-use_click_and_traverse
  • Описание: Имитирует щелчок мыши по определённым координатам внутри окна целевого приложения (идентифицируемых по PID), а затем проходит по его дереву доступности.
  • Параметры:

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

README

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

mcp-server-macos-use

Official website: https://macos-use.dev/

Model Context Protocol (MCP) server in Swift. It allows controlling macOS applications by leveraging the accessibility APIs, primarily through the MacosUseSDK.

You can use it in Claude Desktop or other compatible MCP-client.

The server listens for MCP commands over standard input/output (stdio) and exposes several tools to interact with applications.

https://github.com/user-attachments/assets/cd203171-bac6-4124-9a58-59947a25be07

https://github.com/user-attachments/assets/f274560a-559f-4140-b133-c0b5c500a02d

Available Tools

The server exposes the following tools via the CallTool MCP method:

  1. macos-use_open_application_and_traverse

    • Description: Opens or activates a specified application and then traverses its accessibility tree.
    • Parameters:
      • identifier (String, Required): The application’s name, bundle ID, or file path.
  2. macos-use_click_and_traverse

    • Description: Simulates a mouse click at specific coordinates within the window of the target application (identified by PID) and then traverses its accessibility tree.
    • Parameters:
      • pid (Number, Required): The Process ID (PID) of the target application.
      • x (Number, Required): The X-coordinate for the click (relative to the window/screen, depending on SDK behavior).
      • y (Number, Required): The Y-coordinate for the click.
  3. macos-use_type_and_traverse

    • Description: Simulates typing text into the target application (identified by PID) and then traverses its accessibility tree.
    • Parameters:
      • pid (Number, Required): The Process ID (PID) of the target application.
      • text (String, Required): The text to be typed.
  4. macos-use_press_key_and_traverse

    • Description: Simulates pressing a specific keyboard key (e.g., ‘Enter’, ‘Tab’, ‘a’, ‘B’) with optional modifier keys held down, targeting the application specified by PID, and then traverses its accessibility tree.
    • Parameters:
      • pid (Number, Required): The Process ID (PID) of the target application.
      • keyName (String, Required): The name of the key (e.g., Return, Escape, ArrowUp, Delete, a, B). Case-sensitive for letters if no modifiers are active.
      • modifierFlags (Array, Optional): An array of modifier keys to hold during the press. Valid values: CapsLock (or Caps), Shift, Control (or Ctrl), Option (or Opt, Alt), Command (or Cmd), Function (or Fn), NumericPad (or Numpad), Help.
  5. macos-use_refresh_traversal

    • Description: Only performs the accessibility tree traversal for the specified application (identified by PID). Useful for getting the current UI state without performing an action.
    • Parameters:
Открыть полный README на GitHub

Установка

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

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

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

{ "mcpServers": { "mcp-server-macos-use": { "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use" } } }