DT

dceluis/tasker-mcp

Developer tools

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

52 stars 11 forks Качество 65 Тренд 13MIT

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

Обзор

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

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

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

Руководство по использованию

Шаг 1: Импортируйте профиль Tasker

Введите dist/mcp_server.prj.xml в приложение Tasker. После импорта запустите задачу MCP generate_api_key для создания ключа API для безопасного доступа.

Шаг 2: Выберите и запустите свой сервер

**CLI Server: **

Из папки dist/ выберите правильный двоичный сервер CLI для архитектуры вашего устройства, такой как tasker-mcp-server-cli-aarch64. Копируйте как двоичный, так и toolDescriptions.json файл на ваше устройство (телефон или ПК). Переименовать двоичный код в mcp-server после копирования.

Пример:

Используя scp:

Используя adb push:

Запустите сервер в режиме SSE с:

  • Или позвоните через стио транспорт:

Флаги командной строки

Приложение tasker-mcp-server-cli принимает следующие флаги:

[[Т9]]: Путь к файлу JSON с определениями инструментов Tasker.

  • [[Т10]]: Адрес хоста для прослушивания на сервере SSE (по умолчанию: 0.0.0.0).
  • [[Т12]]: Порт для прослушивания на сервере SSE (по умолчанию: 8000).

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

README

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

Tasker MCP

This document will guide you through setting up and running the Tasker MCP integration, including instructions for installing dependencies, preparing servers, and updating tasks.


Usage Guide

Step 1: Import the Tasker Profile

  • Import dist/mcp_server.prj.xml into your Tasker app.
  • After importing, run the MCP generate_api_key task to generate an API key for secure access.

Step 2: Select and Run Your Server

CLI Server:

  • From the dist/ folder, select the correct CLI server binary for your device’s architecture, such as tasker-mcp-server-cli-aarch64.
  • Copy both the binary and the toolDescriptions.json file to your device (phone or PC).
  • Rename the binary to mcp-server after copying.

Example:

Using scp:

scp dist/tasker-mcp-server-cli-aarch64 user@phone_ip:/data/data/com.termux/files/home/mcp-server

Using adb push:

adb push dist/tasker-mcp-server-cli-aarch64 /data/data/com.termux/files/home/mcp-server
  • Run the server in SSE mode with:
./mcp-server --tools /path/to/toolDescriptions.json --tasker-api-key=tk_... --mode sse
  • Or call it through the stdio transport:
payload='{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tasker_flash_text", "arguments": { "text": "Hi" }  } }'
echo $payload | ./mcp-server --tools /path/to/toolDescriptions.json --tasker-api-key=tk_...

Command-Line Flags

The tasker-mcp-server-cli application accepts the following flags:

  • --tools: Path to JSON file with Tasker tool definitions.
  • --host: Host address to listen on for SSE server (default: 0.0.0.0).
  • --port: Port to listen on for SSE server (default: 8000).
  • --mode: Transport mode: sse, or stdio (default: stdio).
  • --tasker-host: Tasker server host (default: 0.0.0.0).
  • --tasker-port: Tasker server port (default: 1821).
  • --tasker-api-key: The Tasker API Key.

Step 3: Connect Your MCP-enabled App

  • Connect your MCP-enabled application by pointing it to the running server.

Example Configuration for Claude Desktop with stdio transport

{
  "mcpServers": {
    "tasker": {
      "command": "/home/luis/tasker-mcp/dist/tasker-mcp-server-cli-x86_64",
      "args": [
        "--tools",
        "/home/luis/tasker-mcp/dist/toolDescriptions.json",
        "--tasker-host",
        "192.168.1.123",
        "--tasker-api-key",
        "tk_...",
        "--mode",
        "stdio"
      ]
    }
  }
}

Building the CLI Server Yourself

Unix/Linux:

  • Install Go using your package manager:
sudo apt-get install golang-go
  • Build the CLI server (cross-compiling example for ARM64):
cd cli
GOOS=linux GOARCH=arm64 go build -o dist/tasker-mcp-server-cli-aarch64 main.go

Updating the MCP Profile with Additional Tasks

Due to limitations in Tasker’s argument handling, follow these steps carefully to mark tasks as MCP-enabled:

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

Установка

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

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

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

{ "mcpServers": { "tasker": { "command": "/home/luis/tasker-mcp/dist/tasker-mcp-server-cli-x86_64", "args": [ "--tools", "/home/luis/tasker-mcp/dist/toolDescriptions.json", "--tasker-host", "192.168.1.123", "--tasker-api-key", "tk_...", "--mode", "stdio" ] } } }