@webspire/mcp 0.8.1 → 0.9.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 +11 -0
- package/data/fonts.json +582 -0
- package/data/registry.json +8939 -434
- package/dist/registration.d.ts +2 -2
- package/dist/registration.js +439 -304
- package/dist/registry.d.ts +5 -1
- package/dist/registry.js +17 -0
- package/dist/search.d.ts +11 -2
- package/dist/search.js +397 -266
- package/dist/types.d.ts +77 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -152,10 +152,87 @@ export interface TemplateEntry {
|
|
|
152
152
|
};
|
|
153
153
|
html: string;
|
|
154
154
|
}
|
|
155
|
+
export interface FontEntry {
|
|
156
|
+
id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
category: string;
|
|
159
|
+
npm: string;
|
|
160
|
+
variable: string | null;
|
|
161
|
+
css: string;
|
|
162
|
+
weights: number[];
|
|
163
|
+
license: string;
|
|
164
|
+
source: string;
|
|
165
|
+
characteristics: Record<string, unknown>;
|
|
166
|
+
tones: string[];
|
|
167
|
+
avoidForTones: string[];
|
|
168
|
+
domains: string[];
|
|
169
|
+
roles: {
|
|
170
|
+
heading: number;
|
|
171
|
+
body: number;
|
|
172
|
+
mono: number;
|
|
173
|
+
ui: number;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export interface FontRecommendation {
|
|
177
|
+
heading: {
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
npm: string;
|
|
181
|
+
css: string;
|
|
182
|
+
reason: string;
|
|
183
|
+
};
|
|
184
|
+
body: {
|
|
185
|
+
id: string;
|
|
186
|
+
name: string;
|
|
187
|
+
npm: string;
|
|
188
|
+
css: string;
|
|
189
|
+
reason: string;
|
|
190
|
+
};
|
|
191
|
+
mono: {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
npm: string;
|
|
195
|
+
css: string;
|
|
196
|
+
reason: string;
|
|
197
|
+
};
|
|
198
|
+
install: string;
|
|
199
|
+
tailwindTheme: string;
|
|
200
|
+
isPredefined: boolean;
|
|
201
|
+
}
|
|
202
|
+
export interface FontsData {
|
|
203
|
+
fonts: FontEntry[];
|
|
204
|
+
pairings: Record<string, {
|
|
205
|
+
heading: string;
|
|
206
|
+
body: string;
|
|
207
|
+
mono: string;
|
|
208
|
+
}>;
|
|
209
|
+
}
|
|
210
|
+
export interface CanvasEffectEntry {
|
|
211
|
+
id: string;
|
|
212
|
+
title: string;
|
|
213
|
+
description: string;
|
|
214
|
+
category: string;
|
|
215
|
+
tags: string[];
|
|
216
|
+
animate: boolean;
|
|
217
|
+
interactive: boolean;
|
|
218
|
+
complexity: string;
|
|
219
|
+
parameters: {
|
|
220
|
+
name: string;
|
|
221
|
+
type: string;
|
|
222
|
+
default: unknown;
|
|
223
|
+
description: string;
|
|
224
|
+
}[];
|
|
225
|
+
useCases: string[];
|
|
226
|
+
solves: string[];
|
|
227
|
+
js: string;
|
|
228
|
+
}
|
|
155
229
|
export interface Registry {
|
|
156
230
|
version: string;
|
|
157
231
|
generated: string;
|
|
158
232
|
snippets: SnippetEntry[];
|
|
159
233
|
patterns?: PatternEntry[];
|
|
160
234
|
templates?: TemplateEntry[];
|
|
235
|
+
canvasEffects?: CanvasEffectEntry[];
|
|
236
|
+
fonts?: FontsData;
|
|
237
|
+
mountCanvas?: string;
|
|
161
238
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspire/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "MCP server for Webspire — AI-native discovery of CSS snippets, UI patterns,
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "MCP server for Webspire — AI-native discovery of CSS snippets, UI patterns, canvas effects, page templates, and font recommendations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/index.js",
|