@prismora/mcp 0.1.0 → 0.1.1
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/dist/tools.js +6 -6
- package/package.json +5 -5
package/dist/tools.js
CHANGED
|
@@ -296,12 +296,12 @@ export function scaffoldPage(pattern, framework = 'html') {
|
|
|
296
296
|
if (!p)
|
|
297
297
|
throw new Error(`Unknown pattern "${pattern}". Available: ${PATTERNS.map((x) => x.id).join(', ')}.`);
|
|
298
298
|
const setup = {
|
|
299
|
-
html: "Run `npx prismora init` once, or load @prismora/css/dist/prismora.css and @prismora/elements/dist/prismora.standalone.js.",
|
|
300
|
-
react: "Run `npx prismora init` once, or import '@prismora/css/foundation.css' in your root (app/layout.tsx or main.tsx).",
|
|
301
|
-
vue: "Run `npx prismora init` once, or import '@prismora/css/foundation.css' in main.ts and set compilerOptions.isCustomElement: (t) => t.startsWith('pm-').",
|
|
302
|
-
svelte: "Run `npx prismora init` once, or import '@prismora/css/foundation.css' in src/routes/+layout.svelte.",
|
|
303
|
-
solid: "Run `npx prismora init` once, or import '@prismora/css/foundation.css' in index.tsx.",
|
|
304
|
-
angular: "Run `npx prismora init` once, or add @prismora/css/foundation.css to the styles in angular.json. For ngModel and reactive forms add imports: [FormsModule, ...PRISMORA_FORMS].",
|
|
299
|
+
html: "Run `npx @prismora/cli init` once, or load @prismora/css/dist/prismora.css and @prismora/elements/dist/prismora.standalone.js.",
|
|
300
|
+
react: "Run `npx @prismora/cli init` once, or import '@prismora/css/foundation.css' in your root (app/layout.tsx or main.tsx).",
|
|
301
|
+
vue: "Run `npx @prismora/cli init` once, or import '@prismora/css/foundation.css' in main.ts and set compilerOptions.isCustomElement: (t) => t.startsWith('pm-').",
|
|
302
|
+
svelte: "Run `npx @prismora/cli init` once, or import '@prismora/css/foundation.css' in src/routes/+layout.svelte.",
|
|
303
|
+
solid: "Run `npx @prismora/cli init` once, or import '@prismora/css/foundation.css' in index.tsx.",
|
|
304
|
+
angular: "Run `npx @prismora/cli init` once, or add @prismora/css/foundation.css to the styles in angular.json. For ngModel and reactive forms add imports: [FormsModule, ...PRISMORA_FORMS].",
|
|
305
305
|
};
|
|
306
306
|
const name = `${p.id.replace(/(^|-)(\w)/g, (_, __, c) => c.toUpperCase())}Page`;
|
|
307
307
|
return { id: p.id, title: p.title, description: p.description, framework, setup: setup[framework], code: snippet(p.html, framework, name) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismora/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Model Context Protocol server for Prismora: component APIs, tokens, theme generation and markup validation for AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prismora",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"main": "./dist/server.js",
|
|
25
25
|
"types": "./dist/server.d.ts",
|
|
26
26
|
"bin": {
|
|
27
|
-
"prismora-mcp": "
|
|
27
|
+
"prismora-mcp": "dist/bin.js"
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.20.0",
|
|
44
|
-
"@prismora/color": "^0.1.
|
|
45
|
-
"@prismora/elements": "^0.1.
|
|
46
|
-
"@prismora/theme": "^0.1.
|
|
44
|
+
"@prismora/color": "^0.1.1",
|
|
45
|
+
"@prismora/elements": "^0.1.1",
|
|
46
|
+
"@prismora/theme": "^0.1.1",
|
|
47
47
|
"zod": "^3.25.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|