cuemap-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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ You do **not** need to install or run the CueMap CLI manually. The correct pre-c
12
12
 
13
13
  ```bash
14
14
  # Global installation makes the `cuemap-mcp` command available
15
- npm install -g @cuemap/mcp-server
15
+ npm install -g cuemap-mcp
16
16
  ```
17
17
 
18
18
  *(Note: Ensure your package manager is configured to download `optionalDependencies` so the local Rust binary is included).*
@@ -38,7 +38,7 @@ To use this MCP server with your AI assistant, add it to your assistant's MCP co
38
38
  "command": "npx",
39
39
  "args": [
40
40
  "-y",
41
- "@cuemap/mcp-server"
41
+ "cuemap-mcp"
42
42
  ],
43
43
  "env": {
44
44
  "CUEMAP_PORT": "8080"
package/build/index.js CHANGED
@@ -26,7 +26,7 @@ function getCuemapBinaryPath() {
26
26
  try {
27
27
  const platform = os_1.default.platform();
28
28
  const arch = os_1.default.arch();
29
- const pkgName = `@cuemap/engine-${platform}-${arch}`;
29
+ const pkgName = `@cuemap-dev/engine-${platform}-${arch}`;
30
30
  const resolved = require.resolve(`${pkgName}/package.json`);
31
31
  const binPath = path_1.default.join(path_1.default.dirname(resolved), "bin", "cuemap");
32
32
  if (fs_1.default.existsSync(binPath))
@@ -95,8 +95,11 @@ async function main() {
95
95
  }, async (args) => {
96
96
  try {
97
97
  const pName = args.projectName || path_1.default.basename(args.path);
98
- const projects = await client.listProjects();
99
- if (!projects.includes(pName)) {
98
+ const _projectsRes = await client.listProjects();
99
+ // Engine returns {projects: [{project_id: "...", ...}, ...]}
100
+ const rawList = Array.isArray(_projectsRes) ? _projectsRes : (_projectsRes?.projects || []);
101
+ const projectIds = rawList.map((p) => typeof p === 'string' ? p : p.project_id);
102
+ if (!projectIds.includes(pName)) {
100
103
  await client.createProject(pName);
101
104
  }
102
105
  await client.setProjectWatchDir(pName, args.path);
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cuemap-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for CueMap",
5
5
  "main": "build/index.js",
6
6
  "bin": {
@@ -35,9 +35,9 @@
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@cuemap/engine-darwin-arm64": "^0.6.4",
39
- "@cuemap/engine-darwin-x64": "^0.6.4",
40
- "@cuemap/engine-linux-x64": "^0.6.4",
41
- "@cuemap/engine-win32-x64": "^0.6.4"
38
+ "@cuemap-dev/engine-darwin-arm64": "^0.6.4",
39
+ "@cuemap-dev/engine-darwin-x64": "^0.6.4",
40
+ "@cuemap-dev/engine-linux-x64": "^0.6.4",
41
+ "@cuemap-dev/engine-win32-x64": "^0.6.4"
42
42
  }
43
43
  }
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@ function getCuemapBinaryPath(): string | null {
25
25
  try {
26
26
  const platform = os.platform();
27
27
  const arch = os.arch();
28
- const pkgName = `@cuemap/engine-${platform}-${arch}`;
28
+ const pkgName = `@cuemap-dev/engine-${platform}-${arch}`;
29
29
  const resolved = require.resolve(`${pkgName}/package.json`);
30
30
  const binPath = path.join(path.dirname(resolved), "bin", "cuemap");
31
31
  if (fs.existsSync(binPath)) return binPath;
@@ -107,8 +107,11 @@ async function main() {
107
107
  try {
108
108
  const pName = args.projectName || path.basename(args.path);
109
109
 
110
- const projects = await client.listProjects();
111
- if (!projects.includes(pName)) {
110
+ const _projectsRes: any = await client.listProjects();
111
+ // Engine returns {projects: [{project_id: "...", ...}, ...]}
112
+ const rawList = Array.isArray(_projectsRes) ? _projectsRes : (_projectsRes?.projects || []);
113
+ const projectIds = rawList.map((p: any) => typeof p === 'string' ? p : p.project_id);
114
+ if (!projectIds.includes(pName)) {
112
115
  await client.createProject(pName);
113
116
  }
114
117