@metacells/mcellui-mcp-server 0.1.2 → 0.1.3

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/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21,7 +21,12 @@ var REGISTRY_URL = process.env.MCELLUI_REGISTRY_URL || process.env.NATIVEUI_REGI
21
21
  var registryCache = null;
22
22
  var componentCodeCache = /* @__PURE__ */ new Map();
23
23
  function getRegistryPath() {
24
- return path.resolve(__dirname, "..", "..", "registry");
24
+ const bundledPath = path.resolve(__dirname, "..", "registry");
25
+ const monorepoPath = path.resolve(__dirname, "..", "..", "registry");
26
+ if (fs.existsSync(path.join(bundledPath, "registry.json"))) {
27
+ return bundledPath;
28
+ }
29
+ return monorepoPath;
25
30
  }
26
31
  function isLocalMode() {
27
32
  const localPath = getRegistryPath();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacells/mcellui-mcp-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for mcellui - AI assistant integration for React Native development",
5
5
  "author": "metacells",
6
6
  "license": "MIT",