@contextstream/mcp-server 0.3.21 → 0.3.22
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/index.js +20 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7614,11 +7614,26 @@ Behavior:
|
|
|
7614
7614
|
return errorResult("Error: folder_path is required. Provide folder_path or run from a project directory.");
|
|
7615
7615
|
}
|
|
7616
7616
|
const folderName = folderPath.split("/").pop() || "My Project";
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7617
|
+
let newWorkspace;
|
|
7618
|
+
try {
|
|
7619
|
+
newWorkspace = await client.createWorkspace({
|
|
7620
|
+
name: input.workspace_name,
|
|
7621
|
+
description: input.description || `Workspace created for ${folderPath}`,
|
|
7622
|
+
visibility: input.visibility || "private"
|
|
7623
|
+
});
|
|
7624
|
+
} catch (err) {
|
|
7625
|
+
const message = err?.message || String(err);
|
|
7626
|
+
if (typeof message === "string" && message.includes("workspaces_slug_key")) {
|
|
7627
|
+
return errorResult(
|
|
7628
|
+
[
|
|
7629
|
+
"Failed to create workspace: the workspace slug is already taken (or reserved by a deleted workspace).",
|
|
7630
|
+
"",
|
|
7631
|
+
"Try a slightly different workspace name (e.g., add a suffix) and re-run `workspace_bootstrap`."
|
|
7632
|
+
].join("\n")
|
|
7633
|
+
);
|
|
7634
|
+
}
|
|
7635
|
+
throw err;
|
|
7636
|
+
}
|
|
7622
7637
|
if (!newWorkspace?.id) {
|
|
7623
7638
|
return errorResult("Error: failed to create workspace.");
|
|
7624
7639
|
}
|
package/package.json
CHANGED