@wireweave/mcp-server 1.3.1 → 1.4.0

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/dist/index.js +10 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -272,7 +272,7 @@ var tools = [
272
272
  },
273
273
  {
274
274
  name: "wireweave_cloud_list_projects",
275
- description: "List all your Wireweave projects. Projects help organize your wireframes.",
275
+ description: "List all your Wireweave projects. Projects help organize your wireframes. WORKFLOW: Call this first before saving wireframes. If the list is empty, ask the user whether to create a new project (call wireweave_cloud_create_project) or use the default project.",
276
276
  inputSchema: {
277
277
  "type": "object",
278
278
  "properties": {
@@ -287,7 +287,7 @@ var tools = [
287
287
  },
288
288
  {
289
289
  name: "wireweave_cloud_create_project",
290
- description: "Create a new project to organize wireframes",
290
+ description: "Create a new project to organize wireframes. Use this when the user wants to organize their wireframes into a specific project. The project can have a custom name, description, and color.",
291
291
  inputSchema: {
292
292
  "type": "object",
293
293
  "properties": {
@@ -341,22 +341,6 @@ var tools = [
341
341
  ]
342
342
  }
343
343
  },
344
- {
345
- name: "wireweave_cloud_delete_project",
346
- description: "Delete a project permanently. All wireframes in the project will be moved to the default project.",
347
- inputSchema: {
348
- "type": "object",
349
- "properties": {
350
- "id": {
351
- "type": "string",
352
- "description": "Project ID to delete"
353
- }
354
- },
355
- "required": [
356
- "id"
357
- ]
358
- }
359
- },
360
344
  {
361
345
  name: "wireweave_cloud_list_wireframes",
362
346
  description: "List your saved wireframes. Optionally filter by project or tags.",
@@ -406,7 +390,7 @@ var tools = [
406
390
  },
407
391
  {
408
392
  name: "wireweave_cloud_save_wireframe",
409
- description: "Save a new wireframe to the cloud. Costs 1 credit.",
393
+ description: "Save a new wireframe to the cloud. Costs 1 credit.\n\nRECOMMENDED WORKFLOW:\n1. Call wireweave_cloud_list_projects to get available projects\n2. If projects exist: Ask user which project to save to\n3. If no projects: Ask user to (a) create a new project, or (b) save to default project\n4. Call this tool with the chosen projectId (or omit for default project)\n\nNote: If projectId is not provided, the wireframe will be saved to the user's default project.",
410
394
  inputSchema: {
411
395
  "type": "object",
412
396
  "properties": {
@@ -424,7 +408,7 @@ var tools = [
424
408
  },
425
409
  "projectId": {
426
410
  "type": "string",
427
- "description": "Project ID to save to (uses default project if not specified)"
411
+ "description": "Project ID to save to. Get available projects using wireweave_cloud_list_projects first."
428
412
  },
429
413
  "tags": {
430
414
  "type": "array",
@@ -704,7 +688,6 @@ var toolEndpoints = {
704
688
  wireweave_cloud_list_projects: { method: "GET", path: "/cloud/projects" },
705
689
  wireweave_cloud_create_project: { method: "POST", path: "/cloud/projects" },
706
690
  wireweave_cloud_update_project: { method: "PATCH", path: "/cloud/projects/:id", pathParams: ["id"] },
707
- wireweave_cloud_delete_project: { method: "DELETE", path: "/cloud/projects/:id", pathParams: ["id"] },
708
691
  wireweave_cloud_list_wireframes: { method: "GET", path: "/cloud/wireframes" },
709
692
  wireweave_cloud_get_wireframe: { method: "GET", path: "/cloud/wireframes/:id", pathParams: ["id"] },
710
693
  wireweave_cloud_save_wireframe: { method: "POST", path: "/cloud/wireframes" },
@@ -764,6 +747,12 @@ function parseErrorMessage(status, error) {
764
747
  if (status === 401) return "Invalid API key. Get one at https://dashboard.wireweave.org";
765
748
  if (status === 402) return `Insufficient credits. ${error.message || "Please add more credits."}`;
766
749
  if (status === 403) return "Access denied. Upgrade your plan for this feature.";
750
+ if (status === 404 && error.error?.includes("project")) {
751
+ return "Project not found. Call wireweave_cloud_list_projects to see available projects.";
752
+ }
753
+ if (status === 400 && error.error?.includes("name")) {
754
+ return "Invalid wireframe name. Provide a non-empty name for the wireframe.";
755
+ }
767
756
  if (status === 429) return "Rate limit exceeded. Please wait and try again.";
768
757
  if (status >= 500) return "Service temporarily unavailable";
769
758
  return error.error || error.message || "Request failed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireweave/mcp-server",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "MCP server for Wireweave DSL - Thin client for API Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",