@scayver/specshot-mcp-server 0.11.0 → 0.14.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.
- package/README.md +118 -4
- package/dist/build-standard.js +5284 -17
- package/dist/index.js +45 -13
- package/dist/skills.js +502 -0
- package/dist/tool-descriptions.js +99 -0
- package/dist/tools/agent-loop.js +81 -0
- package/dist/tools/brand.js +2 -1
- package/dist/tools/canvas.js +5 -4
- package/dist/tools/concepts.js +63 -5
- package/dist/tools/etch-audit.js +30 -0
- package/dist/tools/images.js +67 -0
- package/dist/tools/inspiration.js +2 -1
- package/dist/tools/messages.js +12 -6
- package/dist/tools/prototype.js +27 -0
- package/dist/tools/render.js +53 -0
- package/dist/tools/review.js +27 -0
- package/dist/tools/seo.js +56 -0
- package/dist/tools/site.js +78 -0
- package/dist/tools/skills.js +20 -0
- package/dist/tools/state.js +33 -0
- package/dist/tools/tasks.js +60 -0
- package/dist/tools/wireframe.js +41 -21
- package/dist/tools/wordpress.js +24 -0
- package/dist/tools/workspace.js +26 -22
- package/package.json +2 -2
package/dist/tools/workspace.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { toolDescription } from "../tool-descriptions.js";
|
|
2
3
|
function ok(data) {
|
|
3
4
|
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
4
5
|
}
|
|
@@ -27,21 +28,21 @@ export function registerWorkspaceTools(server, client) {
|
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
// ----------------------------------------------------------------- reads
|
|
30
|
-
server.tool("get_discovery_answers", "
|
|
31
|
-
server.tool("get_project_copy", "
|
|
32
|
-
server.tool("get_wireframes", "
|
|
33
|
-
server.tool("get_design_sections", "
|
|
34
|
-
server.tool("get_section_by_uid", "
|
|
35
|
-
server.tool("get_design_layers", "
|
|
36
|
-
server.tool("get_layer_by_uid", "
|
|
37
|
-
server.tool("get_design_versions", "
|
|
38
|
-
server.tool("get_selected_design_version", "
|
|
39
|
-
server.tool("get_comments_for_section", "
|
|
40
|
-
server.tool("get_agent_tasks", "
|
|
41
|
-
server.tool("get_project_memory", "
|
|
42
|
-
server.tool("reserve_section_uid", "
|
|
31
|
+
server.tool("get_discovery_answers", toolDescription("get_discovery_answers"), { projectId: z.string() }, async ({ projectId }) => call("get_discovery", { projectId }, "Failed to get discovery answers."));
|
|
32
|
+
server.tool("get_project_copy", toolDescription("get_project_copy"), { projectId: z.string() }, async ({ projectId }) => call("get_copy", { projectId }, "Failed to get project copy."));
|
|
33
|
+
server.tool("get_wireframes", toolDescription("get_wireframes"), { projectId: z.string() }, async ({ projectId }) => call("get_wireframes", { projectId }, "Failed to get wireframes."));
|
|
34
|
+
server.tool("get_design_sections", toolDescription("get_design_sections"), { projectId: z.string(), conceptId: z.string().optional() }, async ({ projectId, conceptId }) => call("get_sections", { projectId, conceptId }, "Failed to get sections."));
|
|
35
|
+
server.tool("get_section_by_uid", toolDescription("get_section_by_uid"), { projectId: z.string(), sectionUid: z.string() }, async ({ projectId, sectionUid }) => call("get_section", { projectId, sectionUid }, "Failed to get section."));
|
|
36
|
+
server.tool("get_design_layers", toolDescription("get_design_layers"), { projectId: z.string(), conceptId: z.string().optional(), sectionId: z.string().optional() }, async ({ projectId, conceptId, sectionId }) => call("get_layers", { projectId, conceptId, sectionId }, "Failed to get layers."));
|
|
37
|
+
server.tool("get_layer_by_uid", toolDescription("get_layer_by_uid"), { projectId: z.string(), layerUid: z.string() }, async ({ projectId, layerUid }) => call("get_layer", { projectId, layerUid }, "Failed to get layer."));
|
|
38
|
+
server.tool("get_design_versions", toolDescription("get_design_versions"), { projectId: z.string(), conceptId: z.string().optional() }, async ({ projectId, conceptId }) => call("get_design_versions", { projectId, conceptId }, "Failed to get design versions."));
|
|
39
|
+
server.tool("get_selected_design_version", toolDescription("get_selected_design_version"), { projectId: z.string(), conceptId: z.string().optional() }, async ({ projectId, conceptId }) => call("get_selected_version", { projectId, conceptId }, "Failed to get selected version."));
|
|
40
|
+
server.tool("get_comments_for_section", toolDescription("get_comments_for_section"), { projectId: z.string(), sectionUid: z.string().optional(), conceptId: z.string().optional(), status: z.string().optional() }, async ({ projectId, sectionUid, conceptId, status }) => call("get_comments", { projectId, sectionUid, conceptId, status }, "Failed to get comments."));
|
|
41
|
+
server.tool("get_agent_tasks", toolDescription("get_agent_tasks"), { projectId: z.string(), status: z.string().optional(), conceptId: z.string().optional() }, async ({ projectId, status, conceptId }) => call("get_agent_tasks", { projectId, status, conceptId }, "Failed to get agent tasks."));
|
|
42
|
+
server.tool("get_project_memory", toolDescription("get_project_memory"), { projectId: z.string() }, async ({ projectId }) => call("get_decisions", { projectId }, "Failed to get project memory."));
|
|
43
|
+
server.tool("reserve_section_uid", toolDescription("reserve_section_uid"), { projectId: z.string(), kind: z.enum(["SEC", "LYR", "CMP"]), type: z.string() }, async ({ projectId, kind, type }) => call("reserve_uid", { projectId, kind, type }, "Failed to reserve a uid."));
|
|
43
44
|
// ---------------------------------------------------------------- writes
|
|
44
|
-
server.tool("create_agent_task", "
|
|
45
|
+
server.tool("create_agent_task", toolDescription("create_agent_task"), {
|
|
45
46
|
projectId: z.string(),
|
|
46
47
|
title: z.string(),
|
|
47
48
|
description: z.string().optional(),
|
|
@@ -51,13 +52,13 @@ export function registerWorkspaceTools(server, client) {
|
|
|
51
52
|
priority: z.enum(["low", "medium", "high", "blocker"]).optional(),
|
|
52
53
|
assignedAgent: z.string().optional(),
|
|
53
54
|
}, async (args) => call("create_agent_task", args, "Failed to create agent task."));
|
|
54
|
-
server.tool("update_agent_task", "
|
|
55
|
+
server.tool("update_agent_task", toolDescription("update_agent_task"), {
|
|
55
56
|
taskId: z.string(),
|
|
56
57
|
status: z.string().optional(),
|
|
57
58
|
outputSummary: z.string().optional(),
|
|
58
59
|
versionId: z.string().optional(),
|
|
59
60
|
}, async (args) => call("update_agent_task", args, "Failed to update agent task."));
|
|
60
|
-
server.tool("create_design_version", "
|
|
61
|
+
server.tool("create_design_version", toolDescription("create_design_version"), {
|
|
61
62
|
projectId: z.string(),
|
|
62
63
|
conceptId: z.string().optional(),
|
|
63
64
|
parentVersionId: z.string().optional(),
|
|
@@ -67,28 +68,31 @@ export function registerWorkspaceTools(server, client) {
|
|
|
67
68
|
html: z.string().optional(),
|
|
68
69
|
css: z.string().optional(),
|
|
69
70
|
}, async ({ html, css, ...rest }) => call("create_design_version", { ...rest, htmlPreview: html, cssPreview: css }, "Failed to create design version."));
|
|
70
|
-
server.tool("add_design_comment", "
|
|
71
|
+
server.tool("add_design_comment", toolDescription("add_design_comment"), {
|
|
71
72
|
projectId: z.string(),
|
|
72
73
|
comment: z.string(),
|
|
73
74
|
conceptId: z.string().optional(),
|
|
74
75
|
sectionUid: z.string().optional(),
|
|
75
76
|
layerUid: z.string().optional(),
|
|
77
|
+
// The element pin (review anywhere): same-tag steps from the body, and the frame width meant.
|
|
78
|
+
elementPath: z.string().max(2000).optional(),
|
|
79
|
+
anchorWidth: z.number().int().min(200).max(4000).optional(),
|
|
76
80
|
priority: z.enum(["low", "medium", "high", "blocker"]).optional(),
|
|
77
81
|
}, async (args) => call("add_comment", args, "Failed to add comment."));
|
|
78
|
-
server.tool("resolve_design_comment",
|
|
79
|
-
server.tool("get_handoff_package", "
|
|
80
|
-
server.tool("update_design_section",
|
|
82
|
+
server.tool("resolve_design_comment", toolDescription("resolve_design_comment"), { commentId: z.string(), status: z.string().optional() }, async ({ commentId, status }) => call("resolve_comment", { commentId, status }, "Failed to resolve comment."));
|
|
83
|
+
server.tool("get_handoff_package", toolDescription("get_handoff_package"), { projectId: z.string(), conceptId: z.string().optional() }, async ({ projectId, conceptId }) => call("get_handoff", { projectId, conceptId }, "Failed to get handoff package."));
|
|
84
|
+
server.tool("update_design_section", toolDescription("update_design_section"), {
|
|
81
85
|
sectionId: z.string(),
|
|
82
86
|
name: z.string().optional(),
|
|
83
87
|
sectionOrder: z.number().int().optional(),
|
|
84
88
|
status: z.string().optional(),
|
|
85
89
|
}, async (args) => call("update_section", args, "Failed to update section."));
|
|
86
|
-
server.tool("update_design_layer", "
|
|
90
|
+
server.tool("update_design_layer", toolDescription("update_design_layer"), {
|
|
87
91
|
layerId: z.string(),
|
|
88
92
|
name: z.string().optional(),
|
|
89
93
|
hidden: z.boolean().optional(),
|
|
90
94
|
locked: z.boolean().optional(),
|
|
91
95
|
sortOrder: z.number().int().optional(),
|
|
92
96
|
}, async (args) => call("update_layer", args, "Failed to update layer."));
|
|
93
|
-
server.tool("extract_concept_sections", "
|
|
97
|
+
server.tool("extract_concept_sections", toolDescription("extract_concept_sections"), { projectId: z.string(), conceptId: z.string() }, async ({ projectId, conceptId }) => call("extract_sections", { projectId, conceptId }, "Failed to extract sections."));
|
|
94
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayver/specshot-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "MCP server for SpecShot \u2014 lets Claude Code, Claude Desktop, and Cursor fetch approved design concepts with brand tokens and a ready-to-build prompt.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"prepublishOnly": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
49
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
50
50
|
"zod": "^3.23.8"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|