@bicharts/chart-mcp 0.3.0 → 0.3.2
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/dist/index.mjs +28 -28
- package/package.json +3 -3
- package/skills/bic-charts/SKILL.md +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"zod": "^3.23.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@bicharts/chart-host": "^0.4.
|
|
49
|
-
"@bicharts/shape-core": "^0.4.
|
|
48
|
+
"@bicharts/chart-host": "^0.4.1",
|
|
49
|
+
"@bicharts/shape-core": "^0.4.1",
|
|
50
50
|
"@types/node": "^20.0.0",
|
|
51
51
|
"@types/papaparse": "^5.3.14",
|
|
52
52
|
"esbuild": "^0.28.1",
|
|
@@ -74,7 +74,7 @@ const rows = payload.rows.map(r =>
|
|
|
74
74
|
|
|
75
75
|
```tsx
|
|
76
76
|
<BicChartGroup columns={columns} rows={rows} point={{ city: "City", state: "StateOrProvince" }}>
|
|
77
|
-
<BicChart id="map" code={mapCode} d3={d3} geoKind="
|
|
77
|
+
<BicChart id="map" code={mapCode} d3={d3} geoKind="north-america" respondsWith="highlight" />
|
|
78
78
|
<BicChart id="table" code={tableCode} d3={d3} />
|
|
79
79
|
</BicChartGroup>
|
|
80
80
|
```
|
|
@@ -112,6 +112,11 @@ Sizing is yours. Give each `<BicChart>` a sized container and pass `width`/`heig
|
|
|
112
112
|
`structuredContent.plugins` on the MCP result says the same thing.
|
|
113
113
|
- **Read `integration_contract`** in the MCP result if you need anything beyond this file —
|
|
114
114
|
it describes the exact payload and option shape for the chart you just generated.
|
|
115
|
+
- **Basemap geometry.** The React `<BicChart>` fetches the geometry for its `geoKind`
|
|
116
|
+
itself (chart-host ≥ 0.4.1) and re-renders when it lands. To skip the one-frame basemap
|
|
117
|
+
pop-in, `await loadGeo("north-america")` (from `@bicharts/chart-host`) before the first
|
|
118
|
+
mount. Outside React, `render()` is synchronous by contract, so that preload is
|
|
119
|
+
**required** — a cold cache draws marks over no land, with only a console warning.
|
|
115
120
|
|
|
116
121
|
## 5. Check it
|
|
117
122
|
|