neural-ui-mcp 0.4.0 → 0.5.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/README.md +9 -7
- package/data/charts-react-catalog.json +1 -1
- package/data/charts-react-sha256 +1 -1
- package/data/charts-vue-catalog.json +1 -0
- package/data/charts-vue-sha256 +1 -0
- package/dist/catalog.js +2 -1
- package/dist/release-versions.d.ts +2 -1
- package/dist/release-versions.js +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# neural-ui-mcp
|
|
2
2
|
|
|
3
|
-
Servidor MCP local, de solo lectura, para Neural UI, Neural Native y Neural Charts. La versión **0.
|
|
3
|
+
Servidor MCP local, de solo lectura, para Neural UI, Neural Native y Neural Charts. La versión **0.5.0** incorpora Charts Vue 1.0.0. Licencia MIT. Requiere Node **22.22.3 o posterior**.
|
|
4
4
|
|
|
5
5
|
El servidor funciona sin backend ni conexión de red durante la ejecución. La descarga de dependencias sí usa npm. El cliente de IA que elijas mantiene sus propias condiciones de uso.
|
|
6
6
|
|
|
7
7
|
## Instalar desde npm
|
|
8
8
|
|
|
9
|
-
La
|
|
9
|
+
La versión 0.5.0 incluye el catálogo de Vue. Puedes iniciar el servidor desde npm con este comando.
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npx --yes neural-ui-mcp@0.
|
|
12
|
+
npx --yes neural-ui-mcp@0.5.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
El proceso espera mensajes MCP en stdin. Para instalarlo como dependencia de tu proyecto usa `npm install --save-dev --save-exact neural-ui-mcp@0.
|
|
15
|
+
El proceso espera mensajes MCP en stdin. Para instalarlo como dependencia de tu proyecto usa `npm install --save-dev --save-exact neural-ui-mcp@0.5.0`. La instalación, el binario y el arranque con npx se comprueban con un cliente MCP real. [Publicaciones y artefactos verificados](https://github.com/PedroMorenoTrujillo/neural-ai/releases).
|
|
16
16
|
|
|
17
17
|
## Instalar el tarball verificado
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ Desde una copia del repositorio [Neural AI](https://github.com/PedroMorenoTrujil
|
|
|
22
22
|
npm ci
|
|
23
23
|
npm ci --prefix packages/mcp
|
|
24
24
|
npm run verify:mcp
|
|
25
|
-
npm install --prefix /ruta/absoluta/neural-mcp-local ./dist/mcp/neural-ui-mcp-0.
|
|
25
|
+
npm install --prefix /ruta/absoluta/neural-mcp-local ./dist/mcp/neural-ui-mcp-0.5.0.tgz
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
El último comando instala el paquete local preparado por las pruebas. Comprueba su SHA-256 con `dist/mcp/SHA256SUMS`. También puedes ejecutar directamente `node /ruta/absoluta/neural-ai/packages/mcp/dist/cli.js` después de compilarlo. El proceso espera a un cliente en stdin.
|
|
@@ -34,8 +34,8 @@ Usa un Node compatible disponible para el cliente.
|
|
|
34
34
|
Para usar directamente la versión publicada:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
codex mcp add neural-ui -- npx --yes neural-ui-mcp@0.
|
|
38
|
-
claude mcp add --transport stdio neural-ui -- npx --yes neural-ui-mcp@0.
|
|
37
|
+
codex mcp add neural-ui -- npx --yes neural-ui-mcp@0.5.0
|
|
38
|
+
claude mcp add --transport stdio neural-ui -- npx --yes neural-ui-mcp@0.5.0
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Para una instalación local del tarball:
|
|
@@ -88,6 +88,7 @@ En cada llamada, `version` es opcional y debe coincidir con el catálogo selecci
|
|
|
88
88
|
| `charts-web` | `@neural-charts/web` | 1.2.2 |
|
|
89
89
|
| `charts-angular` | `@neural-charts/angular` | 1.1.1 |
|
|
90
90
|
| `charts-react` | `@neural-charts/react` | 1.0.0 |
|
|
91
|
+
| `charts-vue` | `@neural-charts/vue` | 1.0.0 |
|
|
91
92
|
|
|
92
93
|
Las respuestas conservan `{ version, data }`, datos estructurados y texto JSON equivalente. Los errores de mezcla de catálogo o versión se rechazan; no hay conversión implícita. Para proyectos fijados a Core 2.0.3, conserva MCP 0.2.1 y la skill Web 0.1.1; para Core 2.0.1, conserva MCP 0.2.0 y la skill Web 0.1.0 hasta actualizar su baseline. La validación detecta imports internos, símbolos desconocidos, inputs/outputs inexistentes, inputs requeridos ausentes y propietarios de formulario en conflicto, dentro del alcance descrito abajo.
|
|
93
94
|
|
|
@@ -118,6 +119,7 @@ La skill está en `skills/neural-charts-native` dentro del [repositorio de Neura
|
|
|
118
119
|
- `charts-web` documenta el renderer directo. Consulta `createChart` con `get_api` en `@neural-charts/web` o abre el ejemplo `line-web`.
|
|
119
120
|
- `charts-angular` documenta componentes como `NeuralChart` y sus bindings. El ejemplo `line-angular` muestra una actualización controlada por estado.
|
|
120
121
|
- `charts-react` documenta `Chart`, `ChartProps` y `ChartHandle`. `line-react` usa la leyenda controlada y `validate_usage` admite un nombre de archivo `.tsx`. Las props y sus tipos se comprueban con el compilador de la aplicación.
|
|
122
|
+
- `charts-vue` documenta `Chart`, `ChartProps` y `ChartHandle`. `line-vue` usa una leyenda controlada en TypeScript. Comprueba los archivos `.vue` con el compilador de la aplicación.
|
|
121
123
|
|
|
122
124
|
Los tres ejemplos también se distribuyen con la skill Neural Charts Web en [GitHub Releases](https://github.com/PedroMorenoTrujillo/neural-ai/releases).
|
|
123
125
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"api":{"schemaVersion":1,"package":"@neural-charts/react","version":"1.0.0","entrypoints":{"@neural-charts/react":{"types":"./dist/index.d.ts","sha256":"1db8defad99ce9245cf49c1902a467157d55be39955f8833801a5d05530b4ee9","symbols":[{"name":"Chart","kind":"FunctionDeclaration","declaration":"export declare function Chart(props: ChartProps): import(\"react\").JSX.Element;"},{"name":"ChartController","kind":"InterfaceDeclaration","declaration":"export interface ChartController {\n update(data: ChartData, options?: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateOptions(options: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateContent(content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n getFrame(): PlanFrame;\n getSelection(): readonly ChartPointId[];\n getHiddenSeriesIds(): readonly string[];\n setViewport(value: PlanViewportValue): ChartResult<PlanViewportValue>;\n zoomBy(factor: number): ChartResult<PlanViewportValue>;\n resetViewport(): ChartResult<PlanViewportValue>;\n exportSvg(options?: import(\"./export-layout.js\").SvgExportOptions): string;\n exportCsv(options?: import(\"./export.js\").CsvExportOptions): ChartResult<string>;\n exportPng(options?: import(\"./export.js\").PngExportOptions): Promise<Blob>;\n destroy(): void;\n}"},{"name":"ChartData","kind":"TypeAliasDeclaration","declaration":"export type ChartData = Data<Source>;"},{"name":"ChartHandle","kind":"InterfaceDeclaration","declaration":"export interface ChartHandle {\n getController(): ChartController | undefined;\n}"},{"name":"ChartMountOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartMountOptions {\n readonly instanceId: string;\n readonly content?: import(\"./content.js\").ChartContentPorts;\n readonly onPointActivate?: (event: Readonly<{\n id: ChartPointId;\n observation: PlanObservation;\n source: \"pointer\" | \"keyboard\";\n revision: number;\n }>) => void;\n readonly onHiddenSeriesChange?: (ids: readonly string[]) => void;\n readonly onSelectionChange?: (ids: readonly ChartPointId[]) => void;\n readonly onViewportChange?: (value: PlanViewportValue) => void;\n readonly onDiagnostic?: (diagnostic: ChartDiagnostic) => void;\n readonly synchronization?: import(\"./synchronization.js\").ChartSynchronization;\n}"},{"name":"ChartOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartOptions<T extends ChartType = ChartType> {\n readonly title?: string;\n readonly description?: string;\n readonly animation?: Readonly<{\n enabled?: boolean;\n duration?: number;\n revision?: number;\n }>;\n readonly capacity?: PlanOptions[\"capacity\"];\n readonly scales?: PlanOptions[\"scales\"];\n readonly hierarchy?: PlanOptions[\"hierarchy\"];\n readonly referenceBands?: PlanOptions[\"referenceBands\"];\n readonly referenceBandStyles?: readonly ChartReferenceBandStyle[];\n readonly referenceLabels?: readonly Readonly<{\n id: string;\n text: string;\n }>[];\n readonly referenceStyles?: readonly ChartReferenceStyle[];\n readonly annotations?: readonly Readonly<{\n id: string;\n point: ChartPointId;\n text: string;\n dx?: number;\n dy?: number;\n }>[];\n readonly unit?: string;\n readonly theme?: \"light\" | \"dark\";\n readonly direction?: \"ltr\" | \"rtl\";\n readonly themeTokens?: import(\"./theme.js\").ChartTheme;\n readonly locale?: \"en\" | \"es\";\n readonly width?: number;\n readonly height?: number;\n readonly responsive?: readonly ChartResponsiveRule[];\n readonly accessibility?: ChartAccessibilityOptions;\n readonly formatting?: Readonly<{\n locale?: string;\n number?: ChartNumberFormat;\n date?: ChartDateFormat;\n }>;\n readonly layout?: ChartLayoutOptions;\n readonly appearance?: Readonly<{\n colors?: readonly string[];\n series?: readonly ChartSeriesStyle[];\n points?: readonly ChartPointStyle[];\n bandColors?: readonly string[];\n risingColor?: string;\n fallingColor?: string;\n lineWidth?: number;\n markers?: boolean;\n markerRadius?: number;\n dataLabels?: boolean;\n stackLabels?: boolean;\n centerName?: string;\n labelLimit?: number;\n dataLabelLayout?: ChartLabelLayout;\n titleStyle?: ChartTextStyle;\n descriptionStyle?: ChartTextStyle;\n minPlotWidth?: number;\n waterfall?: \"waterfall\" extends T ? ChartWaterfallStyle : never;\n }>;\n readonly colorAxis?: T extends \"heatmap\" | \"tilemap\" ? Extract<PlanSpec, {\n family: \"tilemap\";\n }>[\"colorAxis\"] : never;\n readonly axes?: Readonly<{\n grid?: boolean;\n x?: ChartAxisOptions;\n y?: ChartAxisOptions;\n secondaryY?: ChartAxisOptions;\n }>;\n readonly legend?: Readonly<{\n visible?: boolean;\n position?: \"top\" | \"bottom\" | \"left\" | \"right\";\n interactive?: boolean;\n reverse?: boolean;\n maxLabelCharacters?: number;\n itemSpacing?: number;\n maxHeight?: number;\n }>;\n readonly tooltip?: Readonly<{\n enabled?: boolean;\n content?: \"point\" | \"shared\";\n placement?: \"auto\" | \"docked\" | \"below\";\n crosshair?: boolean;\n pinnable?: boolean;\n background?: string;\n foreground?: string;\n maxWidth?: number;\n maxHeight?: number;\n }>;\n readonly downloadMenu?: readonly `${ChartDownloadFormat}`[];\n readonly downloadMenuPosition?: `${ChartDownloadMenuPosition}`;\n readonly toolbar?: Readonly<{\n actions: readonly ChartToolbarAction[];\n position?: ChartDownloadMenuPosition;\n }>;\n readonly viewport?: Readonly<{\n axes: \"x\" | \"y\" | \"xy\";\n value?: PlanViewportValue;\n controls?: boolean;\n zoom?: Readonly<ChartZoomOptions>;\n pan?: boolean;\n pinch?: boolean;\n wheel?: false | \"ctrl\" | \"always\";\n }>;\n readonly hiddenSeriesIds?: readonly string[];\n readonly selectedPoints?: readonly ChartPointId[];\n readonly references?: PlanOptions[\"references\"];\n}"},{"name":"ChartProps","kind":"InterfaceDeclaration","declaration":"export interface ChartProps extends Omit<ChartMountOptions, \"instanceId\"> {\n readonly data: ChartData;\n readonly options: ChartOptions;\n readonly instanceId?: string;\n readonly className?: string;\n readonly ref?: Ref<ChartHandle>;\n}"}]}},"tokens":[],"assets":{}},"documents":[{"id":"references/react","source":"skills/neural-charts-web/references/react.md","text":"# Charts React 1.0.0\n\nInstall with `npm install @neural-charts/react
|
|
1
|
+
{"schemaVersion":1,"api":{"schemaVersion":1,"package":"@neural-charts/react","version":"1.0.0","entrypoints":{"@neural-charts/react":{"types":"./dist/index.d.ts","sha256":"1db8defad99ce9245cf49c1902a467157d55be39955f8833801a5d05530b4ee9","symbols":[{"name":"Chart","kind":"FunctionDeclaration","declaration":"export declare function Chart(props: ChartProps): import(\"react\").JSX.Element;"},{"name":"ChartController","kind":"InterfaceDeclaration","declaration":"export interface ChartController {\n update(data: ChartData, options?: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateOptions(options: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateContent(content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n getFrame(): PlanFrame;\n getSelection(): readonly ChartPointId[];\n getHiddenSeriesIds(): readonly string[];\n setViewport(value: PlanViewportValue): ChartResult<PlanViewportValue>;\n zoomBy(factor: number): ChartResult<PlanViewportValue>;\n resetViewport(): ChartResult<PlanViewportValue>;\n exportSvg(options?: import(\"./export-layout.js\").SvgExportOptions): string;\n exportCsv(options?: import(\"./export.js\").CsvExportOptions): ChartResult<string>;\n exportPng(options?: import(\"./export.js\").PngExportOptions): Promise<Blob>;\n destroy(): void;\n}"},{"name":"ChartData","kind":"TypeAliasDeclaration","declaration":"export type ChartData = Data<Source>;"},{"name":"ChartHandle","kind":"InterfaceDeclaration","declaration":"export interface ChartHandle {\n getController(): ChartController | undefined;\n}"},{"name":"ChartMountOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartMountOptions {\n readonly instanceId: string;\n readonly content?: import(\"./content.js\").ChartContentPorts;\n readonly onPointActivate?: (event: Readonly<{\n id: ChartPointId;\n observation: PlanObservation;\n source: \"pointer\" | \"keyboard\";\n revision: number;\n }>) => void;\n readonly onHiddenSeriesChange?: (ids: readonly string[]) => void;\n readonly onSelectionChange?: (ids: readonly ChartPointId[]) => void;\n readonly onViewportChange?: (value: PlanViewportValue) => void;\n readonly onDiagnostic?: (diagnostic: ChartDiagnostic) => void;\n readonly synchronization?: import(\"./synchronization.js\").ChartSynchronization;\n}"},{"name":"ChartOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartOptions<T extends ChartType = ChartType> {\n readonly title?: string;\n readonly description?: string;\n readonly animation?: Readonly<{\n enabled?: boolean;\n duration?: number;\n revision?: number;\n }>;\n readonly capacity?: PlanOptions[\"capacity\"];\n readonly scales?: PlanOptions[\"scales\"];\n readonly hierarchy?: PlanOptions[\"hierarchy\"];\n readonly referenceBands?: PlanOptions[\"referenceBands\"];\n readonly referenceBandStyles?: readonly ChartReferenceBandStyle[];\n readonly referenceLabels?: readonly Readonly<{\n id: string;\n text: string;\n }>[];\n readonly referenceStyles?: readonly ChartReferenceStyle[];\n readonly annotations?: readonly Readonly<{\n id: string;\n point: ChartPointId;\n text: string;\n dx?: number;\n dy?: number;\n }>[];\n readonly unit?: string;\n readonly theme?: \"light\" | \"dark\";\n readonly direction?: \"ltr\" | \"rtl\";\n readonly themeTokens?: import(\"./theme.js\").ChartTheme;\n readonly locale?: \"en\" | \"es\";\n readonly width?: number;\n readonly height?: number;\n readonly responsive?: readonly ChartResponsiveRule[];\n readonly accessibility?: ChartAccessibilityOptions;\n readonly formatting?: Readonly<{\n locale?: string;\n number?: ChartNumberFormat;\n date?: ChartDateFormat;\n }>;\n readonly layout?: ChartLayoutOptions;\n readonly appearance?: Readonly<{\n colors?: readonly string[];\n series?: readonly ChartSeriesStyle[];\n points?: readonly ChartPointStyle[];\n bandColors?: readonly string[];\n risingColor?: string;\n fallingColor?: string;\n lineWidth?: number;\n markers?: boolean;\n markerRadius?: number;\n dataLabels?: boolean;\n stackLabels?: boolean;\n centerName?: string;\n labelLimit?: number;\n dataLabelLayout?: ChartLabelLayout;\n titleStyle?: ChartTextStyle;\n descriptionStyle?: ChartTextStyle;\n minPlotWidth?: number;\n waterfall?: \"waterfall\" extends T ? ChartWaterfallStyle : never;\n }>;\n readonly colorAxis?: T extends \"heatmap\" | \"tilemap\" ? Extract<PlanSpec, {\n family: \"tilemap\";\n }>[\"colorAxis\"] : never;\n readonly axes?: Readonly<{\n grid?: boolean;\n x?: ChartAxisOptions;\n y?: ChartAxisOptions;\n secondaryY?: ChartAxisOptions;\n }>;\n readonly legend?: Readonly<{\n visible?: boolean;\n position?: \"top\" | \"bottom\" | \"left\" | \"right\";\n interactive?: boolean;\n reverse?: boolean;\n maxLabelCharacters?: number;\n itemSpacing?: number;\n maxHeight?: number;\n }>;\n readonly tooltip?: Readonly<{\n enabled?: boolean;\n content?: \"point\" | \"shared\";\n placement?: \"auto\" | \"docked\" | \"below\";\n crosshair?: boolean;\n pinnable?: boolean;\n background?: string;\n foreground?: string;\n maxWidth?: number;\n maxHeight?: number;\n }>;\n readonly downloadMenu?: readonly `${ChartDownloadFormat}`[];\n readonly downloadMenuPosition?: `${ChartDownloadMenuPosition}`;\n readonly toolbar?: Readonly<{\n actions: readonly ChartToolbarAction[];\n position?: ChartDownloadMenuPosition;\n }>;\n readonly viewport?: Readonly<{\n axes: \"x\" | \"y\" | \"xy\";\n value?: PlanViewportValue;\n controls?: boolean;\n zoom?: Readonly<ChartZoomOptions>;\n pan?: boolean;\n pinch?: boolean;\n wheel?: false | \"ctrl\" | \"always\";\n }>;\n readonly hiddenSeriesIds?: readonly string[];\n readonly selectedPoints?: readonly ChartPointId[];\n readonly references?: PlanOptions[\"references\"];\n}"},{"name":"ChartProps","kind":"InterfaceDeclaration","declaration":"export interface ChartProps extends Omit<ChartMountOptions, \"instanceId\"> {\n readonly data: ChartData;\n readonly options: ChartOptions;\n readonly instanceId?: string;\n readonly className?: string;\n readonly ref?: Ref<ChartHandle>;\n}"}]}},"tokens":[],"assets":{}},"documents":[{"id":"references/react","source":"skills/neural-charts-web/references/react.md","text":"# Charts React 1.0.0\n\nInstall with `npm install @neural-charts/react` in a React 19 application. npm resolves Web and Core automatically. Render `Chart` with typed `data` and `options`. With React Server Components, import the chart from a client component.\n\nUse `onHiddenSeriesChange` together with `options.hiddenSeriesIds` to control legend visibility from React state. Pass `ref` if you need `ChartHandle.getController()` after mount. The adapter updates the controller from new props and disposes of its owner on unmount.\n\n[Complete example](../examples/line-react.tsx) · [React documentation](https://charts.neuralui.org/docs/react?framework=react)\n"}],"examples":[{"id":"examples/line-react","source":"skills/neural-charts-web/examples/line-react.tsx","text":"'use client';\n\nimport { useState } from 'react';\nimport { Chart, type ChartData } from '@neural-charts/react';\n\nconst data: ChartData = {\n type: 'line',\n axes: { x: { type: 'linear' }, y: { type: 'linear' } },\n series: [{\n id: 'visits', name: 'Visits',\n data: [{ id: 'mon', x: 1, y: 26 }, { id: 'tue', x: 2, y: 32 }],\n }, {\n id: 'previous', name: 'Previous week',\n data: [{ id: 'mon', x: 1, y: 18 }, { id: 'tue', x: 2, y: 23 }],\n }],\n};\n\nexport function VisitsChart() {\n const [hiddenSeriesIds, setHiddenSeriesIds] = useState<readonly string[]>([]);\n return (\n <Chart data={data} options={{\n title: 'Daily visits',\n hiddenSeriesIds,\n accessibility: { description: 'Daily visits are higher than the previous week on both days.' },\n }} onHiddenSeriesChange={setHiddenSeriesIds} />\n );\n}\n"}]}
|
package/data/charts-react-sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3f4665a595786a3175719110496c4a875d2af79f0decfb973adfd08d3c0965f8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schemaVersion":1,"api":{"schemaVersion":1,"package":"@neural-charts/vue","version":"1.0.0","entrypoints":{"@neural-charts/vue":{"types":"./dist/index.d.ts","sha256":"41cfe8fbefd14614deb87756bcf6ae3c47d6488d3f86f8939feb5ddf40afb725","symbols":[{"name":"Chart","kind":"VariableDeclaration","declaration":"Chart: DefineSetupFnComponent<ChartProps, ChartEvents, {}>"},{"name":"ChartController","kind":"InterfaceDeclaration","declaration":"export interface ChartController {\n update(data: ChartData, options?: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateOptions(options: ChartOptions, content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n updateContent(content?: import(\"./content.js\").ChartContentPorts): ChartResult<number>;\n getFrame(): PlanFrame;\n getSelection(): readonly ChartPointId[];\n getHiddenSeriesIds(): readonly string[];\n setViewport(value: PlanViewportValue): ChartResult<PlanViewportValue>;\n zoomBy(factor: number): ChartResult<PlanViewportValue>;\n resetViewport(): ChartResult<PlanViewportValue>;\n exportSvg(options?: import(\"./export-layout.js\").SvgExportOptions): string;\n exportCsv(options?: import(\"./export.js\").CsvExportOptions): ChartResult<string>;\n exportPng(options?: import(\"./export.js\").PngExportOptions): Promise<Blob>;\n destroy(): void;\n}"},{"name":"ChartData","kind":"TypeAliasDeclaration","declaration":"export type ChartData = Data<Source>;"},{"name":"ChartHandle","kind":"InterfaceDeclaration","declaration":"export interface ChartHandle {\n getController(): ChartController | undefined;\n}"},{"name":"ChartMountOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartMountOptions {\n readonly instanceId: string;\n readonly content?: import(\"./content.js\").ChartContentPorts;\n readonly onPointActivate?: (event: Readonly<{\n id: ChartPointId;\n observation: PlanObservation;\n source: \"pointer\" | \"keyboard\";\n revision: number;\n }>) => void;\n readonly onHiddenSeriesChange?: (ids: readonly string[]) => void;\n readonly onSelectionChange?: (ids: readonly ChartPointId[]) => void;\n readonly onViewportChange?: (value: PlanViewportValue) => void;\n readonly onDiagnostic?: (diagnostic: ChartDiagnostic) => void;\n readonly synchronization?: import(\"./synchronization.js\").ChartSynchronization;\n}"},{"name":"ChartOptions","kind":"InterfaceDeclaration","declaration":"export interface ChartOptions<T extends ChartType = ChartType> {\n readonly title?: string;\n readonly description?: string;\n readonly animation?: Readonly<{\n enabled?: boolean;\n duration?: number;\n revision?: number;\n }>;\n readonly capacity?: PlanOptions[\"capacity\"];\n readonly scales?: PlanOptions[\"scales\"];\n readonly hierarchy?: PlanOptions[\"hierarchy\"];\n readonly referenceBands?: PlanOptions[\"referenceBands\"];\n readonly referenceBandStyles?: readonly ChartReferenceBandStyle[];\n readonly referenceLabels?: readonly Readonly<{\n id: string;\n text: string;\n }>[];\n readonly referenceStyles?: readonly ChartReferenceStyle[];\n readonly annotations?: readonly Readonly<{\n id: string;\n point: ChartPointId;\n text: string;\n dx?: number;\n dy?: number;\n }>[];\n readonly unit?: string;\n readonly theme?: \"light\" | \"dark\";\n readonly direction?: \"ltr\" | \"rtl\";\n readonly themeTokens?: import(\"./theme.js\").ChartTheme;\n readonly locale?: \"en\" | \"es\";\n readonly width?: number;\n readonly height?: number;\n readonly responsive?: readonly ChartResponsiveRule[];\n readonly accessibility?: ChartAccessibilityOptions;\n readonly formatting?: Readonly<{\n locale?: string;\n number?: ChartNumberFormat;\n date?: ChartDateFormat;\n }>;\n readonly layout?: ChartLayoutOptions;\n readonly appearance?: Readonly<{\n colors?: readonly string[];\n series?: readonly ChartSeriesStyle[];\n points?: readonly ChartPointStyle[];\n bandColors?: readonly string[];\n risingColor?: string;\n fallingColor?: string;\n lineWidth?: number;\n markers?: boolean;\n markerRadius?: number;\n dataLabels?: boolean;\n stackLabels?: boolean;\n centerName?: string;\n labelLimit?: number;\n dataLabelLayout?: ChartLabelLayout;\n titleStyle?: ChartTextStyle;\n descriptionStyle?: ChartTextStyle;\n minPlotWidth?: number;\n waterfall?: \"waterfall\" extends T ? ChartWaterfallStyle : never;\n }>;\n readonly colorAxis?: T extends \"heatmap\" | \"tilemap\" ? Extract<PlanSpec, {\n family: \"tilemap\";\n }>[\"colorAxis\"] : never;\n readonly axes?: Readonly<{\n grid?: boolean;\n x?: ChartAxisOptions;\n y?: ChartAxisOptions;\n secondaryY?: ChartAxisOptions;\n }>;\n readonly legend?: Readonly<{\n visible?: boolean;\n position?: \"top\" | \"bottom\" | \"left\" | \"right\";\n interactive?: boolean;\n reverse?: boolean;\n maxLabelCharacters?: number;\n itemSpacing?: number;\n maxHeight?: number;\n }>;\n readonly tooltip?: Readonly<{\n enabled?: boolean;\n content?: \"point\" | \"shared\";\n placement?: \"auto\" | \"docked\" | \"below\";\n crosshair?: boolean;\n pinnable?: boolean;\n background?: string;\n foreground?: string;\n maxWidth?: number;\n maxHeight?: number;\n }>;\n readonly downloadMenu?: readonly `${ChartDownloadFormat}`[];\n readonly downloadMenuPosition?: `${ChartDownloadMenuPosition}`;\n readonly toolbar?: Readonly<{\n actions: readonly ChartToolbarAction[];\n position?: ChartDownloadMenuPosition;\n }>;\n readonly viewport?: Readonly<{\n axes: \"x\" | \"y\" | \"xy\";\n value?: PlanViewportValue;\n controls?: boolean;\n zoom?: Readonly<ChartZoomOptions>;\n pan?: boolean;\n pinch?: boolean;\n wheel?: false | \"ctrl\" | \"always\";\n }>;\n readonly hiddenSeriesIds?: readonly string[];\n readonly selectedPoints?: readonly ChartPointId[];\n readonly references?: PlanOptions[\"references\"];\n}"},{"name":"ChartProps","kind":"InterfaceDeclaration","declaration":"export interface ChartProps {\n readonly data: ChartData;\n readonly options: ChartOptions;\n readonly content?: ChartMountOptions[\"content\"];\n readonly synchronization?: ChartMountOptions[\"synchronization\"];\n readonly instanceId?: string;\n}"}]}},"tokens":[],"assets":{}},"documents":[{"id":"references/vue","source":"skills/neural-charts-web/references/vue.md","text":"# Charts Vue 1.0.0\n\nRun `npm install @neural-charts/vue` inside a Vue 3.5 application. npm installs the compatible Web renderer and Core automatically.\n\nImport `Chart` and the `ChartData` and `ChartOptions` types from `@neural-charts/vue`. Bind `:data` and `:options` in the template. Use `shallowRef` or `computed` to pass a new reference on updates, and keep observation and series IDs stable.\n\nListen to `@point-activate`, `@selection-change`, `@hidden-series-change`, `@viewport-change` and `@diagnostic`. When the application controls a value through options, use the event to update that value. A template ref typed with `ChartHandle` gives access to `getController()` after mount for export and imperative operations.\n\nThe adapter mounts the chart in the browser and disposes of it on unmount. Server rendering emits the initial container. Provide a text summary or data table when readers need the chart information before mount.\n\n[Complete example](../examples/line-vue.ts) · [Vue documentation](https://charts.neuralui.org/docs/vue?framework=vue)\n"}],"examples":[{"id":"examples/line-vue","source":"skills/neural-charts-web/examples/line-vue.ts","text":"import { defineComponent, h, shallowRef } from 'vue';\nimport { Chart, type ChartData, type ChartOptions } from '@neural-charts/vue';\n\nconst data: ChartData = {\n type: 'line',\n axes: { x: { type: 'linear' }, y: { type: 'linear' } },\n series: [\n { id: 'current', name: 'This week', data: [{ id: 'mon', x: 1, y: 12 }, { id: 'tue', x: 2, y: 18 }] },\n { id: 'previous', name: 'Last week', data: [{ id: 'mon', x: 1, y: 9 }, { id: 'tue', x: 2, y: 11 }] },\n ],\n};\n\nexport const VisitsChart = defineComponent({\n setup() {\n const options = shallowRef<ChartOptions>({\n title: 'Weekly visits',\n accessibility: { description: 'Daily visits for the current and previous week.' },\n tooltip: { enabled: true },\n legend: { visible: true },\n hiddenSeriesIds: [],\n });\n function applyVisibility(ids: readonly string[]) {\n options.value = { ...options.value, hiddenSeriesIds: ids };\n }\n return () => h(Chart, { data, options: options.value, onHiddenSeriesChange: applyVisibility });\n },\n});\n"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5ebcd6065531ba1754768c865525129a9ccea775c72118290ca3fbccb249a816
|
package/dist/catalog.js
CHANGED
|
@@ -8,6 +8,7 @@ const catalogSources = {
|
|
|
8
8
|
'charts-web': { file: 'charts-web-', package: '@neural-charts/web', scheme: 'neural-charts-web' },
|
|
9
9
|
'charts-angular': { file: 'charts-angular-', package: '@neural-charts/angular', scheme: 'neural-charts-angular' },
|
|
10
10
|
'charts-react': { file: 'charts-react-', package: '@neural-charts/react', scheme: 'neural-charts-react' },
|
|
11
|
+
'charts-vue': { file: 'charts-vue-', package: '@neural-charts/vue', scheme: 'neural-charts-vue' },
|
|
11
12
|
};
|
|
12
13
|
export function catalogScheme(catalog) {
|
|
13
14
|
const source = Object.values(catalogSources).find(source => source.package === catalog.api.package);
|
|
@@ -38,7 +39,7 @@ export function components(catalog, query = '', kind = 'all') {
|
|
|
38
39
|
if (symbol.angularKind && (kind === 'all' || symbol.angularKind === kind)) {
|
|
39
40
|
return [{ entrypoint, name: symbol.name, kind: symbol.angularKind, selector: symbol.selector }];
|
|
40
41
|
}
|
|
41
|
-
if (entrypoint === '@neural-charts/react' && symbol.name === 'Chart' && kind !== 'directive') {
|
|
42
|
+
if ((entrypoint === '@neural-charts/react' || entrypoint === '@neural-charts/vue') && symbol.name === 'Chart' && kind !== 'directive') {
|
|
42
43
|
return [{ entrypoint, name: symbol.name, kind: 'component', selector: undefined }];
|
|
43
44
|
}
|
|
44
45
|
return [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MCP_VERSION = "0.
|
|
1
|
+
export declare const MCP_VERSION = "0.5.0";
|
|
2
2
|
export declare const LIBRARY_VERSIONS: {
|
|
3
3
|
readonly web: "2.1.0";
|
|
4
4
|
readonly native: "0.1.0-beta.13";
|
|
@@ -6,4 +6,5 @@ export declare const LIBRARY_VERSIONS: {
|
|
|
6
6
|
readonly "charts-web": "1.2.2";
|
|
7
7
|
readonly "charts-angular": "1.1.1";
|
|
8
8
|
readonly "charts-react": "1.0.0";
|
|
9
|
+
readonly "charts-vue": "1.0.0";
|
|
9
10
|
};
|
package/dist/release-versions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated from release baselines; each product keeps its own version.
|
|
2
|
-
export const MCP_VERSION = '0.
|
|
3
|
-
export const LIBRARY_VERSIONS = { "web": '2.1.0', "native": '0.1.0-beta.13', "charts-native": '0.1.0-beta.14', "charts-web": '1.2.2', "charts-angular": '1.1.1', "charts-react": '1.0.0' };
|
|
2
|
+
export const MCP_VERSION = '0.5.0';
|
|
3
|
+
export const LIBRARY_VERSIONS = { "web": '2.1.0', "native": '0.1.0-beta.13', "charts-native": '0.1.0-beta.14', "charts-web": '1.2.2', "charts-angular": '1.1.1', "charts-react": '1.0.0', "charts-vue": '1.0.0' };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
2
|
import { type Catalog } from './catalog.js';
|
|
3
|
-
export declare const VERSION = "0.
|
|
3
|
+
export declare const VERSION = "0.5.0";
|
|
4
4
|
export declare function createServer(web?: Catalog, native?: Catalog, chartsNative?: Catalog): McpServer;
|
package/dist/server.js
CHANGED
|
@@ -4,7 +4,7 @@ import { catalogScheme, components, loadCatalog, search } from './catalog.js';
|
|
|
4
4
|
import { analyzeSource } from './usage-validator.mjs';
|
|
5
5
|
import { MCP_VERSION, LIBRARY_VERSIONS } from './release-versions.js';
|
|
6
6
|
export const VERSION = MCP_VERSION;
|
|
7
|
-
const versions = z.enum(Object.values(LIBRARY_VERSIONS));
|
|
7
|
+
const versions = z.enum([...new Set(Object.values(LIBRARY_VERSIONS))]);
|
|
8
8
|
const scope = { library: z.enum(Object.keys(LIBRARY_VERSIONS)).default('web'), version: versions.optional() };
|
|
9
9
|
const annotations = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false };
|
|
10
10
|
const outputSchema = z.object({ version: versions, data: z.unknown() });
|
|
@@ -21,6 +21,7 @@ export function createServer(web = loadCatalog(), native = loadCatalog('native')
|
|
|
21
21
|
'charts-web': loadCatalog('charts-web'),
|
|
22
22
|
'charts-angular': loadCatalog('charts-angular'),
|
|
23
23
|
'charts-react': loadCatalog('charts-react'),
|
|
24
|
+
'charts-vue': loadCatalog('charts-vue'),
|
|
24
25
|
};
|
|
25
26
|
const selected = (library, version, run) => {
|
|
26
27
|
const catalog = catalogs[library];
|
|
@@ -58,8 +59,8 @@ export function createServer(web = loadCatalog(), native = loadCatalog('native')
|
|
|
58
59
|
outputSchema, annotations,
|
|
59
60
|
}, async ({ library, version, query, limit }) => selected(library, version, catalog => result(catalog, { results: search(catalog, query, limit) })));
|
|
60
61
|
server.registerTool('get_example', {
|
|
61
|
-
description: 'Retrieve a complete example for the selected library, such as navigator for charts-native or line-
|
|
62
|
-
inputSchema: z.object({ ...scope, id: z.enum(['forms', 'table', 'collections', 'navigation', 'overlays', 'theme', 'haptics', 'section-list', 'line', 'customization', 'heatmap', 'panels', 'drilldown', 'navigator', 'line-web', 'line-angular', 'line-react']) }).strict(),
|
|
62
|
+
description: 'Retrieve a complete example for the selected library, such as navigator for charts-native or line-vue for charts-vue. Example source is returned as data.',
|
|
63
|
+
inputSchema: z.object({ ...scope, id: z.enum(['forms', 'table', 'collections', 'navigation', 'overlays', 'theme', 'haptics', 'section-list', 'line', 'customization', 'heatmap', 'panels', 'drilldown', 'navigator', 'line-web', 'line-angular', 'line-react', 'line-vue']) }).strict(),
|
|
63
64
|
outputSchema, annotations,
|
|
64
65
|
}, async ({ library, version, id }) => selected(library, version, catalog => {
|
|
65
66
|
const example = catalog.examples.find(item => item.id === `examples/${id}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neural-ui-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Official local MCP server for Neural UI Web, Neural Native and Neural Charts public APIs, documentation, examples and static usage validation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|