@databrainhq/mcp-server 0.2.17 → 0.3.0-rc.1
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/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +13 -0
- package/.mcp.json +11 -0
- package/README.md +19 -0
- package/dist/apps/server.d.ts +323 -0
- package/dist/apps/server.js +9 -0
- package/dist/apps/server.js.map +1 -0
- package/dist/apps/stdio.d.ts +2 -0
- package/dist/apps/stdio.js +14 -0
- package/dist/apps/stdio.js.map +1 -0
- package/dist/chunk-7DS7OLWP.js +10398 -0
- package/dist/chunk-7DS7OLWP.js.map +1 -0
- package/dist/chunk-JCXUZ3QZ.js +102 -0
- package/dist/chunk-JCXUZ3QZ.js.map +1 -0
- package/dist/chunk-NDVW3ZSJ.js +310 -0
- package/dist/chunk-NDVW3ZSJ.js.map +1 -0
- package/dist/chunk-RF3HTNO7.js +75 -0
- package/dist/chunk-RF3HTNO7.js.map +1 -0
- package/dist/index.js +57 -9785
- package/dist/index.js.map +1 -1
- package/dist/main-7QNRH6X4.js +438 -0
- package/dist/main-7QNRH6X4.js.map +1 -0
- package/dist/test-only-EJ5O4WN5.js +37 -0
- package/dist/test-only-EJ5O4WN5.js.map +1 -0
- package/package.json +10 -3
- package/skills/author-dashboard/SKILL.md +30 -0
- package/skills/embed-dashboard/SKILL.md +23 -0
- package/skills/style-dashboard/SKILL.md +58 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: style-dashboard
|
|
3
|
+
description: Use when a user asks to format or style Databrain dashboard charts. Triggers on "use a log scale", "make this 100% stacked", "sort the bars", and "format revenue as currency".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Style Databrain dashboard charts
|
|
7
|
+
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
Work from the full current `chartOptions` object. If you cannot read or reconstruct the full object, do not replace it with a partial object.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
1. Find the target Metric or Widget and its full `chartOptions`.
|
|
15
|
+
2. Merge changes under `chartOptions.customSettings`. Preserve every sibling setting and every untouched appearance key.
|
|
16
|
+
3. Use only the requested controls:
|
|
17
|
+
- `chartScale`: set the physical value axis. Types are `linear`, `log`, `sqrt`, or `symlog`. A log axis also needs an explicit `logZeroPolicy`: `refuse`, `clamp`, or `drop`.
|
|
18
|
+
- `chartStack`: set `mode` to `none`, `zero`, `center`, or `normalize`. For `normalize`, set a percent `normalizedFormat`.
|
|
19
|
+
- `chartSort`: set `by` to `natural`, `declared`, `category`, `value`, or `stack-total`, plus `direction`. Use sort only on supported bar, row, and stacked chart families.
|
|
20
|
+
- `chartFieldFormats`: key formats by the real result column name. Currency requires an ISO 4217 code such as `USD`.
|
|
21
|
+
4. For a new Dashboard, put the merged `chartOptions` on each Tile before `create_dashboard`.
|
|
22
|
+
5. For an existing tenant Embed, call `update_widget` only when you have the full current `chartOptions` and the Widget `externalMetricId`. Send the full merged object in `set.chartOptions`.
|
|
23
|
+
6. Verify the saved values and return a demo link or rendered preview. A successful tool response alone does not prove the chart looks correct.
|
|
24
|
+
|
|
25
|
+
Example merged settings:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"customSettings": {
|
|
30
|
+
"chartScale": {
|
|
31
|
+
"vertical": {
|
|
32
|
+
"type": "log",
|
|
33
|
+
"logZeroPolicy": "refuse"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"chartStack": {
|
|
37
|
+
"mode": "normalize",
|
|
38
|
+
"normalizedFormat": {
|
|
39
|
+
"type": "percent",
|
|
40
|
+
"round": 0
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"chartSort": {
|
|
44
|
+
"by": "stack-total",
|
|
45
|
+
"direction": "desc"
|
|
46
|
+
},
|
|
47
|
+
"chartFieldFormats": {
|
|
48
|
+
"revenue": {
|
|
49
|
+
"type": "currency",
|
|
50
|
+
"currency": "USD",
|
|
51
|
+
"round": 0
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The current MCP surface can read an existing workspace Dashboard with `get_dashboard`, but it has no safe workspace Dashboard update tool. Report that limit. Do not create a duplicate Dashboard or overwrite unknown settings.
|