@smallwebco/tinypivot-mcp 0.2.1 → 0.2.4
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 +1 -1
- package/.mcp.json +1 -1
- package/README.md +10 -10
- package/dist/{chunk-Y4V4GJY3.js → chunk-7FMLMEMI.js} +8 -7
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/rules/AGENTS.md +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinypivot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Interactive Data IDE 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/.mcp.json
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Interactive **TinyPivot MCP Server, MCP App (`ui://tinypivot/app.html`) & Native
|
|
|
9
9
|
Auto-detect and wire all installed AI harnesses on your machine (Claude Code, Claude Desktop, Cursor, Antigravity, OpenCode, Codex CLI, and pi):
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @smallwebco/tinypivot-mcp init
|
|
12
|
+
npx @smallwebco/tinypivot-mcp@latest init
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Options:
|
|
@@ -25,7 +25,7 @@ Options:
|
|
|
25
25
|
This package ships as a self-contained Claude plugin bundle containing:
|
|
26
26
|
|
|
27
27
|
- `.claude-plugin/plugin.json` — plugin manifest
|
|
28
|
-
- `.mcp.json` — registers `mcpServers.tinypivot` (`npx -y @smallwebco/tinypivot-mcp`)
|
|
28
|
+
- `.mcp.json` — registers `mcpServers.tinypivot` (`npx -y @smallwebco/tinypivot-mcp@latest`)
|
|
29
29
|
- `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
|
|
30
30
|
|
|
31
31
|
**Claude Code / Claude Desktop (directly from GitHub marketplace):**
|
|
@@ -48,12 +48,12 @@ claude plugin install ./packages/mcp
|
|
|
48
48
|
**Claude Desktop & Claude Code (via 1-command installer):**
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
npx @smallwebco/tinypivot-mcp init --targets=claude,claude-desktop
|
|
51
|
+
npx @smallwebco/tinypivot-mcp@latest init --targets=claude,claude-desktop
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Or copy the bundled `.mcp.json` server block directly into Claude Desktop's `claude_desktop_config.json`.
|
|
55
55
|
|
|
56
|
-
> **Make TinyPivot your default chart renderer:** The TinyPivot MCP server advertises authoritative `instructions`, and both `npx @smallwebco/tinypivot-mcp init` (via `~/.claude/CLAUDE.md`) and the native Claude Plugin (`skills/tinypivot/SKILL.md`) automatically route chart, YoY/MoM comparison, and pivot requests to TinyPivot in **Claude Code** and **Claude Code Desktop**. For **Claude Desktop** chat (which may otherwise default to its built-in visualization widget), add this one-line preference under **Settings → General → Personal Preferences**:
|
|
56
|
+
> **Make TinyPivot your default chart renderer:** The TinyPivot MCP server advertises authoritative `instructions`, and both `npx @smallwebco/tinypivot-mcp@latest init` (via `~/.claude/CLAUDE.md`) and the native Claude Plugin (`skills/tinypivot/SKILL.md`) automatically route chart, YoY/MoM comparison, and pivot requests to TinyPivot in **Claude Code** and **Claude Code Desktop**. For **Claude Desktop** chat (which may otherwise default to its built-in visualization widget), add this one-line preference under **Settings → General → Personal Preferences**:
|
|
57
57
|
>
|
|
58
58
|
> `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.`
|
|
59
59
|
|
|
@@ -65,9 +65,9 @@ In terminal-first harnesses (**Claude Code, Ghostty, OpenCode, pi, Codex CLI**),
|
|
|
65
65
|
2. **Live Split-Pane TUI (`Ghostty` / tmux / any terminal):** Open a side pane and attach directly to your running agent's TinyPivot session via live SSE:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
npx @smallwebco/tinypivot-mcp tui
|
|
68
|
+
npx @smallwebco/tinypivot-mcp@latest tui
|
|
69
69
|
# or pass an explicit Companion URL:
|
|
70
|
-
npx @smallwebco/tinypivot-mcp tui http://127.0.0.1:<port>
|
|
70
|
+
npx @smallwebco/tinypivot-mcp@latest tui http://127.0.0.1:<port>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
Keyboard controls inside the live TUI: `[1] Chart` · `[2] Pivot` · `[3] Data` · `[t] Theme` · `[q] Quit`. Every agent query updates the split pane automatically.
|
|
@@ -75,9 +75,9 @@ In terminal-first harnesses (**Claude Code, Ghostty, OpenCode, pi, Codex CLI**),
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# Pipe any SQL CLI or data command straight into TinyPivot
|
|
78
|
-
duckdb -csv -c "SELECT region, month, SUM(revenue) AS revenue FROM 'sales.parquet' GROUP BY 1, 2" | npx @smallwebco/tinypivot-mcp --open
|
|
79
|
-
psql "$DATABASE_URL" --csv -c "SELECT * FROM monthly_revenue" | npx @smallwebco/tinypivot-mcp --open
|
|
80
|
-
cat metrics.csv | npx @smallwebco/tinypivot-mcp --open
|
|
78
|
+
duckdb -csv -c "SELECT region, month, SUM(revenue) AS revenue FROM 'sales.parquet' GROUP BY 1, 2" | npx @smallwebco/tinypivot-mcp@latest --open
|
|
79
|
+
psql "$DATABASE_URL" --csv -c "SELECT * FROM monthly_revenue" | npx @smallwebco/tinypivot-mcp@latest --open
|
|
80
|
+
cat metrics.csv | npx @smallwebco/tinypivot-mcp@latest --open
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
TinyPivot also runs a live SSE-synced localhost Companion Data IDE (`http://127.0.0.1:<port>`) for interactive filtering, drill-through, and exports.
|
|
@@ -86,7 +86,7 @@ In terminal-first harnesses (**Claude Code, Ghostty, OpenCode, pi, Codex CLI**),
|
|
|
86
86
|
|
|
87
87
|
TinyPivot is **database-agnostic**. Use whichever data workflow matches your stack:
|
|
88
88
|
|
|
89
|
-
- **BigQuery, Snowflake, MySQL, DuckDB, Databricks, SQLite, ClickHouse, or Postgres (CLI / file handoff — 0 raw rows in LLM context):** Export query output to `.csv`, `.tsv`, `.json`, or `.jsonl` via `bq`, `snowsql`, `mysql`, `duckdb`, `databricks`, or `psql` and pass the path to `load_file` (or pipe stdout straight into `npx @smallwebco/tinypivot-mcp --open`).
|
|
89
|
+
- **BigQuery, Snowflake, MySQL, DuckDB, Databricks, SQLite, ClickHouse, or Postgres (CLI / file handoff — 0 raw rows in LLM context):** Export query output to `.csv`, `.tsv`, `.json`, or `.jsonl` via `bq`, `snowsql`, `mysql`, `duckdb`, `databricks`, or `psql` and pass the path to `load_file` (or pipe stdout straight into `npx @smallwebco/tinypivot-mcp@latest --open`).
|
|
90
90
|
- **Any MCP Server or API (Stripe, GitHub, BigQuery MCP, Snowflake MCP, REST APIs):** Pipe structured JSON rows (<500 rows already in memory) directly into `load_data` with `chartConfig` / `pivotConfig` in a single call — no temp CSV required.
|
|
91
91
|
- **Optional Direct PostgreSQL Connector (Pro):** If you use PostgreSQL and want zero-temp-file SQL execution inside the MCP server itself, set `DATABASE_URL` (and optionally `TINYPIVOT_ALLOWED_TABLES`) to enable the AST-validated, read-only `query_postgres` tool.
|
|
92
92
|
|
|
@@ -10360,6 +10360,7 @@ import fs4 from "fs/promises";
|
|
|
10360
10360
|
import os3 from "os";
|
|
10361
10361
|
import path4 from "path";
|
|
10362
10362
|
import { fileURLToPath } from "url";
|
|
10363
|
+
var MCP_NPX_SPEC = "@smallwebco/tinypivot-mcp@latest";
|
|
10363
10364
|
var RULE_START = "<!-- tinypivot:start -->";
|
|
10364
10365
|
var RULE_END = "<!-- tinypivot:end -->";
|
|
10365
10366
|
var RULE_TEST_RE = /<!-- tinypivot(?:-mcp)?:start -->[\s\S]*?<!-- tinypivot(?:-mcp)?:end -->/;
|
|
@@ -10393,7 +10394,7 @@ function printHelp() {
|
|
|
10393
10394
|
TinyPivot MCP \u2014 Multi-Harness Installer
|
|
10394
10395
|
|
|
10395
10396
|
Usage:
|
|
10396
|
-
npx @smallwebco/tinypivot-mcp init [options]
|
|
10397
|
+
npx @smallwebco/tinypivot-mcp@latest init [options]
|
|
10397
10398
|
|
|
10398
10399
|
Options:
|
|
10399
10400
|
--local Wire this local build (node <path>/dist/cli.js) instead of npx
|
|
@@ -10483,7 +10484,7 @@ function getClaudeDesktopConfigPath() {
|
|
|
10483
10484
|
}
|
|
10484
10485
|
function buildStdioServerEntry(opts, cliPath) {
|
|
10485
10486
|
const command = opts.local ? process.execPath : "npx";
|
|
10486
|
-
const args = opts.local ? [cliPath] : ["-y",
|
|
10487
|
+
const args = opts.local ? [cliPath] : ["-y", MCP_NPX_SPEC];
|
|
10487
10488
|
const entry = { command, args };
|
|
10488
10489
|
const env = {};
|
|
10489
10490
|
if (opts.licenseKey)
|
|
@@ -10550,7 +10551,7 @@ async function upsertOpenCodeJson(opts, cliPath) {
|
|
|
10550
10551
|
try {
|
|
10551
10552
|
const json = await readJsonSafe(configPath);
|
|
10552
10553
|
const mcp = json.mcp && typeof json.mcp === "object" && !Array.isArray(json.mcp) ? { ...json.mcp } : {};
|
|
10553
|
-
const command = opts.local ? [process.execPath, cliPath] : ["npx", "-y",
|
|
10554
|
+
const command = opts.local ? [process.execPath, cliPath] : ["npx", "-y", MCP_NPX_SPEC];
|
|
10554
10555
|
const nextEntry = {
|
|
10555
10556
|
type: "local",
|
|
10556
10557
|
command,
|
|
@@ -10603,7 +10604,7 @@ async function upsertCodexToml(opts, cliPath) {
|
|
|
10603
10604
|
try {
|
|
10604
10605
|
const existing = await exists(configPath) ? await fs4.readFile(configPath, "utf8") : "";
|
|
10605
10606
|
const command = opts.local ? process.execPath : "npx";
|
|
10606
|
-
const args = opts.local ? [cliPath] : ["-y",
|
|
10607
|
+
const args = opts.local ? [cliPath] : ["-y", MCP_NPX_SPEC];
|
|
10607
10608
|
const argsToml = args.map((a) => JSON.stringify(a)).join(", ");
|
|
10608
10609
|
const codexEnvEntries = [];
|
|
10609
10610
|
if (opts.licenseKey)
|
|
@@ -10752,7 +10753,7 @@ async function runInitCommand(args) {
|
|
|
10752
10753
|
const home = os3.homedir();
|
|
10753
10754
|
const cliPath = path4.resolve(path4.dirname(fileURLToPath(import.meta.url)), "cli.js");
|
|
10754
10755
|
console.log(`
|
|
10755
|
-
TinyPivot MCP Installer (${opts.local ? `local: ${cliPath}` :
|
|
10756
|
+
TinyPivot MCP Installer (${opts.local ? `local: ${cliPath}` : `npx ${MCP_NPX_SPEC}`})${opts.dryRun ? " [DRY RUN]" : ""}
|
|
10756
10757
|
`);
|
|
10757
10758
|
const results = [
|
|
10758
10759
|
await upsertStandardMcpJson(
|
|
@@ -11169,7 +11170,7 @@ import fsSync2 from "fs";
|
|
|
11169
11170
|
import os4 from "os";
|
|
11170
11171
|
import path5 from "path";
|
|
11171
11172
|
var DEFAULT_TELEMETRY_URL = "https://tiny-pivot.com/api/telemetry";
|
|
11172
|
-
var PACKAGE_VERSION = "0.2.
|
|
11173
|
+
var PACKAGE_VERSION = "0.2.4";
|
|
11173
11174
|
function isTelemetryEnabled() {
|
|
11174
11175
|
if (process.env.TINYPIVOT_TELEMETRY === "0" || process.env.TINYPIVOT_TELEMETRY === "false")
|
|
11175
11176
|
return false;
|
|
@@ -11437,7 +11438,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11437
11438
|
const server = new McpServer(
|
|
11438
11439
|
{
|
|
11439
11440
|
name: "tinypivot",
|
|
11440
|
-
version: "0.2.
|
|
11441
|
+
version: "0.2.4"
|
|
11441
11442
|
},
|
|
11442
11443
|
{
|
|
11443
11444
|
capabilities: {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@smallwebco/tinypivot-mcp",
|
|
3
3
|
"mcpName": "io.github.Small-Web-Co/tinypivot",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.4",
|
|
6
6
|
"description": "TinyPivot MCP Server, Interactive MCP App & Claude Plugin — turn CSV, JSON, API/MCP outputs, and queries from any database into interactive charts, pivot tables, terminal cards, live TUI, drill-through, and Excel exports inside AI agents.",
|
|
7
7
|
"author": "Small Web, LLC",
|
|
8
8
|
"license": "MIT",
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.Small-Web-Co/tinypivot",
|
|
4
4
|
"title": "TinyPivot — Interactive Data IDE for AI Agents",
|
|
5
5
|
"description": "Interactive charts, pivot tables, terminal cards, live TUI, and Excel export inside AI agents.",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.4",
|
|
7
7
|
"websiteUrl": "https://tiny-pivot.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/Small-Web-Co/tinypivot",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"registryType": "npm",
|
|
16
16
|
"identifier": "@smallwebco/tinypivot-mcp",
|
|
17
|
-
"version": "0.2.
|
|
17
|
+
"version": "0.2.4",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
package/rules/AGENTS.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# TinyPivot — Automatic In-Agent Analytics Rule
|
|
2
|
-
|
|
3
|
-
When the `tinypivot` MCP server is available and the user asks to inspect, summarize, compare, pivot, or chart tabular data (CSV/TSV/JSON/JSONL files, SQL results, or API/MCP responses with more than a few rows):
|
|
4
|
-
|
|
5
|
-
1. **Use TinyPivot automatically** — do not wait for the user to ask for TinyPivot by name.
|
|
6
|
-
2. **Prefer zero-token pass-through (`load_file`)** when pulling data from local files, CLIs, or SQL queries: write the rows directly to a file and call `load_file` with both `pivotConfig` and `chartConfig` in **one single tool call** so only one clean interactive visual card renders and raw rows stay out of LLM context.
|
|
7
|
-
3. **Use `load_data`** only when piping small structured results already returned by another MCP tool.
|
|
8
|
-
4. **Never dump giant Markdown tables** of raw rows when TinyPivot is rendering the interactive Chart, Pivot, and Data Grid; give a concise 2–3 bullet executive takeaway instead.
|