graphein-mcp 0.10.0 → 0.11.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphein-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Model Context Protocol server for Graphein — wraps generate → validate → repair → render → critique into one tool call, and serves Graphein's schema + agent guide as resources so a model that never saw the API can still build correct charts.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"prepack": "tsup"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@graphein/node": "^0.
|
|
64
|
+
"@graphein/node": "^0.11.0",
|
|
65
65
|
"@modelcontextprotocol/sdk": "^1.20.0",
|
|
66
|
-
"graphein": "^0.
|
|
66
|
+
"graphein": "^0.11.0",
|
|
67
67
|
"zod": "^3.23.0"
|
|
68
68
|
}
|
|
69
69
|
}
|
package/resources/agent-guide.md
CHANGED
|
@@ -119,9 +119,11 @@ reference: [spec-reference → Transforms](./spec-reference.md#transforms).
|
|
|
119
119
|
|
|
120
120
|
Rules of thumb: prefer `bar` over `pie` beyond ~6 slices; use `stack` for
|
|
121
121
|
part‑to‑whole and grouped bars for direct comparison; reserve `pie` for a small
|
|
122
|
-
number of shares. For
|
|
123
|
-
`
|
|
124
|
-
|
|
122
|
+
number of shares. For long category names or ranked lists, set `orientation:'horizontal'`
|
|
123
|
+
on a `bar` to lay categories down the left and grow bars rightward (works with
|
|
124
|
+
`stack`/`group`, `insights`, and annotations). For a donut with several small slices,
|
|
125
|
+
set `labels` to a `PieLabels` object — `placement:'auto'` keeps tight labels readable
|
|
126
|
+
by moving them outside onto leader lines.
|
|
125
127
|
|
|
126
128
|
## Recipes
|
|
127
129
|
|
|
@@ -798,7 +798,8 @@
|
|
|
798
798
|
"enum": [
|
|
799
799
|
"vertical",
|
|
800
800
|
"horizontal"
|
|
801
|
-
]
|
|
801
|
+
],
|
|
802
|
+
"description": "Bar direction. `'vertical'` (default) draws columns growing up from the x-axis; `'horizontal'` draws bars growing rightward from the y-axis, with the `x` categories listed down the left — ideal when category names are long. The `encoding` is unchanged either way (`x` = category, `y` = value)."
|
|
802
803
|
},
|
|
803
804
|
"stack": {
|
|
804
805
|
"type": "boolean",
|
|
@@ -481,13 +481,13 @@ Columns/bars with grouped or stacked series and rounded corners.
|
|
|
481
481
|
| Field | Type | Notes |
|
|
482
482
|
| --- | --- | --- |
|
|
483
483
|
| `encoding` | requires `x`, `y`; optional `series` | — |
|
|
484
|
-
| `orientation` | `'vertical' \| 'horizontal'` | Default `vertical`. |
|
|
484
|
+
| `orientation` | `'vertical' \| 'horizontal'` | Default `vertical`. `'horizontal'` lists categories down the left gutter and grows value bars rightward from a left baseline (value axis along the bottom) — ideal for long category names or ranked lists. Works with `stack`/`group`, `cornerRadius`, `insights`, and annotations. |
|
|
485
485
|
| `stack` | `boolean` | Stack series. |
|
|
486
486
|
| `group` | `boolean` | Side‑by‑side groups. Default when `series` is present and not stacked. |
|
|
487
487
|
| `cornerRadius` | `number` | Bar corner radius in px. |
|
|
488
488
|
| `facet` | `FacetConfig` | Split into a [trellis grid of small multiples](#faceting-small-multiples). |
|
|
489
489
|
|
|
490
|
-
→ [`examples/bar-grouped.json`](./examples/bar-grouped.json)
|
|
490
|
+
→ [`examples/bar-grouped.json`](./examples/bar-grouped.json) · [`examples/bar-horizontal.json`](./examples/bar-horizontal.json)
|
|
491
491
|
|
|
492
492
|
### scatter
|
|
493
493
|
|