suma-mcp-proxy 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +19 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -156,6 +156,20 @@ Args:
156
156
  required: ["message"],
157
157
  },
158
158
  },
159
+ {
160
+ name: "suma_clean",
161
+ description: `Wipe all data for this org. DESTRUCTIVE — requires confirmation.
162
+
163
+ Args:
164
+ confirm: Must be true to proceed (required)`,
165
+ inputSchema: {
166
+ type: "object",
167
+ properties: {
168
+ confirm: { type: "boolean", description: "Must be true to wipe data" },
169
+ },
170
+ required: ["confirm"],
171
+ },
172
+ },
159
173
  ];
160
174
 
161
175
  // ── Tool Handlers ───────────────────────────────────────────────────────────
@@ -186,6 +200,11 @@ async function handleTool(name, args) {
186
200
  sphere: args.sphere,
187
201
  });
188
202
 
203
+ case "suma_clean":
204
+ return await apiCall("/clean", "POST", {
205
+ confirm: args.confirm === true,
206
+ });
207
+
189
208
  default:
190
209
  return { error: `Unknown tool: ${name}` };
191
210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suma-mcp-proxy",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "SUMA MCP Local Proxy — stable stdio bridge to stateless REST API",
5
5
  "type": "module",
6
6
  "main": "index.js",