Trail

dev.usetrail由 usetrail.dev 發布v1.29.1更新於 Oct 25, 2026

Issue tracker and durable project memory for your coding agent, scoped to the folder you open.

已驗證STDIO僅桌面效率與工作流知識與記憶

概覽

AI 產生的概覽

Trail 把編碼助理連接到團隊的議題追蹤器與持久專案記憶,範圍限定在你開啟的資料夾。

可以做什麼
列出、讀取、建立、更新、移動、領取和刪除追蹤器項目,含類型、狀態、優先順序、負責人和歷史,並取得下一個待辦項目,以及新增和讀取項目附件。讀取、新增、更新和審閱全專案共用的持久專案記憶。新增、列出、更新和刪除帶日期的提醒,並在日期到達時關閉或改期。可選安裝工作階段啟動鉤子,讓未完成項目和專案記憶從第一則訊息起就在上下文中。
適用情境
適合希望編碼助理依據真實團隊看板而非暫存檔案工作的情境:領取未完成項目、記錄所做工作,並保存後續工作階段在行動前可讀取的經驗知識。
執行需求
需要 Node 18 或更新版本,以 stdio 在本機執行。需要 Trail 帳號(免費方案含三個專案和三個人)並透過瀏覽器登入,權杖儲存在本機設定檔。可選變數:TRAIL_API_URL 用於自架 Trail,TRAIL_PROJECT 強制專案名稱,TRAIL_API_TOKEN 跳過瀏覽器登入(例如用於 CI),TRAIL_LANG 控制主控台語言。需要連線 Trail API 的網路。
安裝前請注意
助理可寫入團隊共用看板:建立、更新、移動和刪除項目,新增和更新記憶與提醒,上傳附件,隊友皆可見。儲存的權杖(TRAIL_API_TOKEN 或本機權杖檔)可存取你的 Trail 帳號,不再需要時可在應用程式的 AI token 面板撤銷。登入和鉤子安裝會修改本機助理設定檔。除非 TRAIL_API_URL 指向別處,資料會傳送到託管的 Trail 服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Trail,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

usetrail

The MCP server for Trail - it gives your coding agent your team's tracker and the project's durable memory, scoped to the folder you have open.

Your agent stops working blind. It reads what is open, writes what it did, and records what it learned the hard way - in the same board your team looks at, not in a scratch file that only that session can see.

This package is the client. It talks to your Trail account over the REST API; there is no database here. Dependencies are @modelcontextprotocol/sdk, zod and the built-in fetch.

Quick start

bash
# 1. connect this machine to your Trail account (opens your browser; no token to copy)npx -y usetrail@latest login
# 2. register it with your agent - this example is Claude Codeclaude mcp add trail -s user -- npx -y usetrail@latest

No account yet? Create one at usetrail.dev - the free plan covers three projects and three people.

Not tied to one agent. This is a plain MCP server over stdio, speaking the three protocol versions in use today. Any MCP-compatible client can run it; only the registration command differs, and each client documents its own.

Prefer a local checkout? Clone it instead, and the connector keeps itself up to date on its own (see Updating):

bash
git clone https://github.com/arsprengel/trail-mcp.git ~/.trail-mcpnpm --prefix ~/.trail-mcp install --omit=devnode ~/.trail-mcp/bin.js loginclaude mcp add trail -s user -- node ~/.trail-mcp/bin.js

On Windows, write the real path instead of ~: the registration stores the argument verbatim and Node does not expand it.

What your agent gets

The tracker - list_items, get_item, add_item, update_item, move_item, get_next, delete_item. Real items on your team's board, with type, status, priority, assignees and history. Work the agent picks up shows as in progress and closes when it is done, so the board is not a story someone has to retell.

Project memory - list_memory, get_memory, add_memory, update_memory, review_memory. The durable knowledge of a project: the deploy that has a trap in it, the decision nobody should relitigate, the command that is not in any README. Shared by everyone on the project, human or agent. A new session reads it before acting instead of rediscovering it.

Reminders - add_reminder, list_reminders, update_reminder, delete_reminder. Things with a date that must not be silently missed - and the agent closes or reschedules them itself once the date arrives.

Attachments - add_attachment, get_attachment. Files that belong to an item.

