cuemap-mcp 0.1.0 → 0.1.1
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 +2 -2
- package/build/index.js +3 -2
- package/cuemap-mcp-0.1.1.tgz +0 -0
- package/package.json +5 -5
- package/src/index.ts +3 -2
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
|
|
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
|
-
"
|
|
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,7 +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
|
|
98
|
+
const _projectsRes = await client.listProjects();
|
|
99
|
+
const projects = Array.isArray(_projectsRes) ? _projectsRes : _projectsRes.projects || [];
|
|
99
100
|
if (!projects.includes(pName)) {
|
|
100
101
|
await client.createProject(pName);
|
|
101
102
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cuemap-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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,7 +107,8 @@ async function main() {
|
|
|
107
107
|
try {
|
|
108
108
|
const pName = args.projectName || path.basename(args.path);
|
|
109
109
|
|
|
110
|
-
const
|
|
110
|
+
const _projectsRes = await client.listProjects();
|
|
111
|
+
const projects = Array.isArray(_projectsRes) ? _projectsRes : (_projectsRes as any).projects || [];
|
|
111
112
|
if (!projects.includes(pName)) {
|
|
112
113
|
await client.createProject(pName);
|
|
113
114
|
}
|