mcp-server

v5.17.0
@lumeo-ui/mcp-server Checked 4 days ago Published 13 days ago

Model Context Protocol server for the Lumeo Blazor component library.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lumeo_list_components

List all 169 Lumeo components, optionally filtered by category or query. Returns { name, category, subcategory, description, nugetPackage } per component. Categories: AI, Dashboard, Data Display, Drag & Drop, Feedback, Forms, Layout, Marketing, Motion, Navigation, Overlay, Typography, Utility.

ParameterTypeDescription
categorystringFilter by category (AI, Dashboard, Data Display, Drag & Drop, Feedback, Forms, Layout, Marketing, Motion, Navigation, Overlay, Typography, Utility).
querystringFree-text query matched against name, category, description.

lumeo_get_component

Get the COMPLETE schema for a Lumeo component: every [Parameter] (name, type, default, XML doc summary), nested enums and records, EventCallback events, sub-components (e.g. Dialog → DialogContent, DialogHeader, DialogTrigger, ...), CSS variables, source files, and a hand-curated Razor example when available. Sourced from the actual Razor source via Roslyn — always in sync with the library.

ParameterTypeDescription
name *stringComponent name (e.g. "Button", "DataGrid", "Sheet"). Case-insensitive.

lumeo_get_a11y

Get the ACCESSIBILITY contract for a Lumeo component: the ARIA roles and aria-* attributes it renders, the keyboard keys it handles, whether it manages focus, and whether that a11y/keyboard behaviour is covered by tests. Use it to verify a component's accessibility before relying on it, or to know which keys to exercise. Extracted from the actual Razor source by RegistryGen.

ParameterTypeDescription
name *stringComponent name (e.g. "Dialog", "Tabs", "Select"). Case-insensitive.

lumeo_list_services

List all 33 Lumeo SERVICE-LAYER public API types — services (OverlayService, ThemeService, ComponentInteropService), options records (OverlayOptions, AlertDialogOptions), interfaces (IResponsiveService, IThemeService), the fluent ThemeBuilder, and global enums (Size, Density, Side, Align, Orientation, Breakpoint, ThemeMode, …). These live in plain C#, not Razor. Returns { name, kind, summary } per type. Use lumeo_get_service for the full API.

lumeo_get_service

Get the COMPLETE public API for a Lumeo service-layer type: its summary, public properties (name, type, default, XML doc), public methods (signature, return type, doc), and enum values. Covers OverlayService (ShowDialogAsync/ShowSheetAsync/ShowAlertDialogAsync), OverlayOptions (ScrollableBody, MobileFullscreen, …), ThemeBuilder, IResponsiveService, AlertDialogOptions, and the global enums. Sourced from the actual C# source via Roslyn.

ParameterTypeDescription
name *stringService/type name (e.g. "OverlayService", "OverlayOptions", "ThemeBuilder", "Size"). Case-insensitive.

lumeo_get_example

Get working Razor example snippet(s) for a component — the exact code behind the docs-site demos. Returns an array of { title, code }. Use this before writing markup for an unfamiliar component.

ParameterTypeDescription
name *stringComponent name (e.g. "Tabs", "DataGrid"). Case-insensitive.

lumeo_get_install

Everything needed to actually USE a component: NuGet package + `dotnet add` line, `@using` imports, DI registration (builder.Services.AddLumeo…), host-page <script>/<link> includes, sub-components, and gotchas (portal components needing theme classes on <body>, OverlayProvider, required params).

ParameterTypeDescription
name *stringComponent name. Case-insensitive.

lumeo_validate_markup

Validate a snippet of Razor that uses Lumeo components BEFORE compiling it. Checks: do the components exist? are parameter names valid (catches hallucinated APIs)? are enum values legal? are sub-components nested inside their required parent (e.g. <TabsContent> inside <Tabs>, <DialogContent> inside <Dialog>)? Returns { ok, issues: [{ severity, component, message }] }. Pass-through HTML/data-/aria- attributes are allowed.

ParameterTypeDescription
markup *stringRazor markup to validate (the component/markup portion — @code blocks are ignored).

lumeo_get_theme_tokens

List all 58 Lumeo theme tokens (CSS custom properties driving colours + radii). These are the ONLY colours you should use — as Tailwind-style utilities like `bg-primary`, `text-foreground`, `border-border`, `bg-card`, `text-muted-foreground`, `ring-ring`. Never raw hex/hsl, never `dark:` prefixes (dark mode is a CSS-variable swap). Returns { token, cssVar } pairs.

lumeo_list_patterns

List all 21 Lumeo "patterns" / "blocks" — full-page composed examples (dashboard, auth, chat, kanban, mail, settings, …) built entirely from Lumeo components. Returns { title, key, route, description }. Use lumeo_get_pattern for the full Razor source of one.

lumeo_get_pattern

Get the complete Razor source of a Lumeo pattern/block (a full-page composed example). Returns title, description, route, and the demo code snippet(s). Great as a starting skeleton for a real page.

ParameterTypeDescription
key *stringPattern key (kebab-case, from lumeo_list_patterns) — e.g. "dashboard", "authentication", "chat".

lumeo_changelog

Current Lumeo package version, when the API schema was generated, and a link to the full changelog. Use to check which version's API surface this MCP reflects.