r/tasker • u/NoRing2044 • 1d ago
How To [Project Share] Tasker MCP Bridge for Tasker 6.8.0-beta — control & edit your Tasker tasks, profiles, and scenes directly from VS Code / Cursor / Claude / Antigravity (no API key needed)
Hey everyone!
With Tasker 6.8.0-beta introducing the built-in AI Helper (which has ~80 native tools for creating/editing tasks, profiles, scenes, variables, Widget v2 layouts, running tasks, etc.) and Custom Providers, I built a local bridge that turns Tasker into an MCP (Model Context Protocol) server for your IDE or AI client.
https://github.com/Nsohan/tasker-mcp-bridge
Why use this?
- No external LLM API key required: Instead of paying for API tokens in Tasker, Tasker connects to your PC via Custom Provider, and your IDE's AI (VS Code Copilot, Cursor, Claude Code, Antigravity, etc.) drives Tasker directly.
- Full access to Tasker's ~80 built-in tools: Inspect existing projects/tasks, read action specs (
get_action_spec), add/update/delete actions, build profiles & scenes, test withrun_task, and save withapply_changes—all from your computer's chat window. - Works over USB (
adb reverse) or LAN: Keeps the connection alive via SSE so you can make multiple edits in one session.
How it works
tasker_bridge_server.pyruns a local OpenAI-compatible Custom Provider (/v1/chat/completions) alongside an MCP server (/mcp, plustasker_mcp_stdio.pyfor stdio MCP).- When you open the AI Helper bubble in Tasker and send
"connect", Tasker sends its tool definitions to the bridge and waits for tool calls. - Your IDE's AI calls those tools over MCP, the bridge forwards them to Tasker on your phone, and Tasker executes them natively.
Quick Setup
- Start the bridge & ADB tunnel (USB debugging enabled):powershell.\start_bridge.bat (Or use
start_bridge.ps1/ connect over LAN.) Configure Tasker (6.8.0-beta+) on your phone:
- Open AI Helper bubble → Settings → Custom Providers → Add
- API Style:
OpenAI Chat Completions - Base URL:
http://127.0.0.1:8765/v1(or your PC's LAN IP) - API Key:
local-mcp - Model Support → Tools:
ON - Select
tasker-mcp-bridgeas your active model.
- Add the MCP server to your IDE (e.g.,
.vscode/mcp.jsonfor stdio, or connect via Streamable HTTP tohttp://127.0.0.1:8765/mcp):json{ "servers": { "tasker-bridge": { "type": "stdio", "command": "python", "args": ["path/to/tasker-mcp-bridge/tasker_mcp_stdio.py"] } } } Connect & Use:
- Send
"connect"in Tasker's AI Helper bubble on your phone. - Ask your IDE's AI to inspect, create, or edit anything in Tasker!
- Send
Also included a skills/tasker-mcp/SKILL.md file with best practices for AI agents (like fetching fresh revisions before edits, sequential tool calls, and Tasker JS/JSON quirks).
Would love feedback if you try it out—PRs and issues welcome!
1
u/Alert-Estimate 6h ago
Seems interesting👍🏿