@mohityadav0903/branintelle-mcp 2.0.1 → 2.0.2
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/components-data.cjs +157 -0
- package/components-data.js +207 -1091
- package/mcp-server.js +10 -5
- package/package.json +1 -1
- package/real-component-api.cjs.json +1207 -0
package/mcp-server.js
CHANGED
|
@@ -184,7 +184,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
184
184
|
if (name === 'get_component_docs') {
|
|
185
185
|
const componentNames = args?.components || [];
|
|
186
186
|
const docs = componentNames.map(name => {
|
|
187
|
-
|
|
187
|
+
// Normalize component name (accept both "CustomButton" and "CustomButtonComponent")
|
|
188
|
+
let lookupName = name;
|
|
189
|
+
if (!name.endsWith('Component')) {
|
|
190
|
+
lookupName = name + 'Component';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const comp = COMPONENTS_DATA[lookupName];
|
|
188
194
|
if (!comp) return { name, error: 'Component not found' };
|
|
189
195
|
|
|
190
196
|
return {
|
|
@@ -192,13 +198,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
192
198
|
category: comp.category,
|
|
193
199
|
selector: comp.selector,
|
|
194
200
|
description: comp.description,
|
|
195
|
-
import: `import { ${comp.name}
|
|
201
|
+
import: `import { ${comp.name} } from '@mohityadav0903/branintelle-ui-lib';`,
|
|
196
202
|
inputs: comp.inputs,
|
|
197
203
|
outputs: comp.outputs,
|
|
198
204
|
interfaces: comp.interfaces,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
designTokens: comp.tokens,
|
|
205
|
+
types: comp.types,
|
|
206
|
+
usageExample: comp.usageExample,
|
|
202
207
|
package: '@mohityadav0903/branintelle-ui-lib',
|
|
203
208
|
version: '1.7.0'
|
|
204
209
|
};
|
package/package.json
CHANGED