@idealyst/mcp-server 1.2.103 → 1.2.105
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/{chunk-74TE7CY7.js → chunk-NRM3KHHB.js} +6 -13
- package/dist/chunk-NRM3KHHB.js.map +1 -0
- package/dist/index.cjs +5 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/index.cjs +5 -12
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-74TE7CY7.js.map +0 -1
|
@@ -67,13 +67,13 @@ var searchComponentsDefinition = {
|
|
|
67
67
|
};
|
|
68
68
|
var getComponentTypesDefinition = {
|
|
69
69
|
name: "get_component_types",
|
|
70
|
-
description: "Get TypeScript type definitions for a specific component directly from the source. Returns the actual TypeScript interface and/or JSON schema.
|
|
70
|
+
description: "Get TypeScript type definitions for a specific component directly from the source. Returns the actual TypeScript interface and/or JSON schema.",
|
|
71
71
|
inputSchema: {
|
|
72
72
|
type: "object",
|
|
73
73
|
properties: {
|
|
74
74
|
component: {
|
|
75
75
|
type: "string",
|
|
76
|
-
description: "The name of the component (e.g., 'Button', 'Card', 'Input')
|
|
76
|
+
description: "The name of the component (e.g., 'Button', 'Card', 'Input')"
|
|
77
77
|
},
|
|
78
78
|
format: {
|
|
79
79
|
type: "string",
|
|
@@ -11315,7 +11315,7 @@ This server has tools for every aspect of the framework. **Always look up the AP
|
|
|
11315
11315
|
### Workflow (be efficient \u2014 minimize tool calls)
|
|
11316
11316
|
|
|
11317
11317
|
1. **Start here** \u2014 this intro covers conventions and gotchas
|
|
11318
|
-
2. **Look up components** \u2014 call \`get_component_types\` for EVERY component you plan to use.
|
|
11318
|
+
2. **Look up components** \u2014 call \`get_component_types\` for EVERY component you plan to use. Call it for each component you need. (Card has NO compound components \u2014 no Card.Content/Card.Header)
|
|
11319
11319
|
3. **Look up packages** \u2014 call the dedicated \`get_*_guide\` tool with topic \`api\` for each \`@idealyst/*\` package
|
|
11320
11320
|
4. **Check recipes** \u2014 call \`search_recipes\` to find ready-made patterns for common screens
|
|
11321
11321
|
5. **Search icons ONCE** \u2014 combine all needed icon terms into ONE \`search_icons\` call (e.g., \`"home settings check timer calendar"\`)
|
|
@@ -11324,7 +11324,7 @@ This server has tools for every aspect of the framework. **Always look up the AP
|
|
|
11324
11324
|
### Component Tools
|
|
11325
11325
|
- \`list_components\` / \`search_components\` \u2014 Discover available components
|
|
11326
11326
|
- \`get_component_docs\` \u2014 Component features and best practices
|
|
11327
|
-
- \`get_component_types\` \u2014 **TypeScript prop interfaces**
|
|
11327
|
+
- \`get_component_types\` \u2014 **TypeScript prop interfaces** for a component
|
|
11328
11328
|
- \`get_component_examples_ts\` \u2014 Type-checked code examples
|
|
11329
11329
|
- \`search_icons\` \u2014 Find Material Design icon names (7,447 available). **Batch your needs**: search once with multiple terms like \`"home settings user check"\` rather than making separate calls per icon
|
|
11330
11330
|
|
|
@@ -11423,7 +11423,7 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
|
|
|
11423
11423
|
### Imports & Styling
|
|
11424
11424
|
16. **Never** import from \`react-native\` for UI \u2014 no \`TouchableOpacity\`, \`FlatList\`, \`ScrollView\`, \`Animated\`, \`Dimensions\`.
|
|
11425
11425
|
17. **Never** import from \`react-native-unistyles\` \u2014 use \`@idealyst/theme\` (\`configureThemes\`, \`ThemeSettings\`, \`useTheme\`).
|
|
11426
|
-
18. **
|
|
11426
|
+
18. **useTheme()** returns the Theme object **directly** (NOT wrapped): \`const theme = useTheme();\`. Do NOT destructure: \`const { theme } = useTheme()\` causes TS2339. Use theme tokens for colors and spacing: \`style={{ padding: theme.spacing.md, backgroundColor: theme.colors.surface.primary }}\`.
|
|
11427
11427
|
|
|
11428
11428
|
### React 19 TypeScript
|
|
11429
11429
|
- **useRef** requires an initial argument: \`useRef<T>(null)\` \u2014 NOT \`useRef<T>()\`. Omitting the argument causes TS2554. For non-null refs use: \`useRef<number>(0)\`, \`useRef<string[]>([])\`.
|
|
@@ -19511,13 +19511,6 @@ function postProcessComponentTypes(componentName, result) {
|
|
|
19511
19511
|
result.usageNote = 'Card is a SIMPLE CONTAINER \u2014 there are NO compound components. Do NOT use Card.Content, Card.Header, Card.Body, Card.Footer, Card.Title \u2014 they do NOT exist and will cause TS2339. Just put children directly inside <Card>...</Card>. Example: <Card padding="md"><Text>Title</Text><Text>Body</Text></Card>';
|
|
19512
19512
|
}
|
|
19513
19513
|
}
|
|
19514
|
-
const resultStr = JSON.stringify(result);
|
|
19515
|
-
if (resultStr.includes("IconName") || resultStr.includes("mdi:")) {
|
|
19516
|
-
const iconNote = "\n\nICON NAME FORMAT: The `name` prop type shows `IconName | \"mdi:...\"` variants. Both formats work in JSX props. However, when you store icon names in variables, type them as `IconName` and use BARE names (without 'mdi:' prefix):\n```tsx\nimport type { IconName } from '@idealyst/components';\nconst icon: IconName = 'home'; // CORRECT\nconst icon: IconName = 'mdi:home'; // WRONG \u2014 TS error\nconst icon: string = 'home'; // WRONG \u2014 won't match IconName props\n```\nAlways use bare names like 'home', 'check-circle', 'arrow-left' \u2014 never 'mdi:home'.";
|
|
19517
|
-
if (typeof result === "object" && result !== null) {
|
|
19518
|
-
result.iconNameNote = iconNote;
|
|
19519
|
-
}
|
|
19520
|
-
}
|
|
19521
19514
|
return result;
|
|
19522
19515
|
}
|
|
19523
19516
|
function getComponentExamplesTs(args) {
|
|
@@ -20275,4 +20268,4 @@ export {
|
|
|
20275
20268
|
toolHandlers,
|
|
20276
20269
|
callTool
|
|
20277
20270
|
};
|
|
20278
|
-
//# sourceMappingURL=chunk-
|
|
20271
|
+
//# sourceMappingURL=chunk-NRM3KHHB.js.map
|