Connect an AI agent (MCP)

Henchly runs a local MCP server (Model Context Protocol) so Claude Desktop can read and manage your tasks on your behalf — “add a task to call the dentist tomorrow”, “what’s on my plate today?”, “close everything in the Website project.”

The server runs only on your machine (localhost) and is protected by a bearer token. No task data leaves your Mac unless you set up your own tunnel.

Your connection details

The card below shows your live server URL, port, and token. Copy the ready-made config straight into your client.

In the app, this spot shows a card with your live server URL, port and token, with buttons to copy a ready-made config. On the web it can’t know them, so here is what the Claude Desktop entry looks like:

{
  "mcpServers": {
    "henchly": {
      "url": "http://localhost:3741",
      "headers": { "Authorization": "Bearer <your token>" }
    }
  }
}

Open Help → Connect an AI agent or Settings → MCP Server in Henchly to copy your own.

One token per profile

Each profile has its own token — pick the profile in Settings → MCP. An agent set up with Work’s token sees and changes only Work, whatever profile Henchly is showing, and the config entries are named for the profile (henchly-work, henchly-home) so both can be connected at once. A profile hidden on this Mac has its token refused here. See Work and Home profiles.

Connect Claude Desktop

  1. Make sure the MCP server is enabled above (turn it on in Settings if needed).

  2. Click Copy Claude Desktop config above — this copies a henchly entry pre-filled with your live URL and token.

  3. Open Claude Desktop and go to Settings → Developer → Edit Config, or open the file directly at ~/Library/Application Support/Claude/claude_desktop_config.json.

  4. Paste the henchly entry inside the mcpServers object. If the file is empty, paste the whole snippet you copied. It should look like:

    {
      "mcpServers": {
        "henchly": {
          "url": "http://localhost:3741",
          "headers": { "Authorization": "Bearer YOUR_TOKEN" }
        }
      }
    }
  5. Quit and reopen Claude Desktop (a restart is required to load new MCP servers).

  6. In a new chat, click the tools (🔌) icon to confirm henchly is connected, then ask: “What tasks do I have due today?” — Claude will call Henchly’s tools.

If henchly doesn’t appear, double-check the server shows Running above and that the token in the config matches the one shown here.

Connect Claude Desktop (managed / enterprise)

Some organizations manage Claude Desktop with a policy that blocks remote MCP servers — any url-based entry, even one pointing at localhost. If the HTTP config above doesn’t connect on a managed Mac, use the stdio config instead.

Instead of a URL, this option gives Claude Desktop a command it launches directly. Under the hood it starts a tiny bridge bundled inside Henchly (using Henchly’s own runtime — no Node or npm install needed) that forwards requests to your local server. Claude Desktop only ever sees a local command, so it passes the remote-server policy. All the same tools work.

Henchly must be running. The bridge talks to the server inside the app, so keep Henchly open while you use it in Claude Desktop. If the app is closed, Claude will show a clear “Henchly isn’t running” message rather than hanging.

  1. Make sure the MCP server is enabled above.

  2. Click Copy stdio config above (also in Settings → MCP Server).

  3. Paste the henchly entry into ~/Library/Application Support/Claude/claude_desktop_config.json, inside mcpServers. It uses only command / args / env — no url:

    {
      "mcpServers": {
        "henchly": {
          "command": "/Applications/Henchly.app/Contents/MacOS/Henchly",
          "args": ["/Applications/Henchly.app/Contents/Resources/mcp-bridge/index.mjs"],
          "env": {
            "ELECTRON_RUN_AS_NODE": "1",
            "HENCHLY_MCP_TOKEN": "YOUR_TOKEN",
            "HENCHLY_MCP_PORT": "3741"
          }
        }
      }
    }
  4. Quit and reopen Claude Desktop, then confirm henchly is connected.

If you rotate your token later, re-copy the stdio config and restart Claude Desktop — the old token stops working immediately.

