@smallwebco/tinypivot-mcp 0.4.0 → 0.5.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinypivot",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Data analysis studio inside Claude — turn CSV, TSV, JSON, JSONL, API/MCP outputs, and SQL results from any database into interactive charts, deterministic pivot tables, data grids, screenshot-ready terminal cards, and Excel exports.",
5
5
  "author": {
6
6
  "name": "Small Web, LLC",
package/README.md CHANGED
@@ -10,7 +10,19 @@ In a terminal agent, the first TinyPivot step opens the Studio at `http://127.0.
10
10
 
11
11
  - **Trace:** every step, newest last, marked as the agent's or yours, with its reason (the `why` the agent passes), what it shows (for example `line chart: sum(mrr) by month`), the row count, and the SQL or file filter behind it. File loads are shown as the SQL that reproduces them.
12
12
  - **SQL editor:** edit a step's SQL, or write new SQL over local files and loaded tables, and run it with DuckDB, read-only. The result replaces the view, keeps the step's chart when its fields still exist, and joins the trace as your step.
13
- - **Notes to the agent:** write what to check or change, optionally about one step. The agent receives your notes at the end of its next TinyPivot reply. To send one at once, **Copy as prompt** puts the note, the step and its SQL on your clipboard.
13
+ - **Messages to the agent, with data:** write what to check or change, optionally about one step, and attach data: click a row, drill into a pivot cell, or attach the current view. It goes to the agent with the dataset id, so the agent can query the rest itself.
14
+ - **AI Analyst (Pro):** the Analyst tab answers questions about the loaded data. Your own agent answers, not a separate model or API key, and the SQL it suggests runs locally, read-only.
15
+
16
+ How a message reaches your agent depends on the harness. The Studio shows which one applies:
17
+
18
+ | Agent | How Studio messages arrive |
19
+ |---|---|
20
+ | pi | Live: TinyPivot's pi extension starts a turn, and the answer comes back to the Studio. Run `npx @smallwebco/tinypivot-mcp@latest init` once to install or update the extension. |
21
+ | Claude Code | Live when started with `claude --dangerously-load-development-channels server:tinypivot` (Claude Code channels, a research preview). The agent answers with `studio_reply`. Otherwise, with its next TinyPivot reply. |
22
+ | Hosts with MCP sampling | The Analyst answers with the host's own model, outside the conversation. |
23
+ | Others | With the agent's next TinyPivot reply. **Copy as prompt** puts the message, the step, its SQL and the data on your clipboard to paste now. |
24
+
25
+ In desktop and IDE hosts that show TinyPivot inline (Claude Desktop, VS Code, Cursor), click a row or drill into a pivot cell, then **Send to chat** to post it to the conversation with your comment.
14
26
 
15
27
  History holds every table the agent pulled (30 days, on your machine), and the Studio can reopen any of them without re-running the query. The Studio only answers this machine, on its own address, and accepts changes only from its own page.
16
28
 
@@ -149,7 +161,8 @@ Data tools take an optional `why`: one sentence the agent writes about each step
149
161
  - `TINYPIVOT_ALLOWED_TABLES` — Comma-separated table allowlist for `query_postgres`
150
162
  - `TINYPIVOT_TELEMETRY=0` or `DO_NOT_TRACK=1` — Disable anonymous usage telemetry
151
163
  - `TINYPIVOT_NO_COMPANION=1` — Disable the localhost Studio server
152
- - `TINYPIVOT_PORT` — Localhost port for the Studio (default `47317`; another free port is used when it is taken, unless this is set)
164
+ - `TINYPIVOT_PORT` — Localhost port for the Studio (default `47317`; when it is taken, the Studio uses a free port and the tool replies link to it)
165
+ - `TINYPIVOT_CLAUDE_CHANNEL` — `1` or `0` overrides whether TinyPivot offers Claude Code a channel. By default it does when Claude Code was started with this server in `--channels` or `--dangerously-load-development-channels`.
153
166
  - `TINYPIVOT_OPEN_STUDIO` — Set to `0` so the first TinyPivot step in a terminal agent does not open the Studio in your browser
154
167
  - `TINYPIVOT_REPRINT_CARDS` — Set to `0` so the model does not reprint each chart card in a terminal. Saves about 400 output tokens per question; the card stays visible in the Studio, the `tui` pane and pi.
155
168
  - `TINYPIVOT_HISTORY` — Set to `0` to stop saving pulls to history. `TINYPIVOT_HISTORY_DAYS` sets how long they are kept (default 30).