cli_module_list
List available modules for a LaunchFrame project to identify components like feature-flags or multi-tenancy that can be added to enhance functionality.
Instructions
List all available modules that can be added to a LaunchFrame project (e.g., feature-flags, multi-tenancy).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the LaunchFrame project root |
Implementation Reference
- src/tools/cli.ts:280-287 (handler)The handler function for the 'cli_module_list' tool, which executes 'launchframe module:list' within the specified project path using execSync.
async ({ projectPath }) => { try { const output = execSync('launchframe module:list', { cwd: projectPath, encoding: 'utf8' }); return { content: [{ type: 'text', text: output || '(no output)' }] }; } catch (error: any) { return { content: [{ type: 'text', text: error.message }] }; } } - src/tools/cli.ts:274-288 (registration)The MCP tool registration for 'cli_module_list', including its description, input schema (projectPath), and the handler function definition.
server.tool( 'cli_module_list', 'List all available modules that can be added to a LaunchFrame project (e.g., feature-flags, multi-tenancy).', { projectPath: z.string().describe('Absolute path to the LaunchFrame project root'), }, async ({ projectPath }) => { try { const output = execSync('launchframe module:list', { cwd: projectPath, encoding: 'utf8' }); return { content: [{ type: 'text', text: output || '(no output)' }] }; } catch (error: any) { return { content: [{ type: 'text', text: error.message }] }; } } );