Which project it writes to

Trail holds many projects. The connector uses the folder you have open as the project - the folder name, or whatever a .trail file next to it says, or the TRAIL_PROJECT variable. So the agent writes to the right project without being told, and two repositories never bleed into each other. To reach across, the agent passes project explicitly on the tool.

Session hook (Claude Code, Gemini CLI, Antigravity)

Installed for you, once, when you log in - and on the connector's first run, which covers people who paste a token into the registration instead of logging in through the browser. Every session that starts in a project with a tracker gets the open items and the project memory in context from the first message - the agent starts knowing, instead of depending on someone remembering to ask. Fail-silent by design: no login or no network and the hook stays quiet.

Each tool keeps this in its own place, so the connector writes to the one that tool actually reads:

  • Claude Code - a session-start hook in ~/.claude/settings.json.
  • Gemini CLI - a session-start hook in ~/.gemini/settings.json.
  • Antigravity - the tools are registered in ~/.gemini/config/mcp_config.json, which is the file it actually reads: gemini mcp add does not connect Trail in Antigravity, because that command writes to ~/.gemini/settings.json instead. Field-tested on Antigravity 2.11 (Windows), of the three things that live in that config folder only the tool registration is honored - the opening-summary hook is not run, and a plugin folder placed exactly where its own documentation says is not read. So on Antigravity the agent gets the tools and the server's working rules, and fetches the project summary itself on the first turn instead of receiving it. The plugin path is built and tested behind a switch, waiting for that to change.

usetrail status tells you, per tool found on this machine, whether it is on - so you never have to go digging through settings files to find out.

It never fights you. A tool that isn't on the machine gets nothing created for it, and hooks install will not fabricate a config for a program you don't have. If you remove it with hooks uninstall, it does not come back on its own - put it back with:

bash
npx -y usetrail@latest hooks install

Clients without a hook mechanism are covered too: the server's own instructions tell the agent to fetch the summary itself before acting.

Your own Trail

Point it at your server once and it stays pointed:

bash
TRAIL_API_URL=https://your-trail npx -y usetrail@latest login

Without that variable, login goes to the hosted service.

Commands

bash
npx -y usetrail@latest            # start the MCP server over stdio - what your agent runsnpx -y usetrail@latest login      # connect this machine (browser confirmation, no token copying)npx -y usetrail@latest status     # server address, current project, whether a token is presentnpx -y usetrail@latest logout     # delete the saved tokennpx -y usetrail@latest doctor     # find the install on this machine and unstick auto-updates

The token is stored at ~/.config/trail/token.json (mode 600). Revoke it whenever you want from the "AI token" panel in the app.

Configuration

VariableWhat it does
TRAIL_API_URLYour own Trail's address. Saved after the first login. Defaults to the hosted service.
TRAIL_PROJECTForces the project name (default: the open folder).
TRAIL_API_TOKENA token directly, skipping the browser login. Useful in CI.
TRAIL_LANGLanguage of what the connector prints on screen: pt or en. Without it, your system's language, and English when your system states none. Never changes what the agent reads.

The former names (TETHER_*) keep working, with no deadline - the product used to be called Tether, and nothing anyone already configured has to change.

Updating

The @latest is not decoration. Registered as npx -y usetrail@latest, the connector resolves the published version every time your agent starts a session, so a new release reaches you without anyone doing anything. Registered as bare npx usetrail, npm reuses whatever copy it cached the first time - and that machine stays on that version forever. Use @latest.

The cost of @latest is about a second at session start, and a network call. Neither matters in practice: the connector talks to Trail over the network anyway.

A cloned install updates itself differently: on startup it fires a quiet fast-forward pull in the background, at most every six hours. The running session keeps the version it loaded; the next one starts updated. No network or a local conflict and nothing happens, silently.

Stuck on an old version? npx -y usetrail@latest doctor finds the install, reports the version and unsticks it.

Requirements

Node 18 or newer.

License

MIT. This package is the client - the connector you run on your own machine. Use it, fork it, adapt it. The Trail service it talks to is a separate, hosted product.

來源:README.md,提交 0dcaad6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.29.1最新Sep 18, 2026
  2. v1.29.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分