cuemap-mcp 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.
package/build/index.js CHANGED
@@ -95,10 +95,8 @@ async function main() {
95
95
  }, async (args) => {
96
96
  try {
97
97
  const pName = args.projectName || path_1.default.basename(args.path);
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);
98
+ const projects = await client.listProjects();
99
+ const projectIds = projects.map((p) => typeof p === 'string' ? p : p.project_id);
102
100
  if (!projectIds.includes(pName)) {
103
101
  await client.createProject(pName);
104
102
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cuemap-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for CueMap",
5
5
  "main": "build/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -107,10 +107,8 @@ async function main() {
107
107
  try {
108
108
  const pName = args.projectName || path.basename(args.path);
109
109
 
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);
110
+ const projects: any[] = await client.listProjects();
111
+ const projectIds = projects.map((p: any) => typeof p === 'string' ? p : p.project_id);
114
112
  if (!projectIds.includes(pName)) {
115
113
  await client.createProject(pName);
116
114
  }