@patine-ui/mcp 0.4.1 → 0.4.3
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/LICENSE +1 -1
- package/package.json +3 -3
- package/src/pro.js +5 -3
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patine-ui/mcp",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "MCP server
|
|
3
|
+
"version": "0.4.3",
|
|
4
|
+
"description": "MCP server that lets Claude Code, Cursor and other coding agents search the patine-ui docs and icons for the version in your project.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"author": "Patine <support@patine.dev>",
|
|
6
|
+
"author": "Patine UI <support@patine.dev>",
|
|
7
7
|
"homepage": "https://patine.dev/docs/resources/mcp",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
package/src/pro.js
CHANGED
|
@@ -6,7 +6,7 @@ const PRO = require('./pro.json');
|
|
|
6
6
|
const PRICING = 'https://patine.dev/pricing';
|
|
7
7
|
|
|
8
8
|
/** How to get a Pro item, under every Pro result. */
|
|
9
|
-
const PRO_NOTE = `Pro items need a Patine Pro license: ${PRICING}.
|
|
9
|
+
const PRO_NOTE = `Pro items need a Patine Pro license: ${PRICING}. Install one with \`npx shadcn add @patine-pro/<item>\` (its docs page names the item), then import it from '@/components/patine/<item>' (for example '@/components/patine/kanban'). There is no @patine-ui/pro package.`;
|
|
10
10
|
|
|
11
11
|
/** A docs search's Pro matches: charts, blocks, app templates and Pro components, with what they are and where to read more. */
|
|
12
12
|
const searchProPages = (query, limit = 3, exclude = []) =>
|
|
@@ -18,10 +18,12 @@ const searchProPages = (query, limit = 3, exclude = []) =>
|
|
|
18
18
|
/** An icon search's Pro matches: icons beyond the free set, and brand logos. */
|
|
19
19
|
const searchProIcons = (query, limit = 10) => {
|
|
20
20
|
const icons = searchIcons(query, limit, PRO.icons).map(
|
|
21
|
-
(icon) =>
|
|
21
|
+
(icon) =>
|
|
22
|
+
`- [Pro] ${icon.name} (${icon.category}): ${icon.tags}. <Icon name="${icon.name}" /> from '@/components/patine/icons' (npx shadcn add @patine-pro/icons)`
|
|
22
23
|
);
|
|
23
24
|
const brands = searchIcons(query, limit, PRO.brands).map(
|
|
24
|
-
(brand) =>
|
|
25
|
+
(brand) =>
|
|
26
|
+
`- [Pro brand logo] ${brand.name} (${brand.category}). <BrandIcon name="${brand.name}" /> from '@/components/patine/brands' (npx shadcn add @patine-pro/brands)`
|
|
25
27
|
);
|
|
26
28
|
return [...brands, ...icons].slice(0, limit);
|
|
27
29
|
};
|