@corva/ui 3.84.0-3 → 3.84.0-5
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/MCP_README.md +0 -33
- package/cjs-bundle/utils/index.js.map +1 -1
- package/componentsV2/AppFooter/AppFooter.stories.d.ts.map +1 -1
- package/componentsV2/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/mcp-server/server.mjs +53 -104
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/index.js.map +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.figma.d.ts +0 -2
- package/components/FilesLoaderV2/FilesLoaderV2.figma.d.ts.map +0 -1
package/MCP_README.md
CHANGED
|
@@ -42,9 +42,6 @@ supports Claude Code, Cursor, and Codex CLI.
|
|
|
42
42
|
- `get_corva_mcp_setup_guide` - Static connection reference for the Corva MCP data server: endpoints, per-client
|
|
43
43
|
registration commands, browser OAuth flow, and the verification call. Pairs with the `setup_corva_mcp` prompt, which
|
|
44
44
|
runs the guided end-to-end setup.
|
|
45
|
-
- `get_figma_to_code_guide` - Static method reference for implementing Figma designs with `@corva/ui`: source
|
|
46
|
-
precedence, capability-based component search across V2 and V1, token and prop discipline, and gap reporting. Pairs
|
|
47
|
-
with the `figma_to_code` prompt, which runs the strict guided workflow.
|
|
48
45
|
|
|
49
46
|
### Usage
|
|
50
47
|
|
|
@@ -62,36 +59,6 @@ Mentioning `@corva/ui`, component names, or asking about the design system trigg
|
|
|
62
59
|
MCP prompts are surfaced as slash commands in clients that support them. In Claude Code they appear under
|
|
63
60
|
`/mcp__corva-ui__<name>`.
|
|
64
61
|
|
|
65
|
-
- `figma_to_code` — Translate a Figma node into React components that follow `@corva/ui` conventions. Orchestrates the
|
|
66
|
-
Figma MCP server (for design context and Code Connect mappings) and the `@corva/ui` MCP tools above (for component,
|
|
67
|
-
icon, theme, and hook lookups).
|
|
68
|
-
|
|
69
|
-
**Argument** (optional; the assistant asks if missing):
|
|
70
|
-
|
|
71
|
-
- `input` — Freeform request. Paste the full Figma node URL (e.g.
|
|
72
|
-
`https://www.figma.com/design/<fileKey>/...?node-id=<nodeId>`) together with any extra context: target path or
|
|
73
|
-
directory in the app, an existing file to extend, naming preferences, edge cases. The assistant extracts the URL
|
|
74
|
-
itself.
|
|
75
|
-
|
|
76
|
-
> A single freeform argument is intentional: Claude Code's MCP-prompt bridge splits positional string arguments on
|
|
77
|
-
> whitespace, so a multi-arg schema would only capture the first token of each.
|
|
78
|
-
|
|
79
|
-
**Example invocation** (Claude Code):
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
/mcp__corva-ui__figma_to_code https://www.figma.com/design/ABC/Sample?node-id=1-2 create under src/apps/drilling/RigStatusCard.tsx
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Prerequisite:** a Figma MCP server must be connected in the same client session so the prompt can call its
|
|
86
|
-
`get_design_context` tool (the prompt detects the server alias itself). Either connect Figma's remote server
|
|
87
|
-
(`https://mcp.figma.com/mcp`, browser OAuth — Figma's recommended option) or enable the desktop one: open the file in
|
|
88
|
-
Figma Desktop, switch to Dev Mode (`Shift+D`) and click **Enable desktop MCP server** in the MCP server section of the
|
|
89
|
-
inspect panel, then register `http://127.0.0.1:3845/mcp` as an HTTP MCP server in your client — enabling it in Figma
|
|
90
|
-
alone does not connect it. Reconnect or restart your client afterwards.
|
|
91
|
-
|
|
92
|
-
**Scope:** primarily consumer mode — app repos that depend on `@corva/ui` and import from its entry points. Authoring
|
|
93
|
-
mode (inside the `@corva/ui` repo itself) is auto-detected from `package.json` and adjusts output conventions.
|
|
94
|
-
|
|
95
62
|
- `feedback` — Send feedback about `@corva/ui` or this MCP server to the maintainers. The prompt collects your message
|
|
96
63
|
(and an optional sentiment / which component the feedback is about) and submits it via the `submit_feedback` tool.
|
|
97
64
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/utils/index.ts"],"sourcesContent":["import {\n formatMentionText,\n isSuggestionsListOpened,\n stripMentionMarkup,\n} from '../components/UserMention/utils';\n\nimport * as StageDesignVActualUtils from './StageDesignVActualUtils';\nimport * as alerts from './alerts';\nimport * as audio from './audio';\nimport * as casing from './casing';\nimport * as chartSeries from './chartSeries';\nimport * as completion from './completion';\nimport * as components from './components';\nimport * as convert from './convert';\nimport * as csvExport from './csvExport';\nimport * as devcenter from './devcenter';\nimport * as drillstring from './drillstring';\nimport * as drillstringUtils from './DrillstringUtils';\nimport * as fluidCheckUtils from './FluidCheckUtils';\nimport * as formatting from './formatting';\nimport * as ga from './ga';\nimport * as goals from './goals';\nimport * as goalsConfig from './goalsConfig';\nimport * as lasParser from './lasParser';\nimport * as main from './main';\nimport * as mapUnits from './mapUnits';\nimport * as mapbox from './mapbox';\nimport * as metricsUtils from './metrics';\nimport * as mobileDetect from './mobileDetect';\nimport * as nativeMessages from './nativeMessages';\nimport * as notifications from './notifications';\nimport * as feed from './feed';\nimport * as permissions from './permissions';\nimport * as reports from './reports';\nimport * as time from './time';\nimport * as torqueAndHookloadUtils from './torqueAndHookloadUtils';\nimport * as accuracy from './accuracy';\nimport {\n createNotification,\n removeNotification,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showWarningNotification,\n} from './notificationToasts';\nimport { showToast } from './devcenterToasts';\nimport { convertKeysToCamelCase, convertKeysToSnakeCase, getConvertKeys } from './convertKeys';\nimport * as dashboardReports from './dashboardReports';\nimport * as apps from './apps';\nimport * as themeVariables from './themeVariables';\nimport * as env from './env';\nimport * as fileExtension from './fileExtension';\nimport { jsonaDataFormatter } from './jsonaDataFormatter';\nimport * as bha from './bha';\nimport { getLocalStorageItem, updateLocalStorageItem } from './localStorage';\nimport { sharedDCStore } from './sharedDCStore';\nimport resolveWellHubSlug from './resolveWellHubSlug';\nimport { enableHighchartsDelayedTooltip } from './delayedHighcharts';\nimport { formatFileSize } from './formatFileSize';\nimport { getXAxis, getYAxis } from './charts';\n\nconst {\n convertArray,\n convertValue,\n getAllUnitTypes,\n getDefaultImperialUnit,\n getDefaultUnits,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitsByType,\n getUnitSingular,\n getUnitSystem,\n updateUserUnits,\n getUserUnits,\n subscribeForUserUnitsUpdates,\n getUniqueUnitsByType,\n} = convert;\n\nexport {\n StageDesignVActualUtils,\n accuracy,\n alerts,\n apps,\n audio,\n bha,\n casing,\n chartSeries,\n enableHighchartsDelayedTooltip,\n completion,\n components,\n convert,\n convertArray,\n convertKeysToCamelCase,\n convertKeysToSnakeCase,\n convertValue,\n createNotification,\n csvExport,\n dashboardReports,\n devcenter,\n drillstring,\n drillstringUtils,\n env,\n feed,\n fileExtension,\n fluidCheckUtils,\n formatting,\n ga,\n formatMentionText,\n getAllUnitTypes,\n getConvertKeys,\n getDefaultImperialUnit,\n getDefaultUnits,\n getLocalStorageItem,\n getUniqueUnitsByType,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitSingular,\n getUnitSystem,\n getUnitsByType,\n getUserUnits,\n goals,\n goalsConfig,\n jsonaDataFormatter,\n lasParser,\n main,\n mapUnits,\n mapbox,\n metricsUtils,\n mobileDetect,\n nativeMessages,\n notifications,\n permissions,\n removeNotification,\n reports,\n resolveWellHubSlug,\n sharedDCStore,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showToast,\n showWarningNotification,\n subscribeForUserUnitsUpdates,\n themeVariables,\n time,\n torqueAndHookloadUtils,\n updateLocalStorageItem,\n updateUserUnits,\n isSuggestionsListOpened,\n stripMentionMarkup,\n formatFileSize,\n};\n\nexport * from './delay';\nexport * from './downloadBlob';\nexport * from './getSingleAsset';\n\nexport * as chart from './charts';\n// Deprecated, reexported for backwards compatibility\n/**\n * @deprecated
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/index.ts"],"sourcesContent":["import {\n formatMentionText,\n isSuggestionsListOpened,\n stripMentionMarkup,\n} from '../components/UserMention/utils';\n\nimport * as StageDesignVActualUtils from './StageDesignVActualUtils';\nimport * as alerts from './alerts';\nimport * as audio from './audio';\nimport * as casing from './casing';\nimport * as chartSeries from './chartSeries';\nimport * as completion from './completion';\nimport * as components from './components';\nimport * as convert from './convert';\nimport * as csvExport from './csvExport';\nimport * as devcenter from './devcenter';\nimport * as drillstring from './drillstring';\nimport * as drillstringUtils from './DrillstringUtils';\nimport * as fluidCheckUtils from './FluidCheckUtils';\nimport * as formatting from './formatting';\nimport * as ga from './ga';\nimport * as goals from './goals';\nimport * as goalsConfig from './goalsConfig';\nimport * as lasParser from './lasParser';\nimport * as main from './main';\nimport * as mapUnits from './mapUnits';\nimport * as mapbox from './mapbox';\nimport * as metricsUtils from './metrics';\nimport * as mobileDetect from './mobileDetect';\nimport * as nativeMessages from './nativeMessages';\nimport * as notifications from './notifications';\nimport * as feed from './feed';\nimport * as permissions from './permissions';\nimport * as reports from './reports';\nimport * as time from './time';\nimport * as torqueAndHookloadUtils from './torqueAndHookloadUtils';\nimport * as accuracy from './accuracy';\nimport {\n createNotification,\n removeNotification,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showWarningNotification,\n} from './notificationToasts';\nimport { showToast } from './devcenterToasts';\nimport { convertKeysToCamelCase, convertKeysToSnakeCase, getConvertKeys } from './convertKeys';\nimport * as dashboardReports from './dashboardReports';\nimport * as apps from './apps';\nimport * as themeVariables from './themeVariables';\nimport * as env from './env';\nimport * as fileExtension from './fileExtension';\nimport { jsonaDataFormatter } from './jsonaDataFormatter';\nimport * as bha from './bha';\nimport { getLocalStorageItem, updateLocalStorageItem } from './localStorage';\nimport { sharedDCStore } from './sharedDCStore';\nimport resolveWellHubSlug from './resolveWellHubSlug';\nimport { enableHighchartsDelayedTooltip } from './delayedHighcharts';\nimport { formatFileSize } from './formatFileSize';\nimport { getXAxis, getYAxis } from './charts';\n\nconst {\n convertArray,\n convertValue,\n getAllUnitTypes,\n getDefaultImperialUnit,\n getDefaultUnits,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitsByType,\n getUnitSingular,\n getUnitSystem,\n updateUserUnits,\n getUserUnits,\n subscribeForUserUnitsUpdates,\n getUniqueUnitsByType,\n} = convert;\n\nexport {\n StageDesignVActualUtils,\n accuracy,\n alerts,\n apps,\n audio,\n bha,\n casing,\n chartSeries,\n enableHighchartsDelayedTooltip,\n completion,\n components,\n convert,\n convertArray,\n convertKeysToCamelCase,\n convertKeysToSnakeCase,\n convertValue,\n createNotification,\n csvExport,\n dashboardReports,\n devcenter,\n drillstring,\n drillstringUtils,\n env,\n feed,\n fileExtension,\n fluidCheckUtils,\n formatting,\n ga,\n formatMentionText,\n getAllUnitTypes,\n getConvertKeys,\n getDefaultImperialUnit,\n getDefaultUnits,\n getLocalStorageItem,\n getUniqueUnitsByType,\n getUnitDescription,\n getUnitDisplay,\n getUnitPlural,\n getUnitPreference,\n getUnitSingular,\n getUnitSystem,\n getUnitsByType,\n getUserUnits,\n goals,\n goalsConfig,\n jsonaDataFormatter,\n lasParser,\n main,\n mapUnits,\n mapbox,\n metricsUtils,\n mobileDetect,\n nativeMessages,\n notifications,\n permissions,\n removeNotification,\n reports,\n resolveWellHubSlug,\n sharedDCStore,\n showErrorNotification,\n showInfoNotification,\n showNeutralNotification,\n showSuccessNotification,\n showToast,\n showWarningNotification,\n subscribeForUserUnitsUpdates,\n themeVariables,\n time,\n torqueAndHookloadUtils,\n updateLocalStorageItem,\n updateUserUnits,\n isSuggestionsListOpened,\n stripMentionMarkup,\n formatFileSize,\n};\n\nexport * from './delay';\nexport * from './downloadBlob';\nexport * from './getSingleAsset';\n\nexport * as chart from './charts';\n// Deprecated, reexported for backwards compatibility\n/**\n * @deprecated use `chart.getXAxis`\n */\nexport const getChartHorizontalAxis = getXAxis;\n\n/**\n * @deprecated use `chart.getYAxis`\n */\nexport const getChartVerticalAxis = getYAxis;\n\nexport * from './safeTemplate';\n"],"names":["convertArray","convert","convertValue","getAllUnitTypes","getDefaultImperialUnit","getDefaultUnits","getUnitDescription","getUnitDisplay","getUnitPlural","getUnitPreference","getUnitsByType","getUnitSingular","getUnitSystem","updateUserUnits","getUserUnits","subscribeForUserUnitsUpdates","getUniqueUnitsByType","getChartHorizontalAxis","getXAxis","getChartVerticalAxis","getYAxis"],"mappings":"8rDA+DEA,GAgBEC,EAAAA,aAfFC,GAeED,EAAAA,aAdFE,GAcEF,EAAAA,gBAbFG,GAaEH,EAAAA,uBAZFI,GAYEJ,EAAAA,gBAXFK,GAWEL,EAAAA,mBAVFM,GAUEN,EAAAA,eATFO,GASEP,EAAAA,cARFQ,GAQER,EAAAA,kBAPFS,GAOET,EAAAA,eANFU,GAMEV,EAAAA,gBALFW,GAKEX,EAAAA,cAJFY,GAIEZ,EAAAA,gBAHFa,GAGEb,EAAAA,aAFFc,GAEEd,EAAAA,6BADFe,GACEf,EADkBe,qBAyFTC,GAAyBC,EAAQA,SAKjCC,GAAuBC,EAAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppFooter.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppFooter/AppFooter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppFooter.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppFooter/AppFooter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;eA4Ba,IAAI;AAGnB,eAAO,MAAM,OAAO,UAAW,KAAK,4CAanC,CAAC;AAMF,eAAO,MAAM,kBAAkB,+CA0B9B,CAAC;AAQF,eAAO,MAAM,iBAAiB,+CAyB7B,CAAC;AAeF,eAAO,MAAM,gBAAgB,+CAiB5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AA+F9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppHeader/AppHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AA+F9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;eAiCa,IAAI;AAEnB,eAAO,MAAM,OAAO,UAAW,KAAK,4CAInC,CAAC;AAEF,eAAO,MAAM,aAAa,+CA0CzB,CAAC;AAOF,eAAO,MAAM,QAAQ,+CAIpB,CAAC;AAMF,eAAO,MAAM,WAAW,+CA4DvB,CAAC;AAOF,eAAO,MAAM,kBAAkB,+CAqB9B,CAAC;AAOF,eAAO,MAAM,8BAA8B,+CAkB1C,CAAC;AAOF,eAAO,MAAM,WAAW,+CA0BvB,CAAC;AAWF,eAAO,MAAM,eAAe,+CAU3B,CAAC;AAMF,eAAO,MAAM,cAAc,+CAoI1B,CAAC"}
|