Usage
Options
| Option | Type | Default | Description |
|---|---|---|---|
name | string | — | Required. The name of the library |
directory | string | libs/<name> | The directory of the library |
libType | generic | plugin | adapter | tool-register | generic | The type of library to generate |
publishable | boolean | false | Generate a publishable library with package.json |
importPath | string | — | The npm scope/import path (required for publishable) |
tags | string | — | Comma-separated tags for the project |
Library Types
Generic (default)
A plain TypeScript library with a class and barrel export:Plugin
A FrontMCP plugin library extendingDynamicPlugin:
Adapter
A FrontMCP adapter library extendingDynamicAdapter:
Tool Register
A multi-tool library that exports an array of tools:Publishable Libraries
Generate a library with apackage.json for npm publishing: