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 +2 -4
- package/cuemap-mcp-0.1.3.tgz +0 -0
- package/package.json +1 -1
- package/src/index.ts +2 -4
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
|
|
99
|
-
|
|
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
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
|
|
111
|
-
|
|
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
|
}
|