@prismora/mcp 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/tools.js +6 -6
  2. 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.0",
3
+ "version": "0.1.2",
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": "./dist/bin.js"
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.0",
45
- "@prismora/elements": "^0.1.0",
46
- "@prismora/theme": "^0.1.0",
44
+ "@prismora/color": "^0.1.2",
45
+ "@prismora/elements": "^0.1.2",
46
+ "@prismora/theme": "^0.1.2",
47
47
  "zod": "^3.25.0"
48
48
  },
49
49
  "publishConfig": {