@smallwebco/tinypivot-mcp 0.1.2 → 0.2.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/README.md +2 -2
- package/dist/app/index.html +66 -66
- package/dist/{chunk-LZGTF5CC.js → chunk-UNQEXGX2.js} +182 -65
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/server.json +4 -4
|
@@ -7400,32 +7400,58 @@ function tokensToUsd(tokens, ratePerMillion) {
|
|
|
7400
7400
|
|
|
7401
7401
|
// ../core/dist/chart/index.js
|
|
7402
7402
|
var CHART_THEME_PRESETS = {
|
|
7403
|
-
code: {
|
|
7403
|
+
"code": {
|
|
7404
7404
|
label: "Code",
|
|
7405
7405
|
description: "Crisp IDE cyan, emerald, violet, and amber accents",
|
|
7406
7406
|
colors: ["#38bdf8", "#34d399", "#a78bfa", "#fbbf24", "#fb7185", "#22d3ee", "#818cf8", "#f97316"]
|
|
7407
7407
|
},
|
|
7408
|
-
phosphor: {
|
|
7408
|
+
"phosphor": {
|
|
7409
7409
|
label: "Phosphor",
|
|
7410
7410
|
description: "Terminal emerald and teal monochrome-accent ramp",
|
|
7411
7411
|
colors: ["#22c55e", "#34d399", "#2dd4bf", "#a3e635", "#06b6d4", "#10b981", "#84cc16", "#4ade80"]
|
|
7412
7412
|
},
|
|
7413
|
-
nord: {
|
|
7413
|
+
"nord": {
|
|
7414
7414
|
label: "Nord",
|
|
7415
7415
|
description: "Calm frost, glacier, and aurora editorial palette",
|
|
7416
7416
|
colors: ["#88c0d0", "#81a1c1", "#a3be8c", "#ebcb8b", "#d08770", "#b48ead", "#5e81ac", "#bf616a"]
|
|
7417
7417
|
},
|
|
7418
|
-
thermal: {
|
|
7418
|
+
"thermal": {
|
|
7419
7419
|
label: "Thermal",
|
|
7420
7420
|
description: "High-contrast quantitative coral, rose, gold, and sky",
|
|
7421
7421
|
colors: ["#f97316", "#f43f5e", "#eab308", "#d946ef", "#38bdf8", "#10b981", "#ef4444", "#fb923c"]
|
|
7422
7422
|
},
|
|
7423
|
-
mono: {
|
|
7423
|
+
"mono": {
|
|
7424
7424
|
label: "Mono",
|
|
7425
7425
|
description: "Minimal print ink ramp with a single electric accent",
|
|
7426
7426
|
colors: ["#6366f1", "#94a3b8", "#64748b", "#cbd5e1", "#475569", "#a5b4fc", "#334155", "#e2e8f0"]
|
|
7427
|
+
},
|
|
7428
|
+
"paper": {
|
|
7429
|
+
label: "Paper",
|
|
7430
|
+
description: "Warm paper, black ink and one orange accent",
|
|
7431
|
+
colors: ["#e8502a", "#1c1c1c", "#8fae9a", "#c98a1a", "#5f7f9e", "#b35a6b", "#7d776c", "#d9c9a3"]
|
|
7432
|
+
},
|
|
7433
|
+
"greenbar": {
|
|
7434
|
+
label: "Greenbar",
|
|
7435
|
+
description: "Ledger-paper greens with ink and brass accents",
|
|
7436
|
+
colors: ["#0f7a4f", "#17201a", "#86c5a2", "#b58a1a", "#3f7f8f", "#a8371a", "#6c7a70", "#cfe6d2"]
|
|
7437
|
+
},
|
|
7438
|
+
"onebit": {
|
|
7439
|
+
label: "1-Bit",
|
|
7440
|
+
description: "One ink, told apart by pattern instead of colour",
|
|
7441
|
+
colors: ["#111111", "#111111", "#111111", "#111111", "#111111", "#111111", "#111111", "#111111"]
|
|
7442
|
+
},
|
|
7443
|
+
"crt-amber": {
|
|
7444
|
+
label: "Amber CRT",
|
|
7445
|
+
description: "Glowing amber phosphor on a dark screen",
|
|
7446
|
+
colors: ["#ffb000", "#ff7a1a", "#fff0c9", "#c89628", "#ff5a3c", "#ffd27a", "#b37a00", "#ffe2a6"]
|
|
7447
|
+
},
|
|
7448
|
+
"crt-green": {
|
|
7449
|
+
label: "Green CRT",
|
|
7450
|
+
description: "Glowing green phosphor on a dark screen",
|
|
7451
|
+
colors: ["#35d689", "#a3e635", "#2dd4bf", "#8ff0bd", "#e6e66a", "#10b981", "#5fe0d4", "#c8e66a"]
|
|
7427
7452
|
}
|
|
7428
7453
|
};
|
|
7454
|
+
var CHART_THEME_IDS = Object.keys(CHART_THEME_PRESETS);
|
|
7429
7455
|
var CHART_COLORS = CHART_THEME_PRESETS.code.colors;
|
|
7430
7456
|
function formatFieldLabel(field) {
|
|
7431
7457
|
return field.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word2) => word2.charAt(0).toUpperCase() + word2.slice(1).toLowerCase()).join(" ");
|
|
@@ -8076,6 +8102,142 @@ function computePivotResult(data, config, options = {}) {
|
|
|
8076
8102
|
};
|
|
8077
8103
|
}
|
|
8078
8104
|
|
|
8105
|
+
// ../core/dist/theme/index.js
|
|
8106
|
+
var UNIFIED_THEME_IDS = ["paper", "greenbar", "onebit", "crt-amber", "crt-green"];
|
|
8107
|
+
var UNIFIED_THEME_SET = new Set(UNIFIED_THEME_IDS);
|
|
8108
|
+
var RICH_STYLE = {
|
|
8109
|
+
fillMode: "gradient",
|
|
8110
|
+
patternStyles: [],
|
|
8111
|
+
barRadius: 6,
|
|
8112
|
+
barOpacity: 1,
|
|
8113
|
+
markStrokeWidth: 0,
|
|
8114
|
+
curve: "monotoneCubic",
|
|
8115
|
+
lineWidth: 2.75,
|
|
8116
|
+
lineDashes: [],
|
|
8117
|
+
areaOpacityFrom: 0.38,
|
|
8118
|
+
gridDash: 3,
|
|
8119
|
+
glow: null
|
|
8120
|
+
};
|
|
8121
|
+
var CRT_STYLE = {
|
|
8122
|
+
...RICH_STYLE,
|
|
8123
|
+
barRadius: 3,
|
|
8124
|
+
areaOpacityFrom: 0.5,
|
|
8125
|
+
gridDash: 2,
|
|
8126
|
+
glow: { blur: 10, opacity: 0.55, lineOnly: false }
|
|
8127
|
+
};
|
|
8128
|
+
var UNIFIED_STYLE = {
|
|
8129
|
+
"paper": RICH_STYLE,
|
|
8130
|
+
"greenbar": { ...RICH_STYLE, gridDash: 2 },
|
|
8131
|
+
"onebit": {
|
|
8132
|
+
fillMode: "pattern",
|
|
8133
|
+
// The first series stays solid ink; later series cycle through these.
|
|
8134
|
+
patternStyles: ["squares", "horizontalLines", "circles", "slantedLines", "verticalLines"],
|
|
8135
|
+
barRadius: 0,
|
|
8136
|
+
barOpacity: 1,
|
|
8137
|
+
markStrokeWidth: 1.5,
|
|
8138
|
+
curve: "stepline",
|
|
8139
|
+
lineWidth: 2.5,
|
|
8140
|
+
lineDashes: [0, 6, 2, 10, 4],
|
|
8141
|
+
areaOpacityFrom: 1,
|
|
8142
|
+
gridDash: 1,
|
|
8143
|
+
glow: null
|
|
8144
|
+
},
|
|
8145
|
+
"crt-amber": CRT_STYLE,
|
|
8146
|
+
"crt-green": CRT_STYLE
|
|
8147
|
+
};
|
|
8148
|
+
var TERMINAL_PALETTES = {
|
|
8149
|
+
"code": {
|
|
8150
|
+
label: "Code",
|
|
8151
|
+
accent: [56, 189, 248],
|
|
8152
|
+
accent2: [52, 211, 153],
|
|
8153
|
+
series: [[56, 189, 248], [52, 211, 153], [129, 140, 248], [245, 158, 11]],
|
|
8154
|
+
muted: [148, 163, 184],
|
|
8155
|
+
border: [71, 85, 105],
|
|
8156
|
+
text: [226, 232, 240]
|
|
8157
|
+
},
|
|
8158
|
+
"phosphor": {
|
|
8159
|
+
label: "Phosphor",
|
|
8160
|
+
accent: [34, 197, 94],
|
|
8161
|
+
accent2: [52, 211, 153],
|
|
8162
|
+
series: [[34, 197, 94], [16, 185, 129], [163, 230, 53], [45, 212, 191]],
|
|
8163
|
+
muted: [134, 239, 172],
|
|
8164
|
+
border: [34, 94, 58],
|
|
8165
|
+
text: [220, 252, 231]
|
|
8166
|
+
},
|
|
8167
|
+
"nord": {
|
|
8168
|
+
label: "Nord",
|
|
8169
|
+
accent: [136, 192, 208],
|
|
8170
|
+
accent2: [163, 190, 140],
|
|
8171
|
+
series: [[136, 192, 208], [163, 190, 140], [129, 161, 193], [235, 203, 139]],
|
|
8172
|
+
muted: [147, 161, 177],
|
|
8173
|
+
border: [76, 86, 106],
|
|
8174
|
+
text: [236, 239, 244]
|
|
8175
|
+
},
|
|
8176
|
+
"thermal": {
|
|
8177
|
+
label: "Thermal",
|
|
8178
|
+
accent: [249, 115, 22],
|
|
8179
|
+
accent2: [244, 63, 94],
|
|
8180
|
+
series: [[249, 115, 22], [244, 63, 94], [250, 204, 21], [168, 85, 247]],
|
|
8181
|
+
muted: [253, 186, 116],
|
|
8182
|
+
border: [124, 45, 18],
|
|
8183
|
+
text: [255, 247, 237]
|
|
8184
|
+
},
|
|
8185
|
+
"mono": {
|
|
8186
|
+
label: "Mono",
|
|
8187
|
+
accent: [129, 140, 248],
|
|
8188
|
+
accent2: [148, 163, 184],
|
|
8189
|
+
series: [[226, 232, 240], [148, 163, 184], [129, 140, 248], [100, 116, 139]],
|
|
8190
|
+
muted: [148, 163, 184],
|
|
8191
|
+
border: [71, 85, 105],
|
|
8192
|
+
text: [241, 245, 249]
|
|
8193
|
+
},
|
|
8194
|
+
"paper": {
|
|
8195
|
+
label: "Paper",
|
|
8196
|
+
accent: [255, 122, 77],
|
|
8197
|
+
accent2: [157, 184, 168],
|
|
8198
|
+
series: [[255, 122, 77], [236, 231, 220], [157, 184, 168], [201, 194, 179]],
|
|
8199
|
+
muted: [154, 149, 138],
|
|
8200
|
+
border: [74, 70, 63],
|
|
8201
|
+
text: [236, 231, 220]
|
|
8202
|
+
},
|
|
8203
|
+
"greenbar": {
|
|
8204
|
+
label: "Greenbar",
|
|
8205
|
+
accent: [53, 214, 137],
|
|
8206
|
+
accent2: [207, 233, 216],
|
|
8207
|
+
series: [[53, 214, 137], [207, 233, 216], [31, 143, 92], [134, 197, 162]],
|
|
8208
|
+
muted: [108, 150, 124],
|
|
8209
|
+
border: [31, 58, 43],
|
|
8210
|
+
text: [207, 233, 216]
|
|
8211
|
+
},
|
|
8212
|
+
"onebit": {
|
|
8213
|
+
label: "1-Bit",
|
|
8214
|
+
accent: [236, 231, 220],
|
|
8215
|
+
accent2: [236, 231, 220],
|
|
8216
|
+
series: [[236, 231, 220], [236, 231, 220], [236, 231, 220], [236, 231, 220]],
|
|
8217
|
+
muted: [154, 149, 138],
|
|
8218
|
+
border: [236, 231, 220],
|
|
8219
|
+
text: [236, 231, 220]
|
|
8220
|
+
},
|
|
8221
|
+
"crt-amber": {
|
|
8222
|
+
label: "Amber CRT",
|
|
8223
|
+
accent: [255, 176, 0],
|
|
8224
|
+
accent2: [255, 122, 26],
|
|
8225
|
+
series: [[255, 176, 0], [255, 122, 26], [255, 240, 201], [200, 150, 40]],
|
|
8226
|
+
muted: [168, 119, 26],
|
|
8227
|
+
border: [122, 86, 11],
|
|
8228
|
+
text: [255, 196, 87]
|
|
8229
|
+
},
|
|
8230
|
+
"crt-green": {
|
|
8231
|
+
label: "Green CRT",
|
|
8232
|
+
accent: [53, 214, 137],
|
|
8233
|
+
accent2: [163, 230, 53],
|
|
8234
|
+
series: [[53, 214, 137], [163, 230, 53], [45, 212, 191], [16, 185, 129]],
|
|
8235
|
+
muted: [79, 154, 112],
|
|
8236
|
+
border: [47, 106, 73],
|
|
8237
|
+
text: [183, 245, 207]
|
|
8238
|
+
}
|
|
8239
|
+
};
|
|
8240
|
+
|
|
8079
8241
|
// src/summary.ts
|
|
8080
8242
|
var SUB_BLOCKS = ["", "\u258F", "\u258E", "\u258D", "\u258C", "\u258B", "\u258A", "\u2589", "\u2588"];
|
|
8081
8243
|
var SERIES_GLYPHS = ["\u2588", "\u2593", "\u2592", "\u2591"];
|
|
@@ -8446,7 +8608,7 @@ function formatDatasetSummary(dataset, companionUrl, options = {}) {
|
|
|
8446
8608
|
if (dataset.truncatedForFreeTier) {
|
|
8447
8609
|
parts.push(
|
|
8448
8610
|
"",
|
|
8449
|
-
`> **Notice (Free tier row limit):** Showing the first **${dataset.rows.length.toLocaleString()} of ${dataset.sourceTotalRows.toLocaleString()} rows**. Charts, pivots, and totals reflect this ${dataset.rows.length.toLocaleString()}-row subset only. Set \`TINYPIVOT_LICENSE_KEY\` for full unlimited rows: https://tiny-pivot.com/
|
|
8611
|
+
`> **Notice (Free tier row limit):** Showing the first **${dataset.rows.length.toLocaleString()} of ${dataset.sourceTotalRows.toLocaleString()} rows**. Charts, pivots, and totals reflect this ${dataset.rows.length.toLocaleString()}-row subset only. Set \`TINYPIVOT_LICENSE_KEY\` for full unlimited rows: https://tiny-pivot.com/pricing`
|
|
8450
8612
|
);
|
|
8451
8613
|
}
|
|
8452
8614
|
if (chartBlock) {
|
|
@@ -8587,54 +8749,8 @@ function formatPivotSummary(dataset, config, companionUrl, options = {}) {
|
|
|
8587
8749
|
import fs from "fs/promises";
|
|
8588
8750
|
import os from "os";
|
|
8589
8751
|
import path from "path";
|
|
8590
|
-
var PALETTES =
|
|
8591
|
-
|
|
8592
|
-
label: "Code",
|
|
8593
|
-
accent: [56, 189, 248],
|
|
8594
|
-
accent2: [52, 211, 153],
|
|
8595
|
-
series: [[56, 189, 248], [52, 211, 153], [129, 140, 248], [245, 158, 11]],
|
|
8596
|
-
muted: [148, 163, 184],
|
|
8597
|
-
border: [71, 85, 105],
|
|
8598
|
-
text: [226, 232, 240]
|
|
8599
|
-
},
|
|
8600
|
-
phosphor: {
|
|
8601
|
-
label: "Phosphor",
|
|
8602
|
-
accent: [34, 197, 94],
|
|
8603
|
-
accent2: [52, 211, 153],
|
|
8604
|
-
series: [[34, 197, 94], [16, 185, 129], [163, 230, 53], [45, 212, 191]],
|
|
8605
|
-
muted: [134, 239, 172],
|
|
8606
|
-
border: [34, 94, 58],
|
|
8607
|
-
text: [220, 252, 231]
|
|
8608
|
-
},
|
|
8609
|
-
nord: {
|
|
8610
|
-
label: "Nord",
|
|
8611
|
-
accent: [136, 192, 208],
|
|
8612
|
-
accent2: [163, 190, 140],
|
|
8613
|
-
series: [[136, 192, 208], [163, 190, 140], [129, 161, 193], [235, 203, 139]],
|
|
8614
|
-
muted: [147, 161, 177],
|
|
8615
|
-
border: [76, 86, 106],
|
|
8616
|
-
text: [236, 239, 244]
|
|
8617
|
-
},
|
|
8618
|
-
thermal: {
|
|
8619
|
-
label: "Thermal",
|
|
8620
|
-
accent: [249, 115, 22],
|
|
8621
|
-
accent2: [244, 63, 94],
|
|
8622
|
-
series: [[249, 115, 22], [244, 63, 94], [250, 204, 21], [168, 85, 247]],
|
|
8623
|
-
muted: [253, 186, 116],
|
|
8624
|
-
border: [124, 45, 18],
|
|
8625
|
-
text: [255, 247, 237]
|
|
8626
|
-
},
|
|
8627
|
-
mono: {
|
|
8628
|
-
label: "Mono",
|
|
8629
|
-
accent: [129, 140, 248],
|
|
8630
|
-
accent2: [148, 163, 184],
|
|
8631
|
-
series: [[226, 232, 240], [148, 163, 184], [129, 140, 248], [100, 116, 139]],
|
|
8632
|
-
muted: [148, 163, 184],
|
|
8633
|
-
border: [71, 85, 105],
|
|
8634
|
-
text: [241, 245, 249]
|
|
8635
|
-
}
|
|
8636
|
-
};
|
|
8637
|
-
var THEME_ORDER = ["code", "phosphor", "nord", "thermal", "mono"];
|
|
8752
|
+
var PALETTES = TERMINAL_PALETTES;
|
|
8753
|
+
var THEME_ORDER = CHART_THEME_IDS;
|
|
8638
8754
|
var CHART_CYCLE = ["bar", "stackedBar", "line", "area"];
|
|
8639
8755
|
var SUB_BLOCKS2 = ["", "\u258F", "\u258E", "\u258D", "\u258C", "\u258B", "\u258A", "\u2589", "\u2588"];
|
|
8640
8756
|
var SPARK_CHARS2 = ["\u2581", "\u2582", "\u2583", "\u2584", "\u2585", "\u2586", "\u2587", "\u2588"];
|
|
@@ -9036,7 +9152,7 @@ async function runTuiCommand(args) {
|
|
|
9036
9152
|
const navLine = `${navLeft}${" ".repeat(navGap)}${saved}`;
|
|
9037
9153
|
const lines = [topBorder, frameTuiLine(navLine, innerWidth, pal), divider];
|
|
9038
9154
|
if (payload?.truncatedForFreeTier && payload.sourceTotalRows) {
|
|
9039
|
-
const warn = fgBold([251, 191, 36], truncateVisual(`\u26A0 Free tier limit: showing ${payload.totalRows.toLocaleString()} of ${payload.sourceTotalRows.toLocaleString()} rows \u2014 tiny-pivot.com/
|
|
9155
|
+
const warn = fgBold([251, 191, 36], truncateVisual(`\u26A0 Free tier limit: showing ${payload.totalRows.toLocaleString()} of ${payload.sourceTotalRows.toLocaleString()} rows \u2014 tiny-pivot.com/pricing`, innerWidth));
|
|
9040
9156
|
lines.push(frameTuiLine(warn, innerWidth, pal), divider);
|
|
9041
9157
|
}
|
|
9042
9158
|
let contentLines;
|
|
@@ -9725,7 +9841,7 @@ TinyPivot MCP Installer (${opts.local ? `local: ${cliPath}` : "npx @smallwebco/t
|
|
|
9725
9841
|
console.log(" 1. Restart your AI client(s) so the tinypivot MCP server loads.");
|
|
9726
9842
|
console.log(' 2. Try asking: "Open TinyPivot" or "Chart revenue by region from sales.csv".');
|
|
9727
9843
|
console.log(" 3. Free tier includes core charts, basic pivot, and up to 2,500 rows.");
|
|
9728
|
-
console.log(" Unlock unlimited rows, drill-through, Excel export, Postgres, &
|
|
9844
|
+
console.log(" Unlock unlimited rows, drill-through, Excel export, Postgres, & 10 themes at https://tiny-pivot.com/pricing");
|
|
9729
9845
|
}
|
|
9730
9846
|
console.log("");
|
|
9731
9847
|
}
|
|
@@ -10063,7 +10179,7 @@ import fsSync from "fs";
|
|
|
10063
10179
|
import fs4 from "fs/promises";
|
|
10064
10180
|
import os3 from "os";
|
|
10065
10181
|
import path4 from "path";
|
|
10066
|
-
var VALID_VISUAL_THEMES =
|
|
10182
|
+
var VALID_VISUAL_THEMES = new Set(CHART_THEME_IDS);
|
|
10067
10183
|
function parseVisualTheme(raw) {
|
|
10068
10184
|
const lower = raw?.trim().toLowerCase();
|
|
10069
10185
|
return lower && VALID_VISUAL_THEMES.has(lower) ? lower : "code";
|
|
@@ -10561,7 +10677,7 @@ import fsSync2 from "fs";
|
|
|
10561
10677
|
import os4 from "os";
|
|
10562
10678
|
import path5 from "path";
|
|
10563
10679
|
var DEFAULT_TELEMETRY_URL = "https://tiny-pivot.com/api/telemetry";
|
|
10564
|
-
var PACKAGE_VERSION = "0.
|
|
10680
|
+
var PACKAGE_VERSION = "0.2.0";
|
|
10565
10681
|
function isTelemetryEnabled() {
|
|
10566
10682
|
if (process.env.TINYPIVOT_TELEMETRY === "0" || process.env.TINYPIVOT_TELEMETRY === "false")
|
|
10567
10683
|
return false;
|
|
@@ -10670,7 +10786,8 @@ var CHART_TYPE_VALUES = [
|
|
|
10670
10786
|
];
|
|
10671
10787
|
var CHART_AGG_VALUES = ["sum", "avg", "count", "min", "max"];
|
|
10672
10788
|
var VIEW_MODE_VALUES = ["grid", "pivot", "chart"];
|
|
10673
|
-
var VISUAL_THEME_VALUES =
|
|
10789
|
+
var VISUAL_THEME_VALUES = CHART_THEME_IDS;
|
|
10790
|
+
var VISUAL_THEME_LIST = CHART_THEME_IDS.join(", ");
|
|
10674
10791
|
var pivotValueSchema = z.object({
|
|
10675
10792
|
field: z.string().describe("Numeric or countable column name to aggregate"),
|
|
10676
10793
|
aggregation: z.enum(AGGREGATION_VALUES).default("sum")
|
|
@@ -10807,7 +10924,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
10807
10924
|
const rawLicenseKey = resolveLicenseKey(options.licenseKey);
|
|
10808
10925
|
const licenseKey = isMcpLicenseKey(rawLicenseKey) ? rawLicenseKey : void 0;
|
|
10809
10926
|
if (rawLicenseKey && !licenseKey && rawLicenseKey.startsWith("TP-PRO")) {
|
|
10810
|
-
console.error("[tinypivot-mcp] Notice: UI Library keys (TP-PRO*) apply to @smallwebco/tinypivot-react/-vue. TinyPivot MCP Pro requires an MCP license key (TP-MCPP* / TP-MCPT*) from https://tiny-pivot.com/
|
|
10927
|
+
console.error("[tinypivot-mcp] Notice: UI Library keys (TP-PRO*) apply to @smallwebco/tinypivot-react/-vue. TinyPivot MCP Pro requires an MCP license key (TP-MCPP* / TP-MCPT*) from https://tiny-pivot.com/pricing");
|
|
10811
10928
|
}
|
|
10812
10929
|
const demoToken = options.demoToken ?? process.env.TINYPIVOT_DEMO_TOKEN;
|
|
10813
10930
|
const isPro2 = Boolean(licenseKey || demoToken);
|
|
@@ -10826,7 +10943,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
10826
10943
|
const server = new McpServer(
|
|
10827
10944
|
{
|
|
10828
10945
|
name: "tinypivot",
|
|
10829
|
-
version: "0.
|
|
10946
|
+
version: "0.2.0"
|
|
10830
10947
|
},
|
|
10831
10948
|
{
|
|
10832
10949
|
capabilities: {
|
|
@@ -11141,7 +11258,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11141
11258
|
aggregation: z.enum(CHART_AGG_VALUES).default("sum"),
|
|
11142
11259
|
seriesField: z.string().optional(),
|
|
11143
11260
|
title: z.string().optional(),
|
|
11144
|
-
chartTheme: z.enum(VISUAL_THEME_VALUES).optional().describe(
|
|
11261
|
+
chartTheme: z.enum(VISUAL_THEME_VALUES).optional().describe(`Optional visual theme (${VISUAL_THEME_LIST})`),
|
|
11145
11262
|
model: z.string().optional().describe("Active LLM model name for dollarized token savings")
|
|
11146
11263
|
},
|
|
11147
11264
|
_meta: INLINE_UI_META
|
|
@@ -11166,7 +11283,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11166
11283
|
const summaryParts = [];
|
|
11167
11284
|
if (ds.truncatedForFreeTier) {
|
|
11168
11285
|
summaryParts.push(
|
|
11169
|
-
`> **WARNING \u2014 FREE TIER ROW LIMIT**: Showing the first **${ds.rows.length.toLocaleString()} of ${ds.sourceTotalRows.toLocaleString()}** rows. Chart values reflect this ${ds.rows.length.toLocaleString()}-row subset only, not the full dataset. Unlock unlimited rows with TinyPivot Pro: https://tiny-pivot.com/
|
|
11286
|
+
`> **WARNING \u2014 FREE TIER ROW LIMIT**: Showing the first **${ds.rows.length.toLocaleString()} of ${ds.sourceTotalRows.toLocaleString()}** rows. Chart values reflect this ${ds.rows.length.toLocaleString()}-row subset only, not the full dataset. Unlock unlimited rows with TinyPivot Pro: https://tiny-pivot.com/pricing`,
|
|
11170
11287
|
""
|
|
11171
11288
|
);
|
|
11172
11289
|
}
|
|
@@ -11222,7 +11339,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11222
11339
|
isError: true,
|
|
11223
11340
|
content: [{
|
|
11224
11341
|
type: "text",
|
|
11225
|
-
text: "Read-only PostgreSQL querying (`query_postgres`) requires a TinyPivot Pro license (TINYPIVOT_LICENSE_KEY). Free tier includes local CSV/TSV/JSON files and inline data up to 2,500 rows. Upgrade at https://tiny-pivot.com/
|
|
11342
|
+
text: "Read-only PostgreSQL querying (`query_postgres`) requires a TinyPivot Pro license (TINYPIVOT_LICENSE_KEY). Free tier includes local CSV/TSV/JSON files and inline data up to 2,500 rows. Upgrade at https://tiny-pivot.com/pricing"
|
|
11226
11343
|
}]
|
|
11227
11344
|
};
|
|
11228
11345
|
}
|
|
@@ -11420,7 +11537,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11420
11537
|
async ({ theme }) => {
|
|
11421
11538
|
if (!isPro2 && theme !== "code") {
|
|
11422
11539
|
return {
|
|
11423
|
-
content: [{ type: "text", text: "Additional chart themes require TinyPivot Pro (https://tiny-pivot.com/
|
|
11540
|
+
content: [{ type: "text", text: "Additional chart themes require TinyPivot Pro (https://tiny-pivot.com/pricing)." }],
|
|
11424
11541
|
structuredContent: { chartTheme: "code", proRequired: true }
|
|
11425
11542
|
};
|
|
11426
11543
|
}
|
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.
|
|
5
|
+
"version": "0.2.0",
|
|
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",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"typescript": "~5.6.2",
|
|
80
80
|
"vite": "^6.4.6",
|
|
81
81
|
"vite-plugin-singlefile": "^2.2.0",
|
|
82
|
-
"@smallwebco/tinypivot-core": "1.
|
|
83
|
-
"@smallwebco/tinypivot-server": "1.
|
|
84
|
-
"@smallwebco/tinypivot-react": "1.
|
|
82
|
+
"@smallwebco/tinypivot-core": "1.4.1",
|
|
83
|
+
"@smallwebco/tinypivot-server": "1.4.1",
|
|
84
|
+
"@smallwebco/tinypivot-react": "1.4.1"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "pnpm run build:server && pnpm run build:app",
|
package/server.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
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.
|
|
7
|
-
"websiteUrl": "https://tiny-pivot.com
|
|
6
|
+
"version": "0.2.0",
|
|
7
|
+
"websiteUrl": "https://tiny-pivot.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/Small-Web-Co/tinypivot",
|
|
10
10
|
"source": "github",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
{
|
|
15
15
|
"registryType": "npm",
|
|
16
16
|
"identifier": "@smallwebco/tinypivot-mcp",
|
|
17
|
-
"version": "0.
|
|
17
|
+
"version": "0.2.0",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
|
21
21
|
"environmentVariables": [
|
|
22
22
|
{
|
|
23
23
|
"name": "TINYPIVOT_LICENSE_KEY",
|
|
24
|
-
"description": "Optional TinyPivot MCP Pro/Team license key (TP-MCPP-* or TP-MCPT-*) unlocking unlimited rows,
|
|
24
|
+
"description": "Optional TinyPivot MCP Pro/Team license key (TP-MCPP-* or TP-MCPT-*) unlocking unlimited rows, 10 visual themes, drill-through, Excel export, and direct query_postgres. Free tier works out of the box up to 2,500 rows.",
|
|
25
25
|
"isRequired": false,
|
|
26
26
|
"isSecret": true
|
|
27
27
|
},
|