@pandacss/mcp 2.0.0-beta.2 → 2.0.0-beta.4

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.
@@ -31,7 +31,7 @@ function createMcpServer(options) {
31
31
  async ({ category }) => {
32
32
  const categories = category ? { [category]: spec.tokens.categories[category] } : spec.tokens.categories;
33
33
  const values = category ? Object.fromEntries(Object.entries(spec.tokens.values).filter(([path]) => path.startsWith(`${category}.`))) : spec.tokens.values;
34
- return json({ categories, values, deprecated: spec.tokens.deprecated });
34
+ return json({ categories, values, deprecated: Object.keys(spec.tokens.deprecated) });
35
35
  }
36
36
  );
37
37
  server.registerTool(
@@ -52,7 +52,7 @@ function createMcpServer(options) {
52
52
  inputSchema: { name: recipeNameSchema }
53
53
  },
54
54
  async ({ name }) => {
55
- const { recipes, slotRecipes } = spec.recipes;
55
+ const { recipes, slotRecipes } = spec;
56
56
  if (name) {
57
57
  return json({
58
58
  recipes: pickCategory(recipes, name in recipes ? name : void 0),
@@ -68,7 +68,7 @@ function createMcpServer(options) {
68
68
  description: "Get layout patterns with their properties and usage examples",
69
69
  inputSchema: { name: patternNameSchema }
70
70
  },
71
- async ({ name }) => json(pickCategory(spec.patterns.patterns, name))
71
+ async ({ name }) => json(pickCategory(spec.patterns, name))
72
72
  );
73
73
  server.registerTool(
74
74
  "get_conditions",
package/dist/cli.js CHANGED
@@ -58,7 +58,7 @@ function createMcpServer(options) {
58
58
  async ({ category }) => {
59
59
  const categories = category ? { [category]: spec.tokens.categories[category] } : spec.tokens.categories;
60
60
  const values = category ? Object.fromEntries(Object.entries(spec.tokens.values).filter(([path]) => path.startsWith(`${category}.`))) : spec.tokens.values;
61
- return json({ categories, values, deprecated: spec.tokens.deprecated });
61
+ return json({ categories, values, deprecated: Object.keys(spec.tokens.deprecated) });
62
62
  }
63
63
  );
64
64
  server.registerTool(
@@ -79,7 +79,7 @@ function createMcpServer(options) {
79
79
  inputSchema: { name: recipeNameSchema }
80
80
  },
81
81
  async ({ name }) => {
82
- const { recipes, slotRecipes } = spec.recipes;
82
+ const { recipes, slotRecipes } = spec;
83
83
  if (name) {
84
84
  return json({
85
85
  recipes: pickCategory(recipes, name in recipes ? name : void 0),
@@ -95,7 +95,7 @@ function createMcpServer(options) {
95
95
  description: "Get layout patterns with their properties and usage examples",
96
96
  inputSchema: { name: patternNameSchema }
97
97
  },
98
- async ({ name }) => json(pickCategory(spec.patterns.patterns, name))
98
+ async ({ name }) => json(pickCategory(spec.patterns, name))
99
99
  );
100
100
  server.registerTool(
101
101
  "get_conditions",
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startMcpServer
3
- } from "./chunk-OBOPWZHX.mjs";
3
+ } from "./chunk-EX3U7FW5.mjs";
4
4
 
5
5
  // src/cli.ts
6
6
  import { defineCommand, runMain } from "citty";
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ function createMcpServer(options) {
68
68
  async ({ category }) => {
69
69
  const categories = category ? { [category]: spec.tokens.categories[category] } : spec.tokens.categories;
70
70
  const values = category ? Object.fromEntries(Object.entries(spec.tokens.values).filter(([path]) => path.startsWith(`${category}.`))) : spec.tokens.values;
71
- return json({ categories, values, deprecated: spec.tokens.deprecated });
71
+ return json({ categories, values, deprecated: Object.keys(spec.tokens.deprecated) });
72
72
  }
73
73
  );
74
74
  server.registerTool(
@@ -89,7 +89,7 @@ function createMcpServer(options) {
89
89
  inputSchema: { name: recipeNameSchema }
90
90
  },
91
91
  async ({ name }) => {
92
- const { recipes, slotRecipes } = spec.recipes;
92
+ const { recipes, slotRecipes } = spec;
93
93
  if (name) {
94
94
  return json({
95
95
  recipes: pickCategory(recipes, name in recipes ? name : void 0),
@@ -105,7 +105,7 @@ function createMcpServer(options) {
105
105
  description: "Get layout patterns with their properties and usage examples",
106
106
  inputSchema: { name: patternNameSchema }
107
107
  },
108
- async ({ name }) => json(pickCategory(spec.patterns.patterns, name))
108
+ async ({ name }) => json(pickCategory(spec.patterns, name))
109
109
  );
110
110
  server.registerTool(
111
111
  "get_conditions",
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createMcpServer,
3
3
  startMcpServer
4
- } from "./chunk-OBOPWZHX.mjs";
4
+ } from "./chunk-EX3U7FW5.mjs";
5
5
  export {
6
6
  createMcpServer,
7
7
  startMcpServer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/mcp",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "MCP server for Panda CSS AI assistants",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -40,7 +40,7 @@
40
40
  "@modelcontextprotocol/sdk": "^1.29.0",
41
41
  "citty": "0.1.6",
42
42
  "zod": "^4.0.0",
43
- "@pandacss/compiler": "2.0.0-beta.2"
43
+ "@pandacss/compiler": "2.0.0-beta.4"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22"