@smallwebco/tinypivot-mcp 0.2.2 → 0.2.5
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-DPIX36MK.js → chunk-25EEYMCA.js} +52 -43
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/server.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinypivot",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
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
|
|
|
@@ -8369,6 +8369,19 @@ function flattenRow(input) {
|
|
|
8369
8369
|
}
|
|
8370
8370
|
return out;
|
|
8371
8371
|
}
|
|
8372
|
+
var DISTINCT_COUNT_CAP = 1e3;
|
|
8373
|
+
function collectDistinct(rows, name) {
|
|
8374
|
+
const distinct = /* @__PURE__ */ new Set();
|
|
8375
|
+
for (const row of rows) {
|
|
8376
|
+
const val = row[name];
|
|
8377
|
+
if (val === null || val === void 0 || val === "")
|
|
8378
|
+
continue;
|
|
8379
|
+
distinct.add(String(val));
|
|
8380
|
+
if (distinct.size >= DISTINCT_COUNT_CAP)
|
|
8381
|
+
break;
|
|
8382
|
+
}
|
|
8383
|
+
return distinct;
|
|
8384
|
+
}
|
|
8372
8385
|
function inferColumns(rows) {
|
|
8373
8386
|
if (rows.length === 0)
|
|
8374
8387
|
return [];
|
|
@@ -8385,12 +8398,10 @@ function inferColumns(rows) {
|
|
|
8385
8398
|
let boolCount = 0;
|
|
8386
8399
|
let dateCount = 0;
|
|
8387
8400
|
let strCount = 0;
|
|
8388
|
-
const distinct = /* @__PURE__ */ new Set();
|
|
8389
8401
|
for (let i = 0; i < sampleLimit; i++) {
|
|
8390
8402
|
const val = rows[i][name];
|
|
8391
8403
|
if (val === null || val === void 0 || val === "")
|
|
8392
8404
|
continue;
|
|
8393
|
-
distinct.add(String(val));
|
|
8394
8405
|
if (typeof val === "number") {
|
|
8395
8406
|
numCount++;
|
|
8396
8407
|
} else if (typeof val === "boolean") {
|
|
@@ -8413,6 +8424,7 @@ function inferColumns(rows) {
|
|
|
8413
8424
|
else
|
|
8414
8425
|
type = "string";
|
|
8415
8426
|
}
|
|
8427
|
+
const distinct = collectDistinct(rows, name);
|
|
8416
8428
|
summaries.push({
|
|
8417
8429
|
name,
|
|
8418
8430
|
type,
|
|
@@ -9213,8 +9225,11 @@ function formatTerminalChart(dataset, chartConfig, options = {}) {
|
|
|
9213
9225
|
const footerRight = `${dataset.rows.length.toLocaleString()} rows \xB7 ${chartKind}`;
|
|
9214
9226
|
return wrapInCard(title, `Total ${formatCompactNumber(grandTotal)}`, body, footerLeft, footerRight, 66, { palette: pal, raw: options.raw });
|
|
9215
9227
|
}
|
|
9228
|
+
function formatDistinctCount(count) {
|
|
9229
|
+
return count >= DISTINCT_COUNT_CAP ? `${DISTINCT_COUNT_CAP.toLocaleString("en-US")}+` : String(count);
|
|
9230
|
+
}
|
|
9216
9231
|
function formatDatasetSummary(dataset, companionUrl, options = {}) {
|
|
9217
|
-
const cols = dataset.columns.map((c) => `- \`${c.name}\` (${c.type}, ${c.distinctCount} distinct; e.g. ${c.sampleValues.slice(0, 3).join(", ")})`).join("\n");
|
|
9232
|
+
const cols = dataset.columns.map((c) => `- \`${c.name}\` (${c.type}, ${formatDistinctCount(c.distinctCount)} distinct; e.g. ${c.sampleValues.slice(0, 3).join(", ")})`).join("\n");
|
|
9218
9233
|
const chartBlock = formatTerminalChart(dataset, dataset.chartConfig, {
|
|
9219
9234
|
...options,
|
|
9220
9235
|
companionUrl: options.companionUrl ?? companionUrl
|
|
@@ -10360,6 +10375,7 @@ import fs4 from "fs/promises";
|
|
|
10360
10375
|
import os3 from "os";
|
|
10361
10376
|
import path4 from "path";
|
|
10362
10377
|
import { fileURLToPath } from "url";
|
|
10378
|
+
var MCP_NPX_SPEC = "@smallwebco/tinypivot-mcp@latest";
|
|
10363
10379
|
var RULE_START = "<!-- tinypivot:start -->";
|
|
10364
10380
|
var RULE_END = "<!-- tinypivot:end -->";
|
|
10365
10381
|
var RULE_TEST_RE = /<!-- tinypivot(?:-mcp)?:start -->[\s\S]*?<!-- tinypivot(?:-mcp)?:end -->/;
|
|
@@ -10393,7 +10409,7 @@ function printHelp() {
|
|
|
10393
10409
|
TinyPivot MCP \u2014 Multi-Harness Installer
|
|
10394
10410
|
|
|
10395
10411
|
Usage:
|
|
10396
|
-
npx @smallwebco/tinypivot-mcp init [options]
|
|
10412
|
+
npx @smallwebco/tinypivot-mcp@latest init [options]
|
|
10397
10413
|
|
|
10398
10414
|
Options:
|
|
10399
10415
|
--local Wire this local build (node <path>/dist/cli.js) instead of npx
|
|
@@ -10483,7 +10499,7 @@ function getClaudeDesktopConfigPath() {
|
|
|
10483
10499
|
}
|
|
10484
10500
|
function buildStdioServerEntry(opts, cliPath) {
|
|
10485
10501
|
const command = opts.local ? process.execPath : "npx";
|
|
10486
|
-
const args = opts.local ? [cliPath] : ["-y",
|
|
10502
|
+
const args = opts.local ? [cliPath] : ["-y", MCP_NPX_SPEC];
|
|
10487
10503
|
const entry = { command, args };
|
|
10488
10504
|
const env = {};
|
|
10489
10505
|
if (opts.licenseKey)
|
|
@@ -10550,7 +10566,7 @@ async function upsertOpenCodeJson(opts, cliPath) {
|
|
|
10550
10566
|
try {
|
|
10551
10567
|
const json = await readJsonSafe(configPath);
|
|
10552
10568
|
const mcp = json.mcp && typeof json.mcp === "object" && !Array.isArray(json.mcp) ? { ...json.mcp } : {};
|
|
10553
|
-
const command = opts.local ? [process.execPath, cliPath] : ["npx", "-y",
|
|
10569
|
+
const command = opts.local ? [process.execPath, cliPath] : ["npx", "-y", MCP_NPX_SPEC];
|
|
10554
10570
|
const nextEntry = {
|
|
10555
10571
|
type: "local",
|
|
10556
10572
|
command,
|
|
@@ -10603,7 +10619,7 @@ async function upsertCodexToml(opts, cliPath) {
|
|
|
10603
10619
|
try {
|
|
10604
10620
|
const existing = await exists(configPath) ? await fs4.readFile(configPath, "utf8") : "";
|
|
10605
10621
|
const command = opts.local ? process.execPath : "npx";
|
|
10606
|
-
const args = opts.local ? [cliPath] : ["-y",
|
|
10622
|
+
const args = opts.local ? [cliPath] : ["-y", MCP_NPX_SPEC];
|
|
10607
10623
|
const argsToml = args.map((a) => JSON.stringify(a)).join(", ");
|
|
10608
10624
|
const codexEnvEntries = [];
|
|
10609
10625
|
if (opts.licenseKey)
|
|
@@ -10752,7 +10768,7 @@ async function runInitCommand(args) {
|
|
|
10752
10768
|
const home = os3.homedir();
|
|
10753
10769
|
const cliPath = path4.resolve(path4.dirname(fileURLToPath(import.meta.url)), "cli.js");
|
|
10754
10770
|
console.log(`
|
|
10755
|
-
TinyPivot MCP Installer (${opts.local ? `local: ${cliPath}` :
|
|
10771
|
+
TinyPivot MCP Installer (${opts.local ? `local: ${cliPath}` : `npx ${MCP_NPX_SPEC}`})${opts.dryRun ? " [DRY RUN]" : ""}
|
|
10756
10772
|
`);
|
|
10757
10773
|
const results = [
|
|
10758
10774
|
await upsertStandardMcpJson(
|
|
@@ -11169,7 +11185,7 @@ import fsSync2 from "fs";
|
|
|
11169
11185
|
import os4 from "os";
|
|
11170
11186
|
import path5 from "path";
|
|
11171
11187
|
var DEFAULT_TELEMETRY_URL = "https://tiny-pivot.com/api/telemetry";
|
|
11172
|
-
var PACKAGE_VERSION = "0.2.
|
|
11188
|
+
var PACKAGE_VERSION = "0.2.5";
|
|
11173
11189
|
function isTelemetryEnabled() {
|
|
11174
11190
|
if (process.env.TINYPIVOT_TELEMETRY === "0" || process.env.TINYPIVOT_TELEMETRY === "false")
|
|
11175
11191
|
return false;
|
|
@@ -11437,7 +11453,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11437
11453
|
const server = new McpServer(
|
|
11438
11454
|
{
|
|
11439
11455
|
name: "tinypivot",
|
|
11440
|
-
version: "0.2.
|
|
11456
|
+
version: "0.2.5"
|
|
11441
11457
|
},
|
|
11442
11458
|
{
|
|
11443
11459
|
capabilities: {
|
|
@@ -11447,19 +11463,30 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11447
11463
|
instructions: TINYPIVOT_MCP_INSTRUCTIONS
|
|
11448
11464
|
}
|
|
11449
11465
|
);
|
|
11466
|
+
const clientRendersWidget = () => clientSupportsMcpAppsUi(server.server.getClientCapabilities());
|
|
11450
11467
|
const resolveCompanionUrlForTool = async (forceCompanion = false) => {
|
|
11451
11468
|
if (activeCompanionUrl)
|
|
11452
11469
|
return activeCompanionUrl;
|
|
11453
11470
|
if (!options.ensureCompanion)
|
|
11454
11471
|
return void 0;
|
|
11455
|
-
if (!forceCompanion &&
|
|
11472
|
+
if (!forceCompanion && clientRendersWidget())
|
|
11456
11473
|
return void 0;
|
|
11457
11474
|
activeCompanionUrl = await options.ensureCompanion();
|
|
11458
11475
|
return activeCompanionUrl;
|
|
11459
11476
|
};
|
|
11477
|
+
const dataToolResult = (summaryText, payload) => {
|
|
11478
|
+
const content = [{ type: "text", text: summaryText }];
|
|
11479
|
+
return clientRendersWidget() ? { content, structuredContent: payload } : { content };
|
|
11480
|
+
};
|
|
11481
|
+
const widgetOnlyTools = [];
|
|
11482
|
+
const widgetOnly = (tool) => {
|
|
11483
|
+
widgetOnlyTools.push(tool);
|
|
11484
|
+
};
|
|
11460
11485
|
let detectedClientName;
|
|
11461
11486
|
const getClientName = () => detectedClientName ?? server.server.getClientVersion()?.name;
|
|
11462
11487
|
server.server.oninitialized = () => {
|
|
11488
|
+
if (!clientRendersWidget())
|
|
11489
|
+
widgetOnlyTools.forEach((tool) => tool.disable());
|
|
11463
11490
|
detectedClientName = server.server.getClientVersion()?.name;
|
|
11464
11491
|
recordTelemetry({
|
|
11465
11492
|
event: "server_start",
|
|
@@ -11556,10 +11583,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11556
11583
|
truncated: ds.truncatedForFreeTier
|
|
11557
11584
|
});
|
|
11558
11585
|
notifyCompanion();
|
|
11559
|
-
return
|
|
11560
|
-
content: [{ type: "text", text: summaryText }],
|
|
11561
|
-
structuredContent: payload
|
|
11562
|
-
};
|
|
11586
|
+
return dataToolResult(summaryText, payload);
|
|
11563
11587
|
}
|
|
11564
11588
|
);
|
|
11565
11589
|
server.registerTool(
|
|
@@ -11612,10 +11636,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11612
11636
|
truncated: ds.truncatedForFreeTier
|
|
11613
11637
|
});
|
|
11614
11638
|
notifyCompanion();
|
|
11615
|
-
return
|
|
11616
|
-
content: [{ type: "text", text: summaryText }],
|
|
11617
|
-
structuredContent: payload
|
|
11618
|
-
};
|
|
11639
|
+
return dataToolResult(summaryText, payload);
|
|
11619
11640
|
} catch (err) {
|
|
11620
11641
|
return {
|
|
11621
11642
|
isError: true,
|
|
@@ -11669,10 +11690,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11669
11690
|
truncated: ds.truncatedForFreeTier
|
|
11670
11691
|
});
|
|
11671
11692
|
notifyCompanion();
|
|
11672
|
-
return
|
|
11673
|
-
content: [{ type: "text", text: summaryText }],
|
|
11674
|
-
structuredContent: payload
|
|
11675
|
-
};
|
|
11693
|
+
return dataToolResult(summaryText, payload);
|
|
11676
11694
|
}
|
|
11677
11695
|
);
|
|
11678
11696
|
server.registerTool(
|
|
@@ -11733,10 +11751,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11733
11751
|
truncated: ds.truncatedForFreeTier
|
|
11734
11752
|
});
|
|
11735
11753
|
notifyCompanion();
|
|
11736
|
-
return
|
|
11737
|
-
content: [{ type: "text", text: summary }],
|
|
11738
|
-
structuredContent: payload
|
|
11739
|
-
};
|
|
11754
|
+
return dataToolResult(summary, payload);
|
|
11740
11755
|
}
|
|
11741
11756
|
);
|
|
11742
11757
|
server.registerTool(
|
|
@@ -11807,10 +11822,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11807
11822
|
truncated: ds.truncatedForFreeTier
|
|
11808
11823
|
});
|
|
11809
11824
|
notifyCompanion();
|
|
11810
|
-
return
|
|
11811
|
-
content: [{ type: "text", text: summaryText }],
|
|
11812
|
-
structuredContent: payload
|
|
11813
|
-
};
|
|
11825
|
+
return dataToolResult(summaryText, payload);
|
|
11814
11826
|
}
|
|
11815
11827
|
);
|
|
11816
11828
|
server.registerTool(
|
|
@@ -11872,10 +11884,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11872
11884
|
truncated: ds.truncatedForFreeTier
|
|
11873
11885
|
});
|
|
11874
11886
|
notifyCompanion();
|
|
11875
|
-
return
|
|
11876
|
-
content: [{ type: "text", text: summaryText }],
|
|
11877
|
-
structuredContent: payload
|
|
11878
|
-
};
|
|
11887
|
+
return dataToolResult(summaryText, payload);
|
|
11879
11888
|
} catch (err) {
|
|
11880
11889
|
return {
|
|
11881
11890
|
isError: true,
|
|
@@ -11917,7 +11926,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11917
11926
|
};
|
|
11918
11927
|
}
|
|
11919
11928
|
);
|
|
11920
|
-
server.registerTool(
|
|
11929
|
+
widgetOnly(server.registerTool(
|
|
11921
11930
|
"fetch_dataset_rows",
|
|
11922
11931
|
{
|
|
11923
11932
|
title: "Fetch Dataset Rows (App Internal)",
|
|
@@ -11975,8 +11984,8 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11975
11984
|
}
|
|
11976
11985
|
};
|
|
11977
11986
|
}
|
|
11978
|
-
);
|
|
11979
|
-
server.registerTool(
|
|
11987
|
+
));
|
|
11988
|
+
widgetOnly(server.registerTool(
|
|
11980
11989
|
"set_session_model",
|
|
11981
11990
|
{
|
|
11982
11991
|
title: "Set Active LLM Model (App Internal)",
|
|
@@ -11995,8 +12004,8 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
11995
12004
|
structuredContent: { session }
|
|
11996
12005
|
};
|
|
11997
12006
|
}
|
|
11998
|
-
);
|
|
11999
|
-
server.registerTool(
|
|
12007
|
+
));
|
|
12008
|
+
widgetOnly(server.registerTool(
|
|
12000
12009
|
"record_local_action",
|
|
12001
12010
|
{
|
|
12002
12011
|
title: "Record Local 0-Token Action (App Internal)",
|
|
@@ -12017,7 +12026,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
12017
12026
|
}
|
|
12018
12027
|
};
|
|
12019
12028
|
}
|
|
12020
|
-
);
|
|
12029
|
+
));
|
|
12021
12030
|
server.registerTool(
|
|
12022
12031
|
"set_visual_theme",
|
|
12023
12032
|
{
|
|
@@ -12045,7 +12054,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
12045
12054
|
};
|
|
12046
12055
|
}
|
|
12047
12056
|
);
|
|
12048
|
-
server.registerTool(
|
|
12057
|
+
widgetOnly(server.registerTool(
|
|
12049
12058
|
"get_datasets_state",
|
|
12050
12059
|
{
|
|
12051
12060
|
title: "Get Datasets State (App Internal)",
|
|
@@ -12060,7 +12069,7 @@ function createTinyPivotMcpServer(options = {}) {
|
|
|
12060
12069
|
datasets: store.listMetadata()
|
|
12061
12070
|
}
|
|
12062
12071
|
})
|
|
12063
|
-
);
|
|
12072
|
+
));
|
|
12064
12073
|
return { server, store };
|
|
12065
12074
|
}
|
|
12066
12075
|
|
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.5",
|
|
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.4.2",
|
|
82
83
|
"@smallwebco/tinypivot-react": "1.4.2",
|
|
83
|
-
"@smallwebco/tinypivot-server": "1.4.2"
|
|
84
|
-
"@smallwebco/tinypivot-core": "1.4.2"
|
|
84
|
+
"@smallwebco/tinypivot-server": "1.4.2"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "pnpm run build:server && pnpm run build:app",
|
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.5",
|
|
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.5",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|