@seliseblocks/mcp-server
Version:
A Model Context Protocol (MCP) server for managing schemas in SELISE Blocks platform, built with TypeScript.
45 lines • 1.7 kB
JavaScript
const generate_react_module = {
name: 'generate_react_module',
description: 'Generate a complete React module with list page, add form, and navigation following the Inventory pattern',
inputSchema: {
type: 'object',
properties: {
moduleName: { type: 'string' },
displayName: { type: 'string' },
route: { type: 'string' },
fields: {
type: 'array',
items: {
type: 'object',
properties: {
name: { type: 'string' },
displayName: { type: 'string' },
type: { type: 'string', enum: ['string', 'number', 'boolean', 'date', 'email', 'url'] },
required: { type: 'boolean' },
validation: { type: 'string' }
}
}
},
features: {
type: 'object',
properties: {
list: { type: 'boolean' },
add: { type: 'boolean' },
edit: { type: 'boolean' },
delete: { type: 'boolean' },
details: { type: 'boolean' }
}
},
navigation: {
type: 'object',
properties: {
addToMenu: { type: 'boolean' },
icon: { type: 'string' },
position: { type: 'string', enum: ['after-inventory', 'after-iam', 'custom'] }
}
}
}
},
};
export default generate_react_module;
//# sourceMappingURL=generate_react_module.js.map