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

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.
@@ -2,7 +2,7 @@
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { createNodeDriver } from "@pandacss/compiler";
5
- import { resolve } from "path";
5
+ import { resolve } from "node:path";
6
6
  import * as z from "zod/v4";
7
7
  var json = (data) => ({
8
8
  content: [{ type: "text", text: JSON.stringify(data) }]
@@ -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
@@ -29,7 +29,7 @@ var import_citty = require("citty");
29
29
  var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
30
30
  var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
31
31
  var import_compiler = require("@pandacss/compiler");
32
- var import_path = require("path");
32
+ var import_node_path = require("node:path");
33
33
  var z = __toESM(require("zod/v4"));
34
34
  var json = (data) => ({
35
35
  content: [{ type: "text", text: JSON.stringify(data) }]
@@ -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",
@@ -139,8 +139,8 @@ function createMcpServer(options) {
139
139
  }
140
140
  async function startMcpServer(options = {}) {
141
141
  const { cwd = process.cwd(), config: configPath, silent = false, transport } = options;
142
- const resolvedCwd = (0, import_path.resolve)(cwd);
143
- const resolvedConfigPath = configPath ? (0, import_path.resolve)(configPath) : void 0;
142
+ const resolvedCwd = (0, import_node_path.resolve)(cwd);
143
+ const resolvedConfigPath = configPath ? (0, import_node_path.resolve)(configPath) : void 0;
144
144
  const driver = await (0, import_compiler.createNodeDriver)({
145
145
  cwd: resolvedCwd,
146
146
  configPath: resolvedConfigPath
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startMcpServer
3
- } from "./chunk-OBOPWZHX.mjs";
3
+ } from "./chunk-RNKMUODB.mjs";
4
4
 
5
5
  // src/cli.ts
6
6
  import { defineCommand, runMain } from "citty";
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(index_exports);
39
39
  var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
40
40
  var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
41
41
  var import_compiler = require("@pandacss/compiler");
42
- var import_path = require("path");
42
+ var import_node_path = require("node:path");
43
43
  var z = __toESM(require("zod/v4"));
44
44
  var json = (data) => ({
45
45
  content: [{ type: "text", text: JSON.stringify(data) }]
@@ -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",
@@ -149,8 +149,8 @@ function createMcpServer(options) {
149
149
  }
150
150
  async function startMcpServer(options = {}) {
151
151
  const { cwd = process.cwd(), config: configPath, silent = false, transport } = options;
152
- const resolvedCwd = (0, import_path.resolve)(cwd);
153
- const resolvedConfigPath = configPath ? (0, import_path.resolve)(configPath) : void 0;
152
+ const resolvedCwd = (0, import_node_path.resolve)(cwd);
153
+ const resolvedConfigPath = configPath ? (0, import_node_path.resolve)(configPath) : void 0;
154
154
  const driver = await (0, import_compiler.createNodeDriver)({
155
155
  cwd: resolvedCwd,
156
156
  configPath: resolvedConfigPath
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-RNKMUODB.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.20",
4
4
  "description": "MCP server for Panda CSS AI assistants",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,9 +38,9 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@modelcontextprotocol/sdk": "^1.29.0",
41
- "citty": "0.1.6",
42
- "zod": "^4.0.0",
43
- "@pandacss/compiler": "2.0.0-beta.2"
41
+ "@pandacss/compiler": "2.0.0-beta.20",
42
+ "citty": "0.2.2",
43
+ "zod": "^4.0.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22"