mcp-svg-to-fonts
v1.4.1MCP Server para generar fuentes desde archivos SVG
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate-font-from-svgs
Generate an icon font from SVG files in a directory
| Parameter | Type | Description |
|---|---|---|
directory * | string | Directory containing SVG files |
cssPrefix | string | CSS class prefix (default: "icon") |
fontName | string | Font name (default: "IconFont") |
formats | array | Font formats to generate |
generateTypes | boolean | Generate TypeScript types (default: true) |
outputDir | string | Output directory (default: "./fonts") |
extend-existing-font
Add new SVG icons to an existing font while preserving existing icons and unicode values
| Parameter | Type | Description |
|---|---|---|
existingFontDir * | string | Directory containing existing font files (.css and font files) |
newSvgDirectory * | string | Directory containing new SVG files to add |
originalSvgDirectory * | string | Directory containing the original SVG files used to create the existing font |
cssPrefix | string | CSS class prefix (will be detected from existing CSS if not provided) |
fontName | string | Font name (will be detected from existing files if not provided) |
generateTypes | boolean | Generate TypeScript types (default: true) |
outputDir | string | Output directory (default: same as existing font) |
extend-font-advanced
Add new SVG icons to an existing font by extracting and preserving original glyphs from TTF file
| Parameter | Type | Description |
|---|---|---|
existingFontDir * | string | Directory containing existing font files (.css and .ttf files) |
newSvgDirectory * | string | Directory containing new SVG files to add |
cssPrefix | string | CSS class prefix (will be detected from existing CSS if not provided) |
fontName | string | Font name (will be detected from existing files if not provided) |
generateTypes | boolean | Generate TypeScript types (default: true) |
outputDir | string | Output directory (default: same as existing font) |
preserveMetrics | boolean | Preserve original font metrics (default: true) |
list-svgs
List all SVG files in a directory
| Parameter | Type | Description |
|---|---|---|
directory * | string | Directory to explore |