@smallwebco/tinypivot-mcp 0.6.0 → 0.7.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.
- package/.claude-plugin/plugin.json +30 -3
- package/.mcp.json +5 -2
- package/LICENSE.md +37 -57
- package/README.md +22 -3
- package/dist/app/index.html +128 -128
- package/dist/{chunk-2DF4I43A.js → chunk-EWLFVFBK.js} +1869 -263
- package/dist/cli.js +18 -2
- package/dist/index.d.ts +91 -38
- package/dist/index.js +1 -1
- package/package.json +6 -5
- package/server.json +2 -2
- package/skills/tinypivot/SKILL.md +13 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinypivot",
|
|
3
|
-
"
|
|
3
|
+
"displayName": "TinyPivot",
|
|
4
|
+
"version": "0.7.0",
|
|
4
5
|
"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
6
|
"author": {
|
|
6
7
|
"name": "Small Web, LLC",
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
},
|
|
9
10
|
"homepage": "https://tiny-pivot.com/mcp",
|
|
10
11
|
"repository": "https://github.com/Small-Web-Co/tinypivot",
|
|
11
|
-
"license": "
|
|
12
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
12
13
|
"keywords": [
|
|
13
14
|
"tinypivot",
|
|
14
15
|
"mcp",
|
|
@@ -24,5 +25,31 @@
|
|
|
24
25
|
"snowflake",
|
|
25
26
|
"postgres",
|
|
26
27
|
"excel"
|
|
27
|
-
]
|
|
28
|
+
],
|
|
29
|
+
"icon": "./assets/icon.png",
|
|
30
|
+
"documentationUrl": "https://tiny-pivot.com/mcp",
|
|
31
|
+
"supportUrl": "https://github.com/Small-Web-Co/tinypivot/issues",
|
|
32
|
+
"privacyPolicyUrl": "https://tiny-pivot.com/privacy",
|
|
33
|
+
"termsOfServiceUrl": "https://tiny-pivot.com/terms",
|
|
34
|
+
"userConfig": {
|
|
35
|
+
"license_key": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"title": "TinyPivot license key",
|
|
38
|
+
"description": "Optional Pro or Team key (TP-MCPP-… or TP-MCPT-…). Leave empty for the free tier.",
|
|
39
|
+
"sensitive": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"channels": [
|
|
43
|
+
{
|
|
44
|
+
"server": "tinypivot",
|
|
45
|
+
"displayName": "TinyPivot Studio"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"network": {
|
|
49
|
+
"hosts": [
|
|
50
|
+
"registry.npmjs.org",
|
|
51
|
+
"tiny-pivot.com",
|
|
52
|
+
"www.tiny-pivot.com"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
28
55
|
}
|
package/.mcp.json
CHANGED
package/LICENSE.md
CHANGED
|
@@ -1,78 +1,58 @@
|
|
|
1
1
|
# TinyPivot License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2024–2026 Small Web, LLC
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of the Free Tier features of this software and associated documentation files
|
|
9
|
-
(the "Software"), to deal in the Software without restriction, including without
|
|
10
|
-
limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
11
|
-
and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
### Free Tier Features Include:
|
|
15
|
-
- Basic data grid display with sorting
|
|
16
|
-
- Column filtering with unique values
|
|
17
|
-
- Keyboard navigation and cell selection
|
|
18
|
-
- Copy/paste support
|
|
19
|
-
- Row striping and hover states
|
|
20
|
-
- Responsive column widths
|
|
21
|
-
- Cell number formatting
|
|
22
|
-
|
|
23
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
5
|
+
TinyPivot is **dual-licensed (source-available)**: the Free Tier features are licensed under the **MIT License**, while Pro and Team features require a **Commercial License** from Small Web, LLC.
|
|
26
6
|
|
|
27
7
|
---
|
|
28
8
|
|
|
29
|
-
##
|
|
9
|
+
## 1. Free Tier (MIT License)
|
|
30
10
|
|
|
31
|
-
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of the **Free Tier features** of this software and associated documentation files (the "Free Tier Software"), to deal in the Free Tier Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Free Tier Software, and to permit persons to whom the Free Tier Software is furnished to do so, subject to the following conditions:
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
- **Pivot Table**: Full pivot table functionality with drag-and-drop configuration
|
|
35
|
-
- **Advanced Aggregations**: Sum, Count, Average, Min, Max, Count Distinct
|
|
36
|
-
- **Row/Column Totals**: Automatic total calculations
|
|
37
|
-
- **Percentage Mode**: View data as % of row, column, or grand total
|
|
38
|
-
- **Column/Row Grouping**: Multi-level grouping for pivot tables
|
|
39
|
-
- **Session Persistence**: Auto-save and restore pivot configuration
|
|
40
|
-
- **Priority Support**: Direct email support and issue prioritization
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Free Tier Software.
|
|
41
14
|
|
|
42
|
-
###
|
|
43
|
-
- **
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
15
|
+
### Free Tier Features Include:
|
|
16
|
+
- **TinyPivot UI (`@smallwebco/tinypivot-core`, `-vue`, `-react`):**
|
|
17
|
+
- Data grid display with sorting, column filtering, keyboard navigation, cell selection, copy/paste, column resizing, and formatting
|
|
18
|
+
- Free pivot tables (`sum` aggregation, totals, and calculated fields) with TinyPivot attribution visible
|
|
19
|
+
- **TinyPivot Studio / MCP (`@smallwebco/tinypivot-mcp`):**
|
|
20
|
+
- Datasets up to **2,500 rows** (explicitly flagged if a source file exceeds 2,500 rows)
|
|
21
|
+
- Core charts (`bar`, `stackedBar`, `line`, `area`, `pie`, `donut`), basic `sum` pivot tables, data grid, local read-only DuckDB SQL over files, Studio trace & local pull history, terminal cards, and the `Code` theme, with TinyPivot attribution visible
|
|
49
22
|
|
|
50
|
-
|
|
23
|
+
THE FREE TIER SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
51
24
|
|
|
52
|
-
|
|
53
|
-
import { DataGrid, setLicenseKey } from 'tinypivot'
|
|
25
|
+
---
|
|
54
26
|
|
|
55
|
-
|
|
56
|
-
```
|
|
27
|
+
## 2. Pro & Team Features (Commercial License)
|
|
57
28
|
|
|
58
|
-
|
|
59
|
-
- License keys are validated locally (no network calls)
|
|
60
|
-
- Keys are tied to your npm username or organization
|
|
61
|
-
- Licenses are perpetual with 1 year of updates included
|
|
29
|
+
The source code for Pro and Team features is included in this repository for transparency, security inspection, and local auditing, **not** under the MIT License. Using any Pro or Team feature in development, production, or commercial workflows requires a valid paid license key issued by Small Web, LLC.
|
|
62
30
|
|
|
63
|
-
|
|
31
|
+
### Commercial Features Include:
|
|
32
|
+
- **TinyPivot Studio / MCP Pro & Team (`TP-MCPP-*` / `TP-MCPT-*`):**
|
|
33
|
+
- Unlimited dataset rows (beyond the 2,500-row Free Tier limit)
|
|
34
|
+
- All visual themes beyond `Code`
|
|
35
|
+
- Double-click Drill-Through
|
|
36
|
+
- Advanced aggregations (`countDistinct`, `median`, `stdDev`, `percentOfTotal`, etc.)
|
|
37
|
+
- Styled `.xlsx` Excel export
|
|
38
|
+
- AST-validated read-only PostgreSQL connector (`query_postgres`)
|
|
39
|
+
- Watermark / branding removal and multi-seat Team licensing
|
|
40
|
+
- **TinyPivot UI Pro / Unlimited / Team (`TP-PRO*`):**
|
|
41
|
+
- Pro charts, advanced aggregations, double-click Drill-Through, `.xlsx` export, AI Data Analyst, and watermark removal
|
|
64
42
|
|
|
65
|
-
|
|
43
|
+
### Purchasing & Verification
|
|
44
|
+
- Current plans and pricing are listed at https://tiny-pivot.com/pricing.
|
|
45
|
+
- License keys are cryptographically signed (ECDSA P-256) by Small Web, LLC and verified locally with no network call required.
|
|
66
46
|
|
|
67
|
-
|
|
68
|
-
watermark visible. Pro license removes this requirement.
|
|
47
|
+
---
|
|
69
48
|
|
|
70
|
-
|
|
71
|
-
component library or framework.
|
|
49
|
+
## 3. Commercial Terms & Restrictions
|
|
72
50
|
|
|
73
|
-
|
|
51
|
+
1. **No License Bypass:** You may not modify, patch, circumvent, disable, or remove license key verification, row-limit enforcement, or feature gating to access Pro or Team features without a valid commercial license.
|
|
52
|
+
2. **No Removal of Attribution on Free Tier:** Free Tier users must keep TinyPivot attribution/branding intact. A valid Pro or Team license removes this requirement.
|
|
53
|
+
3. **No Redistribution of Pro Features:** You may not redistribute, repackage, or offer TinyPivot's Pro or Team features as part of another component library, SDK, MCP server, or hosted service without prior written consent from Small Web, LLC.
|
|
54
|
+
4. **No Sub-licensing or Unauthorized Sharing:** Commercial license keys are non-transferable and may not be shared beyond the licensed number of applications or seats.
|
|
74
55
|
|
|
75
56
|
---
|
|
76
57
|
|
|
77
|
-
For
|
|
78
|
-
|
|
58
|
+
For licensing inquiries or enterprise terms, contact: **license@tiny-pivot.com**
|
package/README.md
CHANGED
|
@@ -17,7 +17,8 @@ How a message reaches your agent depends on the harness. The Studio shows which
|
|
|
17
17
|
| Agent | How Studio messages arrive |
|
|
18
18
|
|---|---|
|
|
19
19
|
| pi | Live: TinyPivot's pi extension starts a turn, and the answer comes back to the Studio's trace. `init` installs the extension, and TinyPivot keeps it up to date (restart pi after an update). Its cards are drawn in full colour, each series in its own. |
|
|
20
|
-
|
|
|
20
|
+
| OpenCode | Live: TinyPivot's OpenCode plugin (`~/.config/opencode/plugins/tinypivot.js`) sends the message as a prompt to the session that last used TinyPivot, and the answer comes back to the Studio's trace. `init` installs the plugin, and TinyPivot keeps it up to date (restart OpenCode after an update). Tested with OpenCode 1.19; OpenCode 2's new plugin API is not supported yet. |
|
|
21
|
+
| Claude Code | Live when started with `claude --dangerously-load-development-channels server:tinypivot`, or `plugin:tinypivot@tinypivot` when installed as a plugin (Claude Code channels, a research preview). The agent answers with `studio_reply`. Otherwise, with its next TinyPivot reply. Once TinyPivot is on Anthropic's channel allowlist, `claude --channels plugin:tinypivot@<marketplace>` will work without the development flag. |
|
|
21
22
|
| 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. |
|
|
22
23
|
|
|
23
24
|
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.
|
|
@@ -46,7 +47,7 @@ Options:
|
|
|
46
47
|
|
|
47
48
|
This package ships as a self-contained Claude plugin bundle containing:
|
|
48
49
|
|
|
49
|
-
- `.claude-plugin/plugin.json` — plugin manifest
|
|
50
|
+
- `.claude-plugin/plugin.json` — plugin manifest, which also declares the TinyPivot Studio channel
|
|
50
51
|
- `.mcp.json` — registers `mcpServers.tinypivot` (`npx -y @smallwebco/tinypivot-mcp@latest`)
|
|
51
52
|
- `skills/tinypivot/SKILL.md` — teaches Claude when to invoke TinyPivot automatically, how to render in 1 tool call, when to use `load_data` vs `load_file`, and to echo TinyPivot terminal cards verbatim
|
|
52
53
|
|
|
@@ -79,6 +80,18 @@ Or copy the bundled `.mcp.json` server block directly into Claude Desktop's `cla
|
|
|
79
80
|
>
|
|
80
81
|
> `Always use the tinypivot MCP server (load_data or load_file with chartConfig/pivotConfig in one call) instead of built-in visualization widgets, HTML/SVG/React chart artifacts, or large Markdown tables whenever I ask for charts, YoY/MoM comparisons, pivot tables, or tabular data analysis.`
|
|
81
82
|
|
|
83
|
+
### Option 3: Plugins for Other Agents
|
|
84
|
+
|
|
85
|
+
The same folder is also a plugin for other agents' plugin systems. Each one starts the same `npx -y @smallwebco/tinypivot-mcp@latest` server:
|
|
86
|
+
|
|
87
|
+
| Agent | Install | Files |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| Gemini CLI | `gemini extensions install https://github.com/Small-Web-Co/tinypivot` | `gemini-extension.json` (repo root) |
|
|
90
|
+
| Antigravity | `agy plugin install ./packages/mcp` from a clone of this repository | `plugin.json`, `mcp_config.json` |
|
|
91
|
+
| Cursor | Cursor marketplace (once listed), or a team marketplace that imports this repository | `.cursor-plugin/plugin.json`, `mcp.json`, `.cursor-plugin/marketplace.json` (repo root) |
|
|
92
|
+
| Codex | `codex plugin marketplace add Small-Web-Co/tinypivot` | `.codex-plugin/plugin.json`, `.agents/plugins/marketplace.json` (repo root) |
|
|
93
|
+
| OpenCode | `npx @smallwebco/tinypivot-mcp@latest init --targets=opencode` | registers the server and installs the Studio plugin |
|
|
94
|
+
|
|
82
95
|
## Terminal Cards, Stdin Piping & Live Ghostty TUI
|
|
83
96
|
|
|
84
97
|
In terminal-first harnesses (**Claude Code, Ghostty, OpenCode, pi, Codex CLI**), TinyPivot delivers three complementary ways to inspect your data without leaving your terminal:
|
|
@@ -144,7 +157,7 @@ Unlock Pro or Team at [tiny-pivot.com/pricing](https://tiny-pivot.com/pricing).
|
|
|
144
157
|
| `query` | Runs one read-only DuckDB `SELECT` over local CSV, Parquet or JSON files and over loaded datasets (tables named by dataset id), then charts or pivots the result. Rows never enter the model's context. DuckDB (about 20 MB) downloads once, on first use, into `~/.cache/tinypivot`. |
|
|
145
158
|
| `load_data` | Loads flat JSON rows already in memory (<500 rows) from any other MCP tool, API, or small SQL query without writing a temp CSV; renders chart + pivot in 1 call. |
|
|
146
159
|
| `configure_pivot` | Computes a deterministic pivot table via `@smallwebco/tinypivot-core` (zero LLM math errors). |
|
|
147
|
-
| `configure_chart` | Configures and opens the interactive Chart Builder (`bar`, `stackedBar`, `line`, `area`, `pie`, `donut`, etc
|
|
160
|
+
| `configure_chart` | Configures and opens the interactive Chart Builder (`bar`, `stackedBar`, `line`, `area`, `pie`, `donut`, maps (`choropleth`), `bullet`, `radialBar`, `radialArea`, `slope`, `treemap`, `sunburst`, etc.; loose names like `map` work too). |
|
|
148
161
|
| `query_postgres` | *(Optional Pro)* Runs AST-validated read-only `SELECT` queries directly against `DATABASE_URL` and opens results in TinyPivot. |
|
|
149
162
|
| `list_datasets` | Lists all loaded datasets, row counts, and inferred schemas. |
|
|
150
163
|
| `profile` | Describes each column of a loaded dataset: empty share, number and date ranges, commonest values. |
|
|
@@ -167,7 +180,13 @@ Data tools take an optional `why`: one sentence the agent writes about each step
|
|
|
167
180
|
|
|
168
181
|
## Privacy & Telemetry
|
|
169
182
|
|
|
183
|
+
Full policy: [tiny-pivot.com/privacy](https://tiny-pivot.com/privacy). Terms: [tiny-pivot.com/terms](https://tiny-pivot.com/terms).
|
|
184
|
+
|
|
170
185
|
TinyPivot MCP sends minimal, **zero-PII** anonymous usage pings (`event`, `tool`, `rowBucket`, `client`, `tier`, `truncated`, `version`, `os`, and a random local UUID) to help us improve harness compatibility and reliability.
|
|
171
186
|
|
|
172
187
|
- **Never collected:** row data, column names, SQL queries, file paths, hostnames, or user identities.
|
|
173
188
|
- **Opt out anytime:** set `TINYPIVOT_TELEMETRY=0` or `DO_NOT_TRACK=1` in your environment or MCP server `env` block.
|
|
189
|
+
|
|
190
|
+
## License
|
|
191
|
+
|
|
192
|
+
TinyPivot is **source-available (dual-licensed)**: Free Tier features are licensed under MIT, and Pro / Team features require a commercial license from Small Web, LLC. See [LICENSE.md](./LICENSE.md) for full terms.
|