@corva/ui 3.69.0-5 → 3.69.0-6

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 CHANGED
@@ -34,6 +34,16 @@ supports Claude Code, Cursor, and Codex CLI.
34
34
  - `get_diagnostics` - Get MCP server health metrics (memory, uptime, request stats, telemetry status)
35
35
  - `submit_feedback` - Send feedback about `@corva/ui` or this MCP server to the maintainers (docs gaps, wrong/missing
36
36
  props, search misses). The assistant can also call this on its own when it hits a gap.
37
+ - `get_migration_guide` - Get the component migration manifest (source -> target pairs, tiers, per-prop transforms)
38
+ - `get_dataset_types_guide` - Static reference for typing Corva dataset payloads from live field coverage: reading
39
+ `datasets_fields` output, mapping it to TypeScript, and wiring self-contained types into `@corva/ui` data callers.
40
+ Pairs with the `generate_dataset_types` prompt, which runs the full generate-and-stamp workflow.
41
+ - `get_corva_mcp_setup_guide` - Static connection reference for the Corva MCP data server: endpoints, per-client
42
+ registration commands, browser OAuth flow, and the verification call. Pairs with the `setup_corva_mcp` prompt, which
43
+ runs the guided end-to-end setup.
44
+ - `get_figma_to_code_guide` - Static method reference for implementing Figma designs with `@corva/ui`: source
45
+ precedence, capability-based component search across V2 and V1, token and prop discipline, and gap reporting. Pairs
46
+ with the `figma_to_code` prompt, which runs the strict guided workflow.
37
47
 
38
48
  ### Usage
39
49
 
@@ -101,6 +111,77 @@ mode (inside the `@corva/ui` repo itself) is auto-detected from `package.json` a
101
111
  /mcp__corva-ui__healthcheck
102
112
  ```
103
113
 
114
+ - `migrate_components` — Migrate `@corva/ui` components from an older form to their current recommended replacement
115
+ (e.g. V1 → V2, deprecated V2 → Next, and future generations). Discovers `@corva/ui` imports across the workspace,
116
+ proposes a tiered plan (🟢 automatic / 🟡 supervised / 🔴 assisted), edits on your confirmation, leaves
117
+ `// TODO(migrate)` breadcrumbs for non-mechanical changes, then typechecks/lints. Backed by the
118
+ `get_migration_guide` tool.
119
+
120
+ **Argument** (optional):
121
+
122
+ - `input` — Freeform. Empty or `all` = broad scan of the whole workspace. One or more component names (e.g.
123
+ `Button Modal`) = targeted. Natural language ("migrate our buttons and modals") is parsed for intent.
124
+
125
+ **Example invocations** (Claude Code):
126
+
127
+ ```
128
+ /mcp__corva-ui__migrate_components
129
+ /mcp__corva-ui__migrate_components Button Modal
130
+ /mcp__corva-ui__migrate_components all
131
+ ```
132
+
133
+ - `setup_corva_mcp` — Set up the remote **Corva MCP** (`corvian.corva.ai`) — the companion server for live Corva data
134
+ (separate from this docs server). Registers the remote HTTP server for Claude Code / Cursor / Codex CLI (any other
135
+ MCP client works via its own config) — globally for your user (default) or locally for the current project — walks
136
+ you through browser OAuth, and verifies with one read-only data call. Skips straight to verification when already
137
+ connected.
138
+
139
+ **Argument** (optional):
140
+
141
+ - `input` — Say `qa` to target the QA endpoint (`https://corvian.qa.corva.ai/mcp`); default is production
142
+ (`https://corvian.corva.ai/mcp`). Say `project` (or `local`) to register for the current project only; default is
143
+ user-global. Extra context (e.g. a preferred dataset for the verification call) is passed through.
144
+
145
+ **Example invocations** (Claude Code):
146
+
147
+ ```
148
+ /mcp__corva-ui__setup_corva_mcp
149
+ /mcp__corva-ui__setup_corva_mcp qa
150
+ /mcp__corva-ui__setup_corva_mcp project
151
+ ```
152
+
153
+ **Notes:** auth is a browser OAuth flow — no API keys are stored or asked for. Newly registered MCP servers become
154
+ visible only after a reconnect (`/mcp` in Claude Code) or a client restart; once reconnected the server is ready to
155
+ use — re-running the prompt afterwards is an optional just-in-case check that verifies the connection with one data
156
+ call. User-global registration makes the data server available in all your projects; project registration defaults
157
+ to user-private config files and writes repo-tracked ones (a shared `.mcp.json`, a project `.codex/config.toml`)
158
+ only after you explicitly accept that.
159
+
160
+ - `generate_dataset_types` — Generate a best-effort TypeScript payload type for a Corva dataset collection from its
161
+ **live field coverage**, read through the Corva MCP's dataset tools. Dataset payloads are dynamic, so the result is
162
+ a **hint, not a contract**: partially-present fields become optional, ambiguous ones become `unknown`, and the type
163
+ carries a provenance stamp (collection, environment, sample size, date). The emitted types are self-contained (an
164
+ app-local record wrapper plus the `Payload`) and plug into `@corva/ui` data callers with a cast at the response
165
+ boundary. Re-running it for a collection whose generated type already exists
166
+ reports drift against the stamp instead of silently overwriting.
167
+
168
+ **Argument** (optional; the assistant asks if missing):
169
+
170
+ - `input` — The collection to type, as `provider#dataset` (e.g. `corva#wits`) or a searchable name. Extra context is
171
+ passed through: `qa` reads the QA environment, an asset/company narrows sampling scope, and a target file or type
172
+ name directs where the type lands.
173
+
174
+ **Example invocations** (Claude Code):
175
+
176
+ ```
177
+ /mcp__corva-ui__generate_dataset_types corva#wits
178
+ /mcp__corva-ui__generate_dataset_types corva#completion.wits into src/apps/frac/types.ts as FracWitsPayload
179
+ ```
180
+
181
+ **Prerequisite:** the remote Corva MCP must be connected in the same client session — run
182
+ `/mcp__corva-ui__setup_corva_mcp` first if it is not. The prompt reads real data to compute the shape, so sampling
183
+ stays scoped and minimal, and raw sample values are never pasted into committed code.
184
+
104
185
  ## Setup
105
186
 
106
187
  > **Just generated a fresh project with the latest `create-corva-app`?** MCP is already configured for Claude Code,