@aithr-ai/mcp-server 1.0.1 → 1.0.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/index.js +6 -6
- package/package.json +1 -2
package/index.js
CHANGED
|
@@ -1078,22 +1078,22 @@ class MCPServer {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
1080
|
try {
|
|
1081
|
-
// First get all nodes
|
|
1082
|
-
const data = await this.
|
|
1083
|
-
const nodes = data.nodes || [];
|
|
1081
|
+
// First get all nodes using MCP API
|
|
1082
|
+
const data = await this.mcpApiCall(`/mcp/projects/${projectId}/canvas`);
|
|
1083
|
+
const nodes = data.canvas?.nodes || [];
|
|
1084
1084
|
|
|
1085
1085
|
if (nodes.length === 0) {
|
|
1086
1086
|
return { message: 'Canvas is already empty', deletedCount: 0 };
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
-
// Delete each node
|
|
1089
|
+
// Delete each node using MCP API
|
|
1090
1090
|
const deleted = [];
|
|
1091
1091
|
const failed = [];
|
|
1092
1092
|
|
|
1093
1093
|
for (const node of nodes) {
|
|
1094
1094
|
try {
|
|
1095
|
-
await this.
|
|
1096
|
-
`/
|
|
1095
|
+
await this.mcpApiCall(
|
|
1096
|
+
`/mcp/projects/${projectId}/canvas/nodes/${node.id}`,
|
|
1097
1097
|
'DELETE'
|
|
1098
1098
|
);
|
|
1099
1099
|
deleted.push(node.id);
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aithr-ai/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MCP server to connect Claude Code to Aether canvas - AI-powered team workspace for software development",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
6
|
"bin": {
|
|
8
7
|
"aether-mcp": "./index.js"
|
|
9
8
|
},
|