@corva/ui 3.62.0-6 → 3.62.0-7

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
@@ -92,6 +92,15 @@ mode (inside the `@corva/ui` repo itself) is auto-detected from `package.json` a
92
92
  /mcp__corva-ui__feedback the Button docs are missing the `variant` prop
93
93
  ```
94
94
 
95
+ - `healthcheck` — Check the health of this MCP server: uptime, memory usage, request statistics, telemetry status, and
96
+ project identity. Runs the `get_diagnostics` tool and presents the report. **Takes no arguments.**
97
+
98
+ **Example invocation** (Claude Code):
99
+
100
+ ```
101
+ /mcp__corva-ui__healthcheck
102
+ ```
103
+
95
104
  ## Setup
96
105
 
97
106
  > **Just generated a fresh project with the latest `create-corva-app`?** MCP is already configured for Claude Code,
@@ -540,12 +549,15 @@ users should use the [Native Windows (nvm-windows)](#native-windows-nvm-windows)
540
549
  Ask your AI agent a question about a `@corva/ui` component (e.g., "How do I use the Button component from @corva/ui?") —
541
550
  it should call one of the MCP tools and return real documentation.
542
551
 
543
- For server health (uptime, memory, request stats, telemetry status), call the `get_diagnostics` tool. In Claude Code:
552
+ For server health (uptime, memory, request stats, telemetry status), run the healthcheck slash command in Claude Code:
544
553
 
545
554
  ```
546
- Use the get_diagnostics tool from corva-ui MCP
555
+ /mcp__corva-ui__healthcheck
547
556
  ```
548
557
 
558
+ This runs the `get_diagnostics` tool under the hood. Clients without slash-command support can call the
559
+ `get_diagnostics` tool directly instead.
560
+
549
561
  If the AI doesn't pick up the MCP tools, restart your IDE / reload MCP servers, and confirm the config file is at the
550
562
  location listed in the [Local Setup](#local-setup-recommended) table for your IDE.
551
563
 
@@ -560,8 +572,9 @@ contain content from your queries (file paths, source snippets, component names,
560
572
  alongside the documentation responses. This includes anything you send via the `feedback` prompt / `submit_feedback`
561
573
  tool — the free-text message is recorded verbatim and is intended for the `@corva/ui` maintainers.
562
574
 
563
- To check whether telemetry is currently active for your install, call the `get_diagnostics` tool it reports the
564
- resolved telemetry status. Telemetry is fully disabled when no valid endpoint is configured.
575
+ To check whether telemetry is currently active for your install, run `/mcp__corva-ui__healthcheck` (or call the
576
+ `get_diagnostics` tool directly) — it reports the resolved telemetry status. Telemetry is fully disabled when no valid
577
+ endpoint is configured.
565
578
 
566
579
  ## FAQ
567
580
 
@@ -231,7 +231,7 @@ const validateDsn = (dsn) => {
231
231
 
232
232
  const MCP_SERVER_VERSION = '1.3.0';
233
233
 
234
- var version = "3.62.0-6";
234
+ var version = "3.62.0-7";
235
235
 
236
236
  const CORVA_UI_VERSION = version;
237
237
 
@@ -101532,6 +101532,27 @@ Do the following:
101532
101532
  };
101533
101533
  };
101534
101534
 
101535
+ const healthcheckPromptName = 'healthcheck';
101536
+ const healthcheckPromptTitle = 'Healthcheck';
101537
+ const healthcheckPromptDescription = `Check the health of this MCP server — uptime, memory usage, request statistics, telemetry status, and project identity. Surfaces as /mcp__corva-ui__healthcheck.
101538
+
101539
+ Takes no arguments.`;
101540
+ const healthcheckPromptArgsSchema = {};
101541
+ const handleHealthcheck = () => {
101542
+ const text = `The user wants to check the health of this MCP server.
101543
+
101544
+ Call \`mcp__corva-ui__${diagnosticsToolName}\` (it takes no arguments) and present the returned health report — uptime, memory usage, request statistics, telemetry status, and project identity — to the user.`;
101545
+ return {
101546
+ description: healthcheckPromptDescription,
101547
+ messages: [
101548
+ {
101549
+ role: 'user',
101550
+ content: { type: 'text', text },
101551
+ },
101552
+ ],
101553
+ };
101554
+ };
101555
+
101535
101556
  const readJsonField = (filePath, ...keys) => {
101536
101557
  try {
101537
101558
  let value = JSON.parse(readFileSync(filePath, 'utf-8'));
@@ -102013,6 +102034,14 @@ class CorvaUiMcpServer {
102013
102034
  const parentContext = extractContextFromMeta(extra?._meta);
102014
102035
  return this.executePromptWithObservability(feedbackPromptName, args, () => handleFeedback(args), { parentContext, requestId: extra?.requestId });
102015
102036
  });
102037
+ this.server.registerPrompt(healthcheckPromptName, {
102038
+ title: healthcheckPromptTitle,
102039
+ description: healthcheckPromptDescription,
102040
+ argsSchema: healthcheckPromptArgsSchema,
102041
+ }, (args, extra) => {
102042
+ const parentContext = extractContextFromMeta(extra?._meta);
102043
+ return this.executePromptWithObservability(healthcheckPromptName, args, () => handleHealthcheck(), { parentContext, requestId: extra?.requestId });
102044
+ });
102016
102045
  }
102017
102046
  async run() {
102018
102047
  const connectTimer = this.mcpLogger.time('transport-connect');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.62.0-6",
3
+ "version": "3.62.0-7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "keywords": [