@tday-com/mcp 0.4.26 → 0.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -20
  2. package/dist/cli.js +376 -277
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Record narrated product demos with your coding agent. This is [tday](https://tday.com)'s MCP server and CLI for Claude Code, Cursor, Codex, VS Code, Gemini CLI and any other MCP client.
4
4
 
5
- Ask your agent for a demo of a feature. It starts a separate demo copy of the app in your repo, on your machine, with throwaway data, and records one beat for each narrated line as it uses the app. It works with web apps, Electron apps and terminal tools. Before anything is uploaded it shows you a review page. Once you say yes, tday adds the voice, cursor, camera and style, and the demo arrives in tday ready to edit.
5
+ Ask your agent for a demo of a feature. It starts a separate demo copy of the app in your repo, on your machine, with throwaway data, and records one beat for each narrated line as it uses the app. It works with web apps, Electron apps and terminal tools. Before anything is uploaded it shows you a review page. Once you say yes, tday.com adds the voice, cursor, camera and style, and the demo arrives in tday.com ready to edit.
6
6
 
7
7
  **Only rendered UI and metadata leave your machine.** Source code, scripts, `.env` files and their values, cookies, local storage and network traffic never do. Every upload is scanned for secrets and for the values in your `.env` files first, and anything it finds blocks the upload until it is removed. Details: [What leaves your machine](https://docs.tday.com/capture-privacy).
8
8
 
9
9
  ## Install
10
10
 
11
- With a tday account, sign in once:
11
+ With a tday.com account, sign in once:
12
12
 
13
13
  ```bash
14
14
  curl -fsSL https://tday.com/install.sh | bash
@@ -18,15 +18,15 @@ npx -y @tday-com/mcp@latest install
18
18
 
19
19
  The installer shows a link and a code. Open the link on any device (it opens by itself when this computer has a browser), sign in or sign up on tday.com, check the code matches and authorize this machine; it works the same from a sandbox, a cloud machine or over SSH. It then adds the `tday` server to Claude Code, Cursor, Gemini CLI and VS Code (stable and Insiders, user `mcp.json`). For Codex it prints a TOML block to paste; the Codex app reads the same file. There is no key to copy. The server works on the brand connected to your repo's git remote, and asks which one when you work on several.
20
20
 
21
- Or add the server to Cursor or VS Code in one click. The first time your agent uses it, it calls `tday_sign_in`, which shows you a link and a code to approve on any device where you are signed in to tday:
21
+ Or add the server to Cursor or VS Code in one click. The first time your agent uses it, it calls `tday_sign_in`, which shows you a link and a code to approve on any device where you are signed in to tday.com:
22
22
 
23
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=tday&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyItLXByZWZpeCIsIn4vIiwiLXkiLCJAdGRheS1jb20vbWNwQGxhdGVzdCIsInNlcnZlIl19) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_tday-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522tday%2522%252C%2522type%2522%253A%2522stdio%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522--prefix%2522%252C%2522~%252F%2522%252C%2522-y%2522%252C%2522%2540tday-com%252Fmcp%2540latest%2522%252C%2522serve%2522%255D%257D)
23
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=tday&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyItLXByZWZpeCIsIn4vIiwiLXkiLCJAdGRheS1jb20vbWNwQGxhdGVzdCIsInNlcnZlIl19) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_tday.com-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522tday%2522%252C%2522type%2522%253A%2522stdio%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522--prefix%2522%252C%2522~%252F%2522%252C%2522-y%2522%252C%2522%2540tday-com%252Fmcp%2540latest%2522%252C%2522serve%2522%255D%257D)
24
24
 
25
- For only your account's tools in VS Code (brands, credits and what your plan includes, no demos), add tday's hosted connector instead. It runs on tday.com and signs you in with OAuth:
25
+ For only your account's tools in VS Code (brands, credits and what your plan includes, no demos), add tday.com's hosted connector instead. It runs on tday.com and signs you in with OAuth:
26
26
 
27
- [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_tday_connector-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522tday-connector%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Ftday.com%252Fapi%252Fmcp%2522%257D)
27
+ [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_tday.com_connector-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522tday-connector%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Ftday.com%252Fapi%252Fmcp%2522%257D)
28
28
 
29
- With a capture prompt from a teammate (no tday account needed), run the line it gives you:
29
+ With a capture prompt from a teammate (no tday.com account needed), run the line it gives you:
30
30
 
31
31
  ```bash
32
32
  TDAY_CAPTURE_TOKEN=<token from the prompt> npx --prefix ~ -y @tday-com/mcp@latest install
@@ -40,32 +40,34 @@ Then check everything:
40
40
  npx -y @tday-com/mcp@latest doctor
41
41
  ```
42
42
 
43
- It checks the browser, ffmpeg (used for demos), your sign-in and the connection to tday. It needs Node 18.17 or later, and Google Chrome or Playwright's Chromium.
43
+ It checks the browser, ffmpeg (used for demos), your sign-in and the connection to tday.com. It needs Node 18.17 or later, and Google Chrome or Playwright's Chromium.
44
44
 
45
45
  Earlier installs added a second server, `tday-capture`. Running `install` again replaces it with `tday`, which has the same tools.
46
46
 
47
47
  ## What your agent gets
48
48
 
49
- One server, `tday`. Each time it starts it asks tday what your account can use, and lists only those tools.
49
+ One server, `tday`. Each time it starts it asks tday.com what your account can use, and lists only those tools.
50
50
 
51
51
  **Demos** (`demo_*`):
52
52
 
53
53
  - `demo_features` / `demo_docs` - your features (newest first) and the docs pages that still need a demo.
54
- - `demo_guide` - how tday wants a demo made.
55
- - `demo_app_notes` / `demo_app_note_save` - how your apps were started before, kept in your repo's `.tday` folder (`.tday/apps/<app>.md`). Your agent writes them on your machine and never commits; commit `.tday/` to share them with your team's agents. Nothing in them is sent to tday.
54
+ - `demo_guide` - how tday.com wants a demo made.
55
+ - `demo_app_notes` / `demo_app_note_save` - how your apps were started before, kept in your repo's `.tday` folder (`.tday/apps/<app>.md`). Your agent writes them on your machine and never commits; commit `.tday/` to share them with your team's agents. Nothing in them is sent to tday.com.
56
56
  - `demo_check` - before recording, a read-only look at where the demo's data would live and what it could reach.
57
57
  - `demo_start`, then `demo_beat` for each narrated line.
58
58
  - `demo_review` - the review page. Your agent uploads with `demo_upload` only after you confirm with the code it shows you.
59
59
  - `demo_finish`.
60
60
  - `demo_embed_docs` - puts finished demos into the docs in your repo.
61
61
 
62
- **Captures** (`capture_*`): real screens, components and flows of a feature, for its product screens in tday. They are reviewed and confirmed the same way before upload.
62
+ **Captures** (`capture_*`): real screens, components and flows of a feature, for its product screens in tday.com. They are reviewed and confirmed the same way before upload.
63
63
 
64
64
  **Your account:** `tday_whoami`, `tday_list_brands`, `tday_get_brand`, `tday_create_brand`, `tday_get_credit_prices` and `tday_get_usage`.
65
65
 
66
- **Where your plan includes them:** designs (`tday_generate_design`, which can make an image about one of your features from `tday_list_features` using its product screens and show your own app components from `tday_list_product_components`, then look at the result and change it yourself with `tday_get_design_code` and `tday_edit_design` or have tday redesign it with `tday_revise_design`, `tday_poll_generation`, `tday_list_designs`, `tday_get_design`, `tday_download_image`) launch videos (`tday_list_features`, `tday_create_launch_video`, `tday_poll_launch_video`, `tday_get_launch_video_mp4`, `tday_revise_launch_video`), and, with either, product screens: the screens tday draws of your app from your code, filed on the features they show (`tday_get_product_screens`, `tday_get_product_screen` with the drawn image for review, `tday_set_product_screen_context`, `tday_file_product_screen`, `tday_remove_product_screen`, `tday_leave_product_screen_feedback`, `tday_undo_product_screen_fact`, `tday_add_product_screen_reference`, `tday_remove_product_screen_reference`).
66
+ **Posting your demos:** `tday_list_postable_demos` lists your finished demos and the X and LinkedIn accounts a plan posts from. `tday_plan_demo_posts` writes the posts (your brand announces the feature, your own account posts it in your voice, each with a short clip of the demo) and saves them as drafts on your brand's Planner for you to review and schedule. Your agent schedules them only when you tell it to.
67
67
 
68
- Anything that spends credits is charged to your organisation's balance at the same price as in the app. When the balance cannot cover a request, tday answers with a 402 and spends nothing. `tday_get_credit_prices` lists every price.
68
+ **Where your plan includes them:** designs (`tday_generate_design`, which can make an image about one of your features from `tday_list_features` using its product screens and show your own app components from `tday_list_product_components`, then look at the result and change it yourself with `tday_get_design_code` and `tday_edit_design` or have tday.com redesign it with `tday_revise_design`, `tday_poll_generation`, `tday_list_designs`, `tday_get_design`, `tday_download_image`) launch videos (`tday_list_features`, `tday_create_launch_video`, `tday_poll_launch_video`, `tday_get_launch_video_mp4`, `tday_revise_launch_video`), and, with either, product screens: the screens tday.com draws of your app from your code, filed on the features they show (`tday_get_product_screens`, `tday_get_product_screen` with the drawn image for review, `tday_set_product_screen_context`, `tday_file_product_screen`, `tday_remove_product_screen`, `tday_leave_product_screen_feedback`, `tday_undo_product_screen_fact`, `tday_add_product_screen_reference`, `tday_remove_product_screen_reference`).
69
+
70
+ Anything that spends credits is charged to your organisation's balance at the same price as in the app. When the balance cannot cover a request, tday.com answers with a 402 and spends nothing. `tday_get_credit_prices` lists every price.
69
71
 
70
72
  ## Commands in your agent
71
73
 
@@ -84,7 +86,7 @@ The installer also writes Claude Code slash commands to `~/.claude/commands`:
84
86
 
85
87
  - `/tday-demo` and `/tday-demos-needed`.
86
88
  - `/tday-credits`.
87
- - `/tday-launch-video` and `/tday-product-screens` (set up and review the product screens tday draws of your app, reading this codebase), where your plan includes launch videos.
89
+ - `/tday-launch-video` and `/tday-product-screens` (set up and review the product screens tday.com draws of your app, reading this codebase), where your plan includes launch videos.
88
90
  - `/tday`, `/tday-design`, `/tday-brand` and `/tday-ideas`, where it includes designs.
89
91
 
90
92
  A command your account no longer has is removed the next time you run `install`.
@@ -92,7 +94,7 @@ A command your account no longer has is removed the next time you run `install`.
92
94
  ## CLI
93
95
 
94
96
  ```text
95
- tday install Sign in and add tday to your coding agents
97
+ tday install Sign in and add tday.com to your coding agents
96
98
  tday sign-in Sign in only, changing no agent (a sandbox, a cloud machine, CI)
97
99
  tday token Print this machine's login, to store as TDAY_TOKEN elsewhere
98
100
  tday serve Run the MCP server over stdio (what your agent launches)
@@ -125,7 +127,7 @@ Run any of them with `npx -y @tday-com/mcp@latest <command>`.
125
127
  }
126
128
  ```
127
129
 
128
- `--prefix` keeps npx from reading the repo's `package.json`: the agent starts the server in your repo, and a repo whose `overrides` pin one of this package's dependencies would otherwise fail the start (`EOVERRIDE`). `install` writes this entry pinned to its own version. When tday releases a newer version, the server re-pins its own entries to it as it starts (only to a version tday names and that npm shows tday's release workflow published; Codex's TOML is never edited), so your agent runs it from its next start; `TDAY_MCP_AUTO_UPDATE=0` keeps the version you have. By hand: `npx --prefix ~ -y @tday-com/mcp@latest update`. Pin the version in an entry you write by hand too: an `@latest` entry is never rewritten. If you add the entry yourself, run `npx -y @tday-com/mcp@latest install` once afterwards, so the browser sign-in can link the server to your tday account.
130
+ `--prefix` keeps npx from reading the repo's `package.json`: the agent starts the server in your repo, and a repo whose `overrides` pin one of this package's dependencies would otherwise fail the start (`EOVERRIDE`). `install` writes this entry pinned to its own version. When tday.com releases a newer version, the server re-pins its own entries to it as it starts (only to a version tday.com names and that npm shows tday.com's release workflow published; Codex's TOML is never edited), so your agent runs it from its next start; `TDAY_MCP_AUTO_UPDATE=0` keeps the version you have. By hand: `npx --prefix ~ -y @tday-com/mcp@latest update`. Pin the version in an entry you write by hand too: an `@latest` entry is never rewritten. If you add the entry yourself, run `npx -y @tday-com/mcp@latest install` once afterwards, so the browser sign-in can link the server to your tday.com account.
129
131
 
130
132
  For Gemini CLI, put the same `mcpServers.tday` object in `~/.gemini/settings.json`. VS Code's user `mcp.json` keys entries by `servers` and names the transport: `{ "servers": { "tday": { "type": "stdio", "command": "npx", "args": ["--prefix", "<your home directory>", "-y", "@tday-com/mcp@<version>", "serve"] } } }`.
131
133
 
@@ -137,16 +139,16 @@ For Claude's or ChatGPT's custom connector, use the hosted endpoint. It has the
137
139
  https://tday.com/api/mcp
138
140
  ```
139
141
 
140
- The hosted connector uses OAuth with PKCE and rotating refresh tokens. You sign in on tday.com, your assistant gets a scoped bearer token, and you can revoke the connection from tday Settings - Integrations.
142
+ The hosted connector uses OAuth with PKCE and rotating refresh tokens. You sign in on tday.com, your assistant gets a scoped bearer token, and you can revoke the connection from tday.com Settings - Integrations.
141
143
 
142
144
  ## Security and privacy
143
145
 
144
146
  - **You see what uploads.** Every upload is reviewed first: every file and string, with a secret scan that blocks it. A demo uploads once its review is clean, and the review page stays on your machine. A capture of your screens works the same way: it uploads once its review is clean, and its review page stays on your machine too.
145
147
  - **Your repo stays as it was.** Demos run in a separate demo instance, and anything the agent creates is deleted when it finishes.
146
148
  - **What a connection can do.** The token only reaches the routes these tools use. It cannot delete or transfer a brand, manage members, or see payment details.
147
- - **Links expire.** A link made by `install` lasts 90 days; run `install` again to renew it. A capture prompt's token lasts 7 days, a demo prompt's one day. You can disconnect any connection from tday Settings - Integrations.
149
+ - **Links expire.** A link made by `install` lasts 90 days; run `install` again to renew it. A capture prompt's token lasts 7 days, a demo prompt's one day. You can disconnect any connection from tday.com Settings - Integrations.
148
150
  - **Local only.** The server runs on your machine over stdio. The installer's sign-in uses a loopback callback on `127.0.0.1` with a random `state` value. Your login is written to `~/.tday/config.json` with `0600` permissions.
149
- - **No telemetry.** The server talks only to tday, and to tday's file storage for uploads and the downloads you ask for. Downloads are limited to HTTPS image URLs on an allowlist, re-check redirects, are capped at 50MB, and are written only inside the current working directory.
151
+ - **No telemetry.** The server talks only to tday.com, and to tday.com's file storage for uploads and the downloads you ask for. Downloads are limited to HTTPS image URLs on an allowlist, re-check redirects, are capped at 50MB, and are written only inside the current working directory.
150
152
 
151
153
  ## License
152
154