@mastra/mcp-apps-components 0.0.0 → 0.1.0-alpha.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.
@@ -0,0 +1,15 @@
1
+ import type { z } from 'zod';
2
+ import { dashboardRendererInputSchema } from './apps/dashboard-renderer/input.js';
3
+ export { dashboardRendererInputSchema };
4
+ export { DASHBOARD_PINNED_WIDGETS_CONTEXT_KEY, DASHBOARD_WIDGET_PIN_NOTIFICATION, dashboardWidgetPinNotificationParamsSchema, } from './apps/dashboard-renderer/pin.js';
5
+ export type { DashboardWidgetPinNotificationParams } from './apps/dashboard-renderer/pin.js';
6
+ /** The `structuredContent` a tool returns to drive the dashboard app. */
7
+ export type DashboardRendererStructuredContent = z.input<typeof dashboardRendererInputSchema>;
8
+ /**
9
+ * Renders a Mastra dashboard definition with live metrics. Link a tool to its `ui://` URI and use
10
+ * `dashboardRendererInputSchema` as the tool's output schema. The app reads metrics through
11
+ * `observabilityAppTools` from `@mastra/mcp-apps-components/observability-tools`, which must be
12
+ * registered on the same server.
13
+ */
14
+ export declare const dashboardRendererApp: ({ name, description, }?: import("./define-mcp-app-resource").McpAppResourceOptions) => import("./types").McpAppResource;
15
+ //# sourceMappingURL=dashboard-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-renderer.d.ts","sourceRoot":"","sources":["../src/dashboard-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAG/E,OAAO,EAAE,4BAA4B,EAAE,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,GAC3C,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AAE1F,yEAAyE;AACzE,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,0HAG/B,CAAC"}