task-eta-mcp
# task-eta-mcp
[](https://www.npmjs.com/package/task-eta-mcp)
[](https://github.com/jatinverma007/task-eta-mcp/actions/workflows/ci.yml)
[](LICENSE)

An MCP server that shows how long your AI's current task will take:
- **Elapsed time** since the task started
- **Steps done out of total**, for example 3 of 7
- **Estimated time left**, which counts down live and is re-estimated each time a step finishes
Works with any MCP client: Codex (CLI, IDE extension, ChatGPT desktop app), Claude Code, Claude Desktop, claude.ai, ChatGPT, Cursor, VS Code.
```
Add biometric login — ⏱ 4m 12s elapsed · 3/7 steps · ~5m 36s left
Now: Handle fallback to passcode
```
## Install in one line
Needs Node.js 20 or newer. On any computer:
```bash
claude mcp add --scope user task-eta -- npx -y task-eta-mcp@latest # Claude Code
codex mcp add task-eta -- npx -y task-eta-mcp@latest # Codex, ChatGPT desktop app
```
Then ask your AI: *"Use task-eta to track this: …"* and open <http://127.0.0.1:4545>. Other apps are below.
## How it works
The AI calls these tools while it works:
| Tool | When the AI calls it |
|---|---|
| `start_task` | Before starting: a title, the planned steps (each optionally sized small / medium / large), and an optional rough guess in minutes |
| `complete_step` | After finishing each step (optionally with a note, or `skipped: true`) |
| `add_steps` | When the work turns out bigger than planned |
| `get_progress` | When you ask "how long is left?" |
| `finish_task` | At the end (`outcome: "cancelled"` if it stopped early) |
**The estimate:** the AI marks each step **small**, **medium** or **large**, and a large step counts as 4 small ones (medium counts as 2). Time left = time per unit of work so far × units of work still to go, counted from when the last step finished. So the number ticks down every second, then gets corrected each time a step completes, and a slow "build and run tests" step isn't treated like a quick file read.
```json
{ "title": "Sanity check", "steps": [
{ "title": "Compare branch commits", "size": "small" },
{ "title": "Review SceneDelegate launch code" },
{ "title": "Build and run unit tests", "size": "large" }
]}
```
Steps given as plain text count as medium, so plans without sizes work as before. If the AI gave a rough guess up front, that guess is used until the first step finishes and then fades out as real timings come in. If a step runs long, the view shows how far over the estimate it is. The progress bar fills by work done, not step count.
It's an estimate, not a promise: it's rough after the first step, gets better as more steps finish, and depends on the AI sizing steps honestly.
## When things go wrong
| Situation | What task-eta does |
|---|---|
| Several chats share one server (Claude Desktop runs one for all chats) | Calls without `task_id` are refused when more than one task is running, with a list of running tasks and their ids. It never guesses. |
| Model switched mid-task, or the AI lost the id | `get_progress` with no id lists running tasks so the AI can continue the right one. Starting the same plan again within 10 minutes continues the existing task instead of creating a duplicate. |
| You press Stop, or the AI stops reporting | After much longer than the current step should take (at least 15 min) the card shows **No updates** instead of a countdown. After 2 hours idle it shows **Interrupted**. |
| The app closes or the server process exits | The task shows **Interrupted (the app closed)** straight away. |
| All steps done but `finish_task` never called | Shown as **Done** after 2 minutes. |
| Step times vary a lot (approval waits, laptop asleep) | Shows a likely range, e.g. "~6m left · likely 3m–12m", instead of one confident number. |
| Remote mode (ChatGPT, claude.ai) | `task_id` is always required, so people sharing a server never touch each other's tasks. Tasks are kept in memory, so restarting the server clears them. |
None of these states overwrite the saved task: if the AI comes back and continues a task by its id (after a restart or a long pause), it picks up where it left off.
## Where you see it
| Client | What you see |
|---|---|
| **Claude (web, desktop)**, **ChatGPT**, **VS Code**, **Goose** | A live progress card right in the chat (MCP Apps). It counts down and refreshes itself. |
| **Codex CLI, Claude Code, Cursor**, any text-only client | The status line after each tool call, plus a **live dashboard** at <http://127.0.0.1:4545> you can keep open beside the terminal. It shows tasks from every session on your computer; the browser tab title and icon show the time left. |
The dashboard is served while an AI session with task-eta is open. To keep it up all the time, run it on its own:
```bash
npx -y task-eta-mcp@latest dashboard
```
Running tasks show as live cards with time per step; finished and stopped tasks collapse into rows you can expand. **Clear finished** removes old ones.
## Install
Requires Node.js 20 or newer.
Every client starts it with `npx -y task-eta-mcp@latest`. Keeping `@latest` makes sure you get new versions instead of an older copy npx saved earlier. To run your own build instead, use `node /full/path/to/task-eta-mcp/dist/index.js` (see [CONTRIBUTING.md](CONTRIBUTING.md)).
### Codex (CLI, IDE extension, ChatGPT desktop app)
```bash
codex mcp add task-eta -- npx -y task-eta-mcp@latest
```
or add to `~/.codex/config.toml`:
```toml
[mcp_servers.task-eta]
command = "npx"
args = ["-y", "task-eta-mcp"]
```
### Claude Code
```bash
claude mcp add --scope user task-eta -- npx -y task-eta-mcp@latest
```
### Claude Desktop
Settings → Developer → Edit Config, then add to `claude_desktop_config.json` and restart:
```json
{
"mcpServers": {
"task-eta": { "command": "npx", "args": ["-y", "task-eta-mcp@latest"] }
}
}
```
### Cursor / VS Code
`.cursor/mcp.json` or `.vscode/mcp.json` (VS Code uses `"servers"` instead of `"mcpServers"`):
```json
{
"mcpServers": {
"task-eta": { "command": "npx", "args": ["-y", "task-eta-mcp@latest"] }
}
}
```
### ChatGPT and claude.ai (remote connectors)
Web apps can't launch a program on your computer, so they need the server running at a public **HTTPS** URL.
1. Run it in remote mode somewhere reachable:
```bash
npx -y task-eta-mcp@latest --http --host 0.0.0.0 --port 3000 --public-url https://your-domain.example
```
- **To try it quickly** from your own machine, start a tunnel first and note its https address:
```bash
cloudflared tunnel --url http://localhost:3000 # or: ngrok http 3000
```
Then start task-eta with that address, so it accepts requests for it:
```bash
npx -y task-eta-mcp@latest --http --public-url https://your-tunnel.trycloudflare.com
```
The tunnel address changes every time the tunnel restarts; update it in your app when it does. (Alternatively, keep the tunnel's Host header as `localhost`: `cloudflared tunnel --url http://localhost:3000 --http-host-header localhost`.)
- **To host it for real:** deploy with the included `Dockerfile` to Render, Fly.io, Railway, Google Cloud Run or similar. Set `PUBLIC_URL` to the service's https address.
2. Connect it:
- **ChatGPT:** Settings → Apps & Connectors → Advanced → turn on Developer mode, then create a connector with URL `https://your-domain.example/mcp` and authentication *None*. Availability depends on your ChatGPT plan, and on Business/Enterprise a workspace admin may need to allow developer mode first.
- **claude.ai:** Settings → Connectors → Add custom connector, URL `https://your-domain.example/mcp`.
- **Codex (remote):** `codex mcp add task-eta --url https://your-domain.example/mcp`, or in the ChatGPT desktop app: Settings → MCP servers → Add server → Streamable HTTP.
In remote mode, task ids are random and the "list all tasks" page is turned off, so people only see tasks they hold a link to. Tasks are kept in memory for 24 hours (up to 1,000). There's no sign-in, so don't put secrets in task titles.
## Make sure the AI actually uses it
The server tells clients when to call its tools, but some clients don't pass those instructions to the model. If the AI forgets, add a line to your project instructions (`AGENTS.md` for Codex, `CLAUDE.md` for Claude Code, custom instructions in ChatGPT):
> For any task with 3 or more steps, use the task-eta tools: call `start_task` with your planned steps first, `complete_step` after each step, and `finish_task` at the end. Show me the status line each time.
## Options
| Flag / env | Default | Meaning |
|---|---|---|
| `dashboard` (command) | — | Run only the live dashboard until Ctrl+C |
| `--http` | off | Remote mode: Streamable HTTP at `/mcp` |
| `--port`, `PORT` / `TASK_ETA_PORT` | 3000 remote, 4545 dashboard | Port |
| `--host` | `127.0.0.1` | Listen address (`0.0.0.0` when deploying) |
| `--public-url`, `PUBLIC_URL` | — | Base URL used in task links (remote mode) |
| `--no-dashboard`, `TASK_ETA_DASHBOARD=0` | dashboard on | Local mode: don't serve the dashboard |
| `TASK_ETA_DIR` | `~/.task-eta/tasks` | Local mode: where tasks are saved so one dashboard can show every session |
## Similar tools
- [Agent ETA](https://github.com/danielsinewe/AgentEstimate): a pre-run forecast with time ranges that learns from your past runs (Codex, Claude Code). Use it to decide whether to delegate; use task-eta to watch the task once it runs.
- [task-progress-bar](https://pypi.org/project/task-progress-bar-claude/): a zero-token progress bar in Claude Code's status line, built from its native task list.
- Session dashboards such as cctop or Agent Cockpit show what agents are doing (tokens, tool calls); task-eta shows when they'll finish.
## Publish it so anyone can install
```bash
npm login
npm publish # rename in package.json first if "task-eta-mcp" is taken
```
After that, the `npx -y task-eta-mcp@latest` commands above work for anyone. You can also list it in the official MCP Registry (registry.modelcontextprotocol.io) so clients can find it.
## Project layout
```
src/format.ts ETA math types and text formatting (shared with the browser views)
src/store.ts Tasks, steps and the estimate
src/server.ts MCP tools, instructions and the in-chat widget resource
src/web.ts Live dashboard routes
src/index.ts Command line: local (stdio) and remote (HTTP) modes
ui/ Browser views: in-chat widget (MCP Apps) and dashboard
test/ End-to-end tests with the official MCP client
```
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md). Releases are published to npm from GitHub Actions when a GitHub release is created.
## License
MIT
TDQS
Scored across 5 tools
Each tool maps to a distinct lifecycle action: start_task begins tracking, complete_step marks one step, add_steps extends the plan, get_progress is read-only status, and finish_task terminates. The only near-overlap is that complete_step also returns an estimate, but the intent (mutate vs. query) is clearly separated in the descriptions.
All five tools follow a consistent verb_noun pattern (start_task, finish_task, complete_step, add_steps, get_progress). The only minor deviation is singular/plural mixing on the noun (complete_step vs. add_steps), which is still readable and predictable.
Five tools is a tight, well-scoped surface for a task-tracking/ETA server; each tool covers a distinct phase of the workflow with no filler. Nothing feels redundant or missing at this count.
The core lifecycle (start, step progress, plan growth, status query, finish) is covered, so agents can run the main workflow without dead ends. Minor gaps remain: no way to un-complete or edit/remove a step, adjust a recorded step, or enumerate tasks despite the task_id implying multiple tasks.