@smallwebco/tinypivot-mcp 0.5.0 → 0.6.1
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 +22 -3
- package/.mcp.json +1 -1
- package/LICENSE.md +37 -57
- package/README.md +22 -5
- package/dist/app/index.html +89 -89
- package/dist/{chunk-E6DYPT62.js → chunk-4AG4LXY4.js} +889 -572
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +33 -55
- package/dist/index.js +1 -1
- package/package.json +6 -5
- package/server.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinypivot",
|
|
3
|
-
"
|
|
3
|
+
"displayName": "TinyPivot",
|
|
4
|
+
"version": "0.6.1",
|
|
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,23 @@
|
|
|
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
|
+
"channels": [
|
|
35
|
+
{
|
|
36
|
+
"server": "tinypivot",
|
|
37
|
+
"displayName": "TinyPivot Studio"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"network": {
|
|
41
|
+
"hosts": [
|
|
42
|
+
"registry.npmjs.org",
|
|
43
|
+
"tiny-pivot.com",
|
|
44
|
+
"www.tiny-pivot.com"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
28
47
|
}
|
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
|
@@ -11,15 +11,14 @@ In a terminal agent, the first TinyPivot step opens the Studio at `http://127.0.
|
|
|
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
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
14
|
|
|
16
15
|
How a message reaches your agent depends on the harness. The Studio shows which one applies:
|
|
17
16
|
|
|
18
17
|
| Agent | How Studio messages arrive |
|
|
19
18
|
|---|---|
|
|
20
|
-
| pi | Live: TinyPivot's pi extension starts a turn, and the answer comes back to the Studio.
|
|
21
|
-
|
|
|
22
|
-
|
|
|
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
|
+
| 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. |
|
|
23
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. |
|
|
24
23
|
|
|
25
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.
|
|
@@ -48,7 +47,7 @@ Options:
|
|
|
48
47
|
|
|
49
48
|
This package ships as a self-contained Claude plugin bundle containing:
|
|
50
49
|
|
|
51
|
-
- `.claude-plugin/plugin.json` — plugin manifest
|
|
50
|
+
- `.claude-plugin/plugin.json` — plugin manifest, which also declares the TinyPivot Studio channel
|
|
52
51
|
- `.mcp.json` — registers `mcpServers.tinypivot` (`npx -y @smallwebco/tinypivot-mcp@latest`)
|
|
53
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
|
|
54
53
|
|
|
@@ -81,6 +80,18 @@ Or copy the bundled `.mcp.json` server block directly into Claude Desktop's `cla
|
|
|
81
80
|
>
|
|
82
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.`
|
|
83
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
|
+
|
|
84
95
|
## Terminal Cards, Stdin Piping & Live Ghostty TUI
|
|
85
96
|
|
|
86
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:
|
|
@@ -169,7 +180,13 @@ Data tools take an optional `why`: one sentence the agent writes about each step
|
|
|
169
180
|
|
|
170
181
|
## Privacy & Telemetry
|
|
171
182
|
|
|
183
|
+
Full policy: [tiny-pivot.com/privacy](https://tiny-pivot.com/privacy). Terms: [tiny-pivot.com/terms](https://tiny-pivot.com/terms).
|
|
184
|
+
|
|
172
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.
|
|
173
186
|
|
|
174
187
|
- **Never collected:** row data, column names, SQL queries, file paths, hostnames, or user identities.
|
|
175
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.
|