@databrainhq/mcp-server 0.2.17 → 0.3.0-rc.10
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 +171 -7
- package/dist/apps/server.d.ts +323 -0
- package/dist/apps/server.js +11 -0
- package/dist/apps/server.js.map +1 -0
- package/dist/apps/stdio.d.ts +2 -0
- package/dist/apps/stdio.js +16 -0
- package/dist/apps/stdio.js.map +1 -0
- package/dist/chunk-5IGP6A6T.js +496 -0
- package/dist/chunk-5IGP6A6T.js.map +1 -0
- package/dist/chunk-CUPL7CAN.js +75 -0
- package/dist/chunk-CUPL7CAN.js.map +1 -0
- package/dist/chunk-ERTAKB2H.js +11093 -0
- package/dist/chunk-ERTAKB2H.js.map +1 -0
- package/dist/chunk-N7X762VU.js +34 -0
- package/dist/chunk-N7X762VU.js.map +1 -0
- package/dist/chunk-OCBTNAAO.js +1946 -0
- package/dist/chunk-OCBTNAAO.js.map +1 -0
- package/dist/chunk-Z3ZHN4UW.js +130 -0
- package/dist/chunk-Z3ZHN4UW.js.map +1 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.js +495 -0
- package/dist/cli.js.map +1 -0
- package/dist/custom-chart/runtime-shim.js +146 -0
- package/dist/custom-chart/template/AGENTS.md +374 -0
- package/dist/custom-chart/template/README.md +374 -0
- package/dist/custom-chart/template/chart.css +28 -0
- package/dist/custom-chart/template/chart.ts +192 -0
- package/dist/custom-chart/template/custom-chart.d.ts +78 -0
- package/dist/custom-chart/template/icon.svg +1 -0
- package/dist/custom-chart/template/manifest.json +23 -0
- package/dist/custom-chart/template/package.json +14 -0
- package/dist/custom-chart/template/sample-data.json +18 -0
- package/dist/custom-chart/template/tsconfig.json +12 -0
- package/dist/index.js +65 -9787
- package/dist/index.js.map +1 -1
- package/dist/main-KZRHWE3K.js +857 -0
- package/dist/main-KZRHWE3K.js.map +1 -0
- package/dist/test-only-K7QTSVO4.js +38 -0
- package/dist/test-only-K7QTSVO4.js.map +1 -0
- package/package.json +17 -5
- 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 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="12" width="4" height="8" rx="1"/><rect x="10" y="6" width="4" height="14" rx="1"/><rect x="17" y="9" width="4" height="11" rx="1"/></svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"id": "my-chart",
|
|
4
|
+
"name": "My chart",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "Bars with an optional target line.",
|
|
7
|
+
"slots": [
|
|
8
|
+
{ "id": "category", "label": "Category", "role": "dimension", "types": ["string"], "required": true, "description": "One bar per value." },
|
|
9
|
+
{ "id": "value", "label": "Value", "role": "measure", "types": ["number"], "required": true },
|
|
10
|
+
{ "id": "target", "label": "Target", "role": "measure", "types": ["number"], "required": false }
|
|
11
|
+
],
|
|
12
|
+
"options": [
|
|
13
|
+
{ "id": "show_labels", "label": "Show labels", "type": "boolean", "default": true, "group": "Labels" },
|
|
14
|
+
{ "id": "subtitle", "label": "Subtitle", "type": "string", "default": "", "maxLength": 120, "group": "Labels" },
|
|
15
|
+
{ "id": "bar_radius", "label": "Corner radius", "type": "number", "default": 4, "min": 0, "max": 20, "step": 1, "group": "Bars" },
|
|
16
|
+
{ "id": "bar_color", "label": "Bar colour", "type": "color", "default": "#3366cc", "group": "Bars" },
|
|
17
|
+
{ "id": "sort", "label": "Sort", "type": "select", "default": "none", "choices": [
|
|
18
|
+
{ "value": "none", "label": "Data order" },
|
|
19
|
+
{ "value": "asc", "label": "Smallest first" },
|
|
20
|
+
{ "value": "desc", "label": "Largest first" }
|
|
21
|
+
], "group": "Bars" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "my-chart",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"validate": "databrain custom-chart validate",
|
|
7
|
+
"build": "databrain custom-chart build",
|
|
8
|
+
"dev": "databrain custom-chart dev",
|
|
9
|
+
"upload": "databrain custom-chart upload"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@databrainhq/mcp-server": "latest"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{ "id": "country", "label": "Country", "type": "string", "filterable": true, "slotId": "category" },
|
|
4
|
+
{ "id": "revenue", "label": "Revenue", "type": "number", "filterable": false, "slotId": "value" },
|
|
5
|
+
{ "id": "target", "label": "Target", "type": "number", "filterable": false, "slotId": "target" }
|
|
6
|
+
],
|
|
7
|
+
"rows": [
|
|
8
|
+
["India", 1240, 1100],
|
|
9
|
+
["United States", 980, 1200],
|
|
10
|
+
["Germany", 610, 600],
|
|
11
|
+
["Brazil", 430, 500],
|
|
12
|
+
["Japan", 390, 350],
|
|
13
|
+
["France", 280, 300],
|
|
14
|
+
["Canada", 210, 250],
|
|
15
|
+
["Australia", 150, 200]
|
|
16
|
+
],
|
|
17
|
+
"options": {}
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"skipLibCheck": true
|
|
10
|
+
},
|
|
11
|
+
"include": ["chart.ts", "custom-chart.d.ts"]
|
|
12
|
+
}
|