@bicharts/chart-mcp 0.6.55 → 0.6.57

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bicharts/chart-mcp",
3
- "version": "0.6.55",
4
- "description": "MCP (Model Context Protocol) stdio server for BIC AI charts: profile a dataset locally, then generate chart code that has passed the BIC backend's render gates. Works with any MCP-capable client (Claude Code, Claude Desktop, Cursor, Copilot Studio). Requires a BIC trial or paid account.",
3
+ "version": "0.6.57",
4
+ "description": "MCP (Model Context Protocol) stdio server for BIC AI charts: profile a dataset locally, then generate chart code that has passed the BIC backend's render gates. Works with any MCP-capable client (Claude Code, Claude Desktop, Cursor, Copilot Studio). An account pays to author charts; the code it writes is yours and runs with no licence.",
5
5
  "keywords": [
6
6
  "mcp",
7
7
  "modelcontextprotocol",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "// dependencies": "NONE, deliberately. dist/ bundles every module the server uses, so a runtime dependency installs nothing it needs - it only makes npx fetch that package (and its tree) before the first start. Everything the bundle carries is a devDependency; scripts/verify-package.mjs fails the release if a dependency appears or a shipped file imports anything but Node's built-ins.",
45
45
  "devDependencies": {
46
- "@bicharts/chart-host": "^0.6.52",
47
- "@bicharts/shape-core": "^0.6.52",
46
+ "@bicharts/chart-host": "^0.6.56",
47
+ "@bicharts/shape-core": "^0.6.56",
48
48
  "@modelcontextprotocol/sdk": "^1.0.0",
49
49
  "@types/node": "^20.0.0",
50
50
  "@types/papaparse": "^5.3.14",
@@ -592,6 +592,12 @@ function CountryMap({ table, onPick }) { // table = the live query resu
592
592
  minimum.
593
593
  - Put `min-h-0` on every flex child between a card and its chart (`min-w-0` in a row). A flex item's default
594
594
  `min-height: auto` lets it grow past its card, and the card's `overflow-hidden` slices off the rest.
595
+ - A chart with controls drawn inside it (sliders, steppers, a reset) gets its card's full width. Put a side panel that
596
+ goes with it - saved scenarios, notes, a form - below the chart, not beside it: beside it, the chart's cell drops
597
+ under its minimum and the panel scrolls.
598
+ - When you stack a panel below a chart, don't keep a fixed card height that can't hold both: let the card grow (a
599
+ `min-h-*` in place of its `h-*`), or give the panel below `min-h-0 flex-1 overflow-auto` so it scrolls inside the card.
600
+ Give the chart's cell at least the chart's `minChartHeight` (`h-72` is 288px, under a 300 minimum).
595
601
 
596
602
  **6. Cross-filter across queries by KEY, not by row.** Charts fed by different queries don't share a
597
603
  row space, so one group can't span them. Put each query's charts in their own group, turn a click
@@ -769,7 +775,9 @@ render inside them.
769
775
  **9. Check every chart, then deploy.** Check every chart locally with this server's `check_chart` tool,
770
776
  at the size the panel will give it - by default it reads the chart's `minChartWidth` and `minChartHeight`
771
777
  off its `BicChartPanel`, so pass no size unless you mean another one. A `WARNING` line in its reply is a
772
- label likely cut off at that size: deal with it before you call the chart done.
778
+ label cut off at that size: deal with it before you call the chart done. The reply says whether more room fixes it.
779
+ Never edit the generated chart code by hand: if something's wrong with a generated chart, regenerate it
780
+ (`generate_chart` with a prompt describing the fix) or report it.
773
781
  You don't need to deploy to check a chart. Then `npx tsc -b` and the tests. Deploying (`npx rayfin up`), on Rayfin 1.36.1:
774
782
  - Signed in? `npx rayfin login status` (a subcommand, not a `--status` flag); `npx rayfin login` if not.
775
783
  - Name the workspace: `npx rayfin up -w "<workspace>"`. Left out, it deploys to My Workspace.
@@ -779,6 +787,8 @@ You don't need to deploy to check a chart. Then `npx tsc -b` and the tests. Depl
779
787
  - Deleted the app outside Rayfin? `rayfin/.deployments.json` still names the deleted item, so the next
780
788
  `rayfin up` fails with 404 Not Found. Move that file aside and deploy again.
781
789
 
790
+ What it costs: only the calls that author a chart (generate_chart, and the eligibility lists beyond a free hourly allowance) draw on the account. The chart code they write is the user's to keep and ship: it needs no licence, account, credits or connection to us to run, view or deploy, for any number of viewers.
791
+
782
792
  ## 4. Things that will otherwise cost you time
783
793
 
784
794
  - **Place names, not coordinates.** If your data has city/state/ZIP but no lat/lon, pass a