@smallwebco/tinypivot-mcp 0.0.0-stage → 0.1.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.
@@ -0,0 +1,19 @@
1
+ import {
2
+ SHA224,
3
+ SHA256,
4
+ sha224,
5
+ sha256
6
+ } from "./chunk-NVYPTGIN.js";
7
+ import "./chunk-2ESYSVXG.js";
8
+
9
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
10
+ var SHA2562 = SHA256;
11
+ var sha2562 = sha256;
12
+ var SHA2242 = SHA224;
13
+ var sha2242 = sha224;
14
+ export {
15
+ SHA2242 as SHA224,
16
+ SHA2562 as SHA256,
17
+ sha2242 as sha224,
18
+ sha2562 as sha256
19
+ };
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
1
  {
2
2
  "name": "@smallwebco/tinypivot-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "type": "module",
4
+ "version": "0.1.0",
5
+ "description": "TinyPivot MCP Server & Interactive MCP App — turn CSV, JSON, and PostgreSQL queries into interactive pivot tables, charts, drill-through, and Excel exports directly inside AI chats.",
6
+ "author": "Small Web, LLC",
7
+ "license": "MIT",
8
+ "homepage": "https://tiny-pivot.com",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/Small-Web-Co/tinypivot.git",
12
+ "directory": "packages/mcp"
13
+ },
14
+ "keywords": [
15
+ "mcp",
16
+ "mcp-app",
17
+ "model-context-protocol",
18
+ "tinypivot",
19
+ "pivot-table",
20
+ "data-grid",
21
+ "analytics",
22
+ "charts",
23
+ "csv",
24
+ "postgres",
25
+ "excel",
26
+ "ai-workflows"
27
+ ],
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js"
32
+ }
33
+ },
34
+ "main": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "bin": {
37
+ "tinypivot-mcp": "./dist/cli.js"
38
+ },
39
+ "files": [
40
+ "README.md",
41
+ "dist",
42
+ "rules"
43
+ ],
44
+ "peerDependencies": {
45
+ "pg": "^8.0.0"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "pg": {
49
+ "optional": true
50
+ }
51
+ },
52
+ "dependencies": {
53
+ "@modelcontextprotocol/sdk": "^1.26.0",
54
+ "zod": "^4.0.0"
55
+ },
56
+ "devDependencies": {
57
+ "@modelcontextprotocol/ext-apps": "^1.0.1",
58
+ "@types/node": "^20.19.41",
59
+ "@types/pg": "^8.11.6",
60
+ "@types/react": "^18.3.12",
61
+ "@types/react-dom": "^18.3.1",
62
+ "@vitejs/plugin-react": "^4.3.4",
63
+ "react": "^18.3.1",
64
+ "react-dom": "^18.3.1",
65
+ "tsup": "^8.0.1",
66
+ "typescript": "~5.6.2",
67
+ "vite": "^6.4.6",
68
+ "vite-plugin-singlefile": "^2.2.0",
69
+ "@smallwebco/tinypivot-core": "1.3.5",
70
+ "@smallwebco/tinypivot-react": "1.3.5",
71
+ "@smallwebco/tinypivot-server": "1.3.5"
72
+ },
73
+ "scripts": {
74
+ "build": "pnpm run build:server && pnpm run build:app",
75
+ "build:app": "vite build --config vite.app.config.ts",
76
+ "build:server": "tsup",
77
+ "dev:app": "vite --config vite.app.config.ts",
78
+ "type-check": "tsc --noEmit"
79
+ }
6
80
  }
@@ -0,0 +1,8 @@
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.