arsprengel

usetrail

Community arsprengel
Updated

Trail's MCP server: your team's issue tracker and the project's durable memory, scoped to the folder your coding agent has open.

usetrail

The MCP server for Trail - it gives your coding agent your team'stracker 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 itlearned the hard way - in the same board your team looks at, not in a scratch file that onlythat session can see.

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

Quick start

# 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 Code
claude mcp add trail -s user -- npx -y usetrail@latest

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

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

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

git clone https://github.com/arsprengel/trail-mcp.git ~/.trail-mcp
npm --prefix ~/.trail-mcp install --omit=dev
node ~/.trail-mcp/bin.js login
claude mcp add trail -s user -- node ~/.trail-mcp/bin.js

On Windows, write the real path instead of ~: the registration stores the argument verbatimand 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 andhistory. Work the agent picks up shows as in progress and closes when it is done, so the boardis 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 shouldrelitigate, the command that is not in any README. Shared by everyone on the project, human oragent. A new session reads it before acting instead of rediscovering it.

Reminders - add_reminder, list_reminders, update_reminder, delete_reminder. Things witha date that must not be silently missed - and the agent closes or reschedules them itself once thedate 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 - thefolder name, or whatever a .trail file next to it says, or the TRAIL_PROJECT variable. Sothe agent writes to the right project without being told, and two repositories never bleed intoeach 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 peoplewho paste a token into the registration instead of logging in through the browser. Every sessionthat starts in a project with a tracker gets the open items and the project memory in context fromthe 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 thefile it actually reads: gemini mcp add does not connect Trail in Antigravity, because thatcommand 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 - theopening-summary hook is not run, and a plugin folder placed exactly where its own documentationsays is not read. So on Antigravity the agent gets the tools and the server's working rules, andfetches the project summary itself on the first turn instead of receiving it. The plugin path isbuilt 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 haveto 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, andhooks install will not fabricate a config for a program you don't have. If you remove it withhooks uninstall, it does not come back on its own - put it back with:

npx -y usetrail@latest hooks install

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

Your own Trail

Point it at your server once and it stays pointed:

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

Without that variable, login goes to the hosted service.

Commands

npx -y usetrail@latest            # start the MCP server over stdio - what your agent runs
npx -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 present
npx -y usetrail@latest logout     # delete the saved token
npx -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 fromthe "AI token" panel in the app.

Configuration

Variable What it does
TRAIL_API_URL Your own Trail's address. Saved after the first login. Defaults to the hosted service.
TRAIL_PROJECT Forces the project name (default: the open folder).
TRAIL_API_TOKEN A token directly, skipping the browser login. Useful in CI.

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

Updating

The @latest is not decoration. Registered as npx -y usetrail@latest, the connector resolvesthe published version every time your agent starts a session, so a new release reaches you withoutanyone doing anything. Registered as bare npx usetrail, npm reuses whatever copy it cached thefirst 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 inpractice: 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 thebackground, at most every six hours. The running session keeps the version it loaded; the next onestarts 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 andunsticks 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.

MCP Server ยท Populars

MCP Server ยท New

    esperanza-volkov

    confdiff

    Semantic, format-aware diff for config & structured-data files (JSON, YAML, TOML, INI, .env, .properties, CSV, XML). See what actually changed โ€” keys and values, not text noise.

    Community esperanza-volkov
    butterbase-ai

    @butterbase/mcp

    Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP.

    Community butterbase-ai
    adamsiwiec1

    Host MCP SSE Server on Google Cloud Run

    Host an Model Context Protocol SSE deployment on Cloud Run, Authenticating with IAM.

    Community adamsiwiec1
    Mitek99

    DeepView MCP

    DeepView MCP is a Model Context Protocol server that enables IDEs like Cursor and Windsurf to analyze large codebases using Gemini 2.5 Pro's extensive context window.

    Community Mitek99
    prisma

    orm

    Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

    Community prisma