Available tools

  • Areas — agents can read, create and update Areas with list_areas, get_area, create_area and update_area, and set area_id on tasks and projects. A task inside a project takes its Area from the project, so area_id on such a task is rejected with an explanation; move the project instead. get_task reports the task’s effective Area and where it comes from (its project, its parent task, or the task itself).
  • Tasks — list_tasks (filter by status, project, area, goal, priority, size/effort, planned or due dates, availability/deferred state, and sort), search_tasks (full-text), get_task, create_task, update_task, complete_task, delete_task. planned_for is the intended work day, due_date is the deadline used by reminders, and start_date is the availability boundary; a future start excludes new agent claims until that local day. Use available or deferred when listing, and sort_by: schedule_date to prefer Planned then fall back to Due. All three dates can be set independently, and update_task accepts null to clear one. Tasks can carry a size (XS–XL) that agents can set and filter on. Every task says who does it (Me or AI); agents read and set it as ai_eligible on create_task, update_task and list_tasks. A task an agent creates is an AI task unless it passes ai_eligible: false — which the agent guide asks for anything you must do yourself, such as “Call mom” — and an AI task requires an ai_instructions field describing what to do, so Henchly rejects the call (with a note to retry) if it’s missing. claim_task refuses Me tasks and AI tasks without instructions, and every launch from Henchly names the task by its ID.
  • Projects, tags — list_projects, create_project, update_project, get_project_context, list_tags, plus add_comment to discuss a task. Agents are asked to give a project they create a one- or two-sentence description, or to ask you for one; update_project changes a project’s name, description, colour or Area. get_project_context returns everything a Discuss in … chat carries about a project, in full.
  • Goals — list_goals, get_goal, create_goal, update_goal, complete_goal, add_goal_update, and link_task_to_goal / link_project_to_goal to track progress toward a strategic objective.
  • Escalations — long-running situations to follow, with their own list/get/create/update tools and a dated update journal.
  • Execution session — start_execution_session, claim_task (moves the task to In Progress), report_progress, execution_await_user (hand a task back to you for the next step), execution_complete_task, execution_fail_task, end_execution_session. Handing back, finishing and failing move the task to Waiting; a finished task becomes Done only when you confirm it in the app. Ending the session releases the tasks it claimed, and so does closing a task (Done, Cancelled, Someday or deleted); a later session can claim an unfinished run again.
  • Outside actions — log_action records something an agent did outside Henchly for a task — a Slack message or email sent, a document written, a pull request opened — with a link to it. Each one shows in the task’s activity thread with an icon for its kind and a link you can click to check the agent’s work. It takes only http and https links.

Want your agent to use these well? In Settings → MCP Server you can download a SKILL.md that teaches a Claude Code agent how and when to use each tool. Other MCP clients receive the same guidance automatically on connect. The downloaded file is stamped with the app version and a guide hash (in its front-matter and a short Freshness section), so if you saved a copy earlier you can re-download and compare to tell whether yours is out of date.

Approving agent actions

When an agent asks permission before a sensitive action, you decide how Henchly responds. In Settings → MCP Server → Agent action approvals:

  • Always allow all agent actions — a master switch that turns off every approval prompt. Turn it on only for an agent you fully trust.
  • Categories — set a baseline for each kind of action (for example file system write or payment transaction): Ask each time, Always allow, or Always deny. New and sensitive categories stay on Ask each time by default, so nothing is auto-approved unless you choose it.
  • Write tools — expand this list to override an individual tool independent of its category (for example, always allow create_task but keep asking for delete_task). Leave a tool on Inherit category to follow its category setting.

Some tools show a “not gated yet” badge. Those tools run directly today and don’t route through the approval prompt, so an override on them has no effect until a future update wires them up — the badge is there so the setting stays honest about what it currently controls.

Security

  • The server binds to 127.0.0.1 only — it’s never reachable from the network.
  • Keep your token secret. If it leaks, rotate it in Settings → MCP Server; the old token stops working immediately. Rotating one profile’s token leaves the others working.
  • Disable the server entirely from Settings when you’re not using it.