@iconaut/mcp 2.0.0 → 2.1.0
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/README.md +2 -2
- package/SKILL.md +4 -2
- package/icons.json.br +0 -0
- package/package.json +1 -1
- package/server.js +8 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @iconaut/mcp
|
|
2
2
|
|
|
3
|
-
An [MCP](https://modelcontextprotocol.io) server for the 1,
|
|
3
|
+
An [MCP](https://modelcontextprotocol.io) server for the 1,680 free Iconaut icons. It
|
|
4
4
|
lets a coding agent look an icon up instead of guessing its name, and hands back the exact SVG,
|
|
5
5
|
the `iconaut-react` import and the shadcn/ui command.
|
|
6
6
|
|
|
@@ -37,7 +37,7 @@ copy it to `.claude/skills/iconaut-icons/SKILL.md` in your project or `~/.claude
|
|
|
37
37
|
| Tool | What it does |
|
|
38
38
|
|---|---|
|
|
39
39
|
| `search_icons` | Search by name, keyword or meaning (`"settings"`, `"arrow left"`, `"delete"`). Filter by `category` or `style`. |
|
|
40
|
-
| `get_icon` | One icon by name: the SVG at 16, 20 or 24px in line, solid or
|
|
40
|
+
| `get_icon` | One icon by name: the SVG at 16, 20 or 24px in line, solid, duo or duotone, the React import, the shadcn command and the CDN URL. |
|
|
41
41
|
| `list_categories` | The 27 categories and how many icons each holds. |
|
|
42
42
|
|
|
43
43
|
## Tuned for each size
|
package/SKILL.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iconaut-icons
|
|
3
|
-
description: "Add UI icons to a web or React Native project with the free, MIT-licensed Iconaut set (1,
|
|
3
|
+
description: "Add UI icons to a web or React Native project with the free, MIT-licensed Iconaut set (1,680 icons in line, two-tone, duotone and fill, drawn natively at 16, 20 and 24px). Use whenever the task needs an icon in code: a button, nav item, menu, empty state, status badge, form field, toolbar or shadcn/ui component, or the user asks for an SVG icon, an icon import, or to replace lucide/heroicons with Iconaut. Uses the Iconaut MCP server to look icons up instead of guessing names."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Iconaut icons
|
|
7
7
|
|
|
8
|
-
Iconaut is a free icon
|
|
8
|
+
Iconaut is a free icon library (MIT) for product UI. The `@iconaut/mcp` server searches it and
|
|
9
9
|
returns exact SVG, imports and install commands, so you never have to guess an icon name.
|
|
10
10
|
|
|
11
11
|
## Set up the MCP server (once)
|
|
@@ -57,6 +57,8 @@ Other values return the nearest native drawing; set the rendered width and heigh
|
|
|
57
57
|
- **duo**: a 25% tint under the line, for feature cards, empty states and illustrations.
|
|
58
58
|
Not every icon has duo (marks like arrows and checks don't); `search_icons` shows which
|
|
59
59
|
styles each icon has.
|
|
60
|
+
- **duotone**: fills only, a 25% layer under a full-strength one, with no stroke. For
|
|
61
|
+
larger, more illustrative spots: feature cards, onboarding, empty states.
|
|
60
62
|
|
|
61
63
|
Keep one style per context. Pairing `line` for inactive with `solid` for active is the
|
|
62
64
|
intended use; mixing styles at random in one toolbar is not.
|
package/icons.json.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -49,7 +49,7 @@ function data() {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
const pascal = (n) => n.split('-').map((p) => p[0].toUpperCase() + p.slice(1)).join('');
|
|
52
|
-
const SUFFIX = { line: '', solid: 'Solid', duo: 'Duo' };
|
|
52
|
+
const SUFFIX = { line: '', solid: 'Solid', duo: 'Duo', duotone: 'Duotone' };
|
|
53
53
|
const component = (name, style) => pascal(name) + SUFFIX[style];
|
|
54
54
|
const slug = (name, style) => name + (style === 'line' ? '' : '-' + style);
|
|
55
55
|
// The sizes come in two detail tiers (design/GRID.md): 16 draws a simplified version, 20 and 24
|
|
@@ -151,15 +151,15 @@ function suggest(name) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
// ── Tools ──────────────────────────────────────────────────────────────────────────────────
|
|
154
|
-
const STYLE_ENUM = ['line', 'solid', 'duo'];
|
|
154
|
+
const STYLE_ENUM = ['line', 'solid', 'duo', 'duotone'];
|
|
155
155
|
const TOOLS = [
|
|
156
156
|
{
|
|
157
157
|
name: 'search_icons',
|
|
158
158
|
title: 'Search Iconaut icons',
|
|
159
159
|
description:
|
|
160
|
-
'Search the free Iconaut icon
|
|
160
|
+
'Search the free Iconaut icon library (MIT) by name, keyword or meaning, e.g. "settings", ' +
|
|
161
161
|
'"arrow left", "delete", "notification". Returns icon names ranked by relevance, with ' +
|
|
162
|
-
'their category, the styles each comes in (line, solid, duo) and the React component ' +
|
|
162
|
+
'their category, the styles each comes in (line, solid, duo, duotone) and the React component ' +
|
|
163
163
|
'names. Call this before using an icon name you have not looked up: guessed names often ' +
|
|
164
164
|
'do not exist. Leave query empty and pass a category to list that category.',
|
|
165
165
|
inputSchema: {
|
|
@@ -186,7 +186,7 @@ const TOOLS = [
|
|
|
186
186
|
type: 'object',
|
|
187
187
|
properties: {
|
|
188
188
|
name: { type: 'string', description: 'Exact icon name, e.g. "settings" or "arrow-left". Find it with search_icons.' },
|
|
189
|
-
style: { type: 'string', enum: STYLE_ENUM, default: 'line', description: 'line (stroked), solid (filled)
|
|
189
|
+
style: { type: 'string', enum: STYLE_ENUM, default: 'line', description: 'line (stroked), solid (filled), duo (two-tone: 25% tint under the line) or duotone (fills only: a 25% layer under a full one).' },
|
|
190
190
|
size: { type: 'integer', default: 24, description: 'Pixel size. 16, 20 and 24 are native sizes; any other value returns the nearest one.' },
|
|
191
191
|
},
|
|
192
192
|
required: ['name'],
|
|
@@ -196,7 +196,7 @@ const TOOLS = [
|
|
|
196
196
|
{
|
|
197
197
|
name: 'list_categories',
|
|
198
198
|
title: 'List Iconaut categories',
|
|
199
|
-
description: 'List the categories of the free Iconaut icon
|
|
199
|
+
description: 'List the categories of the free Iconaut icon library, with how many icons each holds.',
|
|
200
200
|
inputSchema: { type: 'object', properties: {} },
|
|
201
201
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
202
202
|
},
|
|
@@ -263,6 +263,7 @@ const handlers = {
|
|
|
263
263
|
`CDN: ${CDN}/${icon.category}/${name}/${size}/${style}.svg`,
|
|
264
264
|
`Page: ${SITE}/icon/${name}`,
|
|
265
265
|
style === 'duo' ? '\nDuo: the tint is the .secondary path (fill-opacity 0.25), the line is g.primary; style either with CSS.' : null,
|
|
266
|
+
style === 'duotone' ? '\nDuotone: two fills, .secondary at fill-opacity 0.25 under .primary; no stroke. Style either with CSS.' : null,
|
|
266
267
|
].filter((x) => x !== null).join('\n');
|
|
267
268
|
},
|
|
268
269
|
|
|
@@ -297,7 +298,7 @@ function handle(msg) {
|
|
|
297
298
|
capabilities: { tools: { listChanged: false } },
|
|
298
299
|
serverInfo: { name: 'iconaut', title: 'Iconaut icons', version: PKG.version },
|
|
299
300
|
instructions:
|
|
300
|
-
'Iconaut is an icon
|
|
301
|
+
'Iconaut is an icon library in line, solid, two-tone and duotone on a 24px grid, with three native sizes (16, 20 and 24px), ' +
|
|
301
302
|
'each with its own stroke weight, and a simplified drawing at 16px. ' +
|
|
302
303
|
'This server covers the free MIT set. Look icons up with search_icons before naming one, then use get_icon ' +
|
|
303
304
|
'for the SVG or the iconaut-react import. Do not invent icon names.',
|