DT

dceluis/tasker-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

52 stars 11 forks 品質 65 トレンド 13MIT

dceluis/tasker-mcp は [https://github.com/dceluis/tasker-mcp.] からインポートされた MCP サーバー候補です

概要

dceluis/tasker-mcp は [https://github.com/dceluis/tasker-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

このドキュメントは、依存関係のインストール、サーバーの準備、タスクの更新に関する手順を含む、Tasker MCP の統合の設定と実行を通してあなたを導きます。

お問い合わせ

使用ガイド

ステップ1:Taskerプロファイルをインポートする

  • タスクアプリに[dist/mcp_server.prj.xmlをインポートします。
  • インポート後、[MCP generate_api_key タスクを実行して、安全なアクセスのために API キーを生成します。

ステップ2:サーバーの選択と実行

CLIサーバー:

  • [dist/フォルダから、 [tasker-mcp-server-cli-aarch64]のような、デバイスのアーキテクチャの正しいCLIサーバーバイナリを選択します。
  • バイナリと[toolDescriptions.jsonファイルをデバイス(電話またはPC)にコピーします。
  • コピー後にバイナリを[mcp-serverに改名します。

例:

[scp を使う:

[adb push を使う:

  • SSEモードでサーバーを実行します。

  • またはstdio輸送を介してそれを呼び出します。

コマンドラインフラグ

tasker-mcp-server-cli アプリケーションは、次のフラグを受け付けます。

  • [--host: SSE サーバー (デフォルト: [0.0.0.0]) を listen するホストアドレス。
  • [--port: SSE サーバー (デフォルト: [8000]) を listen するポート.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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:

GitHub で README 全文を見る

インストール

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" ] } } }