devsh-memory-mcp 0.3.0 → 0.3.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/dist/{chunk-U4TYMR2Q.js → chunk-CO53C63X.js} +4 -11
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1156,7 +1156,7 @@ function createMemoryMcpServer(config) {
|
|
|
1156
1156
|
case "spawn_agent": {
|
|
1157
1157
|
const { prompt, agentName: spawnAgentName, repo, branch, dependsOn, priority } = args;
|
|
1158
1158
|
const jwt = process.env.CMUX_TASK_RUN_JWT;
|
|
1159
|
-
const
|
|
1159
|
+
const serverUrl = process.env.CMUX_SERVER_URL ?? "https://cmux-server.cmux.sh";
|
|
1160
1160
|
const orchestrationId = process.env.CMUX_ORCHESTRATION_ID;
|
|
1161
1161
|
if (!jwt) {
|
|
1162
1162
|
return {
|
|
@@ -1167,7 +1167,7 @@ function createMemoryMcpServer(config) {
|
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
1169
|
try {
|
|
1170
|
-
const url = `${
|
|
1170
|
+
const url = `${serverUrl}/api/orchestrate/spawn`;
|
|
1171
1171
|
const response = await fetch(url, {
|
|
1172
1172
|
method: "POST",
|
|
1173
1173
|
headers: {
|
|
@@ -1582,14 +1582,6 @@ function createMemoryMcpServer(config) {
|
|
|
1582
1582
|
}]
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
if (!orchestrationId) {
|
|
1586
|
-
return {
|
|
1587
|
-
content: [{
|
|
1588
|
-
type: "text",
|
|
1589
|
-
text: "CMUX_ORCHESTRATION_ID environment variable not set."
|
|
1590
|
-
}]
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
1585
|
try {
|
|
1594
1586
|
const url = `${apiBaseUrl}/api/v1/cmux/orchestration/sessions/bind`;
|
|
1595
1587
|
const response = await fetch(url, {
|
|
@@ -1599,7 +1591,8 @@ function createMemoryMcpServer(config) {
|
|
|
1599
1591
|
"Content-Type": "application/json"
|
|
1600
1592
|
},
|
|
1601
1593
|
body: JSON.stringify({
|
|
1602
|
-
orchestrationId,
|
|
1594
|
+
// Only include orchestrationId if set, otherwise API uses taskRunId from JWT
|
|
1595
|
+
...orchestrationId && { orchestrationId },
|
|
1603
1596
|
taskRunId,
|
|
1604
1597
|
providerSessionId,
|
|
1605
1598
|
providerThreadId,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devsh-memory-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "MCP server for devsh/cmux agent memory - enables Claude Desktop and external clients to access sandbox memory and orchestrate multi-agent workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|