@lumeo-ui/mcp-server 3.4.0 → 3.5.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.
package/dist/index.js CHANGED
@@ -132,6 +132,16 @@ function toComponentMarkdown(c) {
132
132
  sections.push("## Enums", "", enumRows, "");
133
133
  if (c.events.length)
134
134
  sections.push("## Events", "", eventRows, "");
135
+ // Aggregate gotchas from the root component AND its sub-components — a
136
+ // gotcha is often declared on a sub-component (e.g. SheetContent carries
137
+ // the Sheet gotcha), so the root resource must surface those too.
138
+ const gotchaLines = [
139
+ ...(c.gotchas ?? []).map((g) => `- ${g}`),
140
+ ...Object.values(c.subComponents).flatMap((s) => (s.gotchas ?? []).map((g) => `- **${s.componentName}**: ${g}`)),
141
+ ];
142
+ if (gotchaLines.length) {
143
+ sections.push("## Gotchas", "", gotchaLines.join("\n"), "");
144
+ }
135
145
  if (Object.keys(c.subComponents).length)
136
146
  sections.push("## Sub-components", "", subRows, "");
137
147
  if (example)
@@ -180,6 +190,7 @@ function toGetPayload(c) {
180
190
  events: s.events,
181
191
  enums: s.enums,
182
192
  records: s.records,
193
+ gotchas: s.gotchas ?? [],
183
194
  }));
184
195
  return {
185
196
  name: c.name,
@@ -195,6 +206,7 @@ function toGetPayload(c) {
195
206
  enums: c.enums,
196
207
  records: c.records,
197
208
  cssVars: c.cssVars,
209
+ gotchas: c.gotchas ?? [],
198
210
  files: c.files,
199
211
  subComponents,
200
212
  examples: c.examples ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumeo-ui/mcp-server",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Model Context Protocol server for the Lumeo Blazor component library. Lets LLMs (Claude, Copilot, Cursor) author correct Lumeo markup.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",