@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/dist/index.js CHANGED
@@ -9,7 +9,19 @@ import { registerWireframeTools } from "./tools/wireframe.js";
9
9
  import { registerMessageTools } from "./tools/messages.js";
10
10
  import { registerWorkspaceTools } from "./tools/workspace.js";
11
11
  import { registerCanvasTools } from "./tools/canvas.js";
12
- import { BUILD_STANDARD_SHORT } from "./build-standard.js";
12
+ import { registerStateTools } from "./tools/state.js";
13
+ import { registerImageTools } from "./tools/images.js";
14
+ import { registerWordPressTools } from "./tools/wordpress.js";
15
+ import { registerSkillTools } from "./tools/skills.js";
16
+ import { registerReviewTools } from "./tools/review.js";
17
+ import { registerPrototypeTools } from "./tools/prototype.js";
18
+ import { registerRenderTools } from "./tools/render.js";
19
+ import { registerAgentLoopTools } from "./tools/agent-loop.js";
20
+ import { registerSiteTools } from "./tools/site.js";
21
+ import { registerSeoTools } from "./tools/seo.js";
22
+ import { registerTaskTools } from "./tools/tasks.js";
23
+ import { registerEtchAuditTools } from "./tools/etch-audit.js";
24
+ import { CONNECT_INSTRUCTIONS, MCP_PROMPTS } from "./build-standard.js";
13
25
  import { createRequire } from "node:module";
14
26
  /**
15
27
  * Read the version from package.json instead of restating it. A hardcoded copy
@@ -45,18 +57,21 @@ if (!token) {
45
57
  console.error(`[specshot-mcp] v${VERSION} -> ${baseUrl}${process.env.SPECSHOT_APP_URL ? "" : " (default; set SPECSHOT_APP_URL to override)"}`);
46
58
  const client = new SpecShotClient(baseUrl, token);
47
59
  // instructions travel with the connection: a client surfaces them to the model
48
- // as system context, so the agent knows to build full fidelity before it reads a
49
- // single tool description. Without this the build standard lived only inside one
50
- // tool's payload and gray-placeholder output was the result.
51
- const server = new McpServer({ name: "specshot", version: VERSION }, { instructions: BUILD_STANDARD_SHORT });
52
- // A callable prompt whose body IS the standard, for clients that surface prompts
53
- // in a picker. Registered before the tools so it lists first.
54
- server.registerPrompt("build_a_page", {
55
- title: "SpecShot: build a page",
56
- description: "The SpecShot build standard: how to build a full-fidelity, approvable website design. Read this before you build.",
57
- }, () => ({
58
- messages: [{ role: "user", content: { type: "text", text: BUILD_STANDARD_SHORT } }],
59
- }));
60
+ // as system context, so the agent knows the law before it reads a single tool
61
+ // description. The short law fits clients that truncate long instructions, and
62
+ // names the design_law prompt that carries the whole of it; the short page
63
+ // workflow and where the design skills are follow it.
64
+ const server = new McpServer({ name: "specshot", version: VERSION }, { instructions: CONNECT_INSTRUCTIONS });
65
+ // The same prompts the hosted endpoint serves, with the same bodies: the whole
66
+ // design law, the build standard, the premium bar, the Etch rules, the protocol
67
+ // and the rest. Generated from the shared source (build-standard.ts says how), so
68
+ // the short law never names a prompt this transport does not have. Registered
69
+ // before the tools so they list first.
70
+ for (const prompt of MCP_PROMPTS) {
71
+ server.registerPrompt(prompt.name, { title: prompt.title, description: prompt.description }, () => ({
72
+ messages: [{ role: "user", content: { type: "text", text: prompt.body } }],
73
+ }));
74
+ }
60
75
  /**
61
76
  * whoami: ground truth about THIS process, so an agent never has to infer what
62
77
  * it is running from a version written in a doc or remembered from a past
@@ -81,6 +96,7 @@ server.tool("whoami", "Confirm what you are actually connected to: the running s
81
96
  },
82
97
  ],
83
98
  }));
99
+ registerStateTools(server, client);
84
100
  registerConceptTools(server, client);
85
101
  registerBrandTools(server, client);
86
102
  registerInspirationTools(server, client);
@@ -88,5 +104,21 @@ registerWireframeTools(server, client);
88
104
  registerMessageTools(server, client);
89
105
  registerWorkspaceTools(server, client);
90
106
  registerCanvasTools(server, client);
107
+ registerImageTools(server, client);
108
+ registerWordPressTools(server, client);
109
+ registerSkillTools(server);
110
+ // The canvas slices (docs/CANVAS-DOOP-PLAN.md 4.0). Each slice registers in its own file only.
111
+ registerReviewTools(server, client);
112
+ registerPrototypeTools(server, client);
113
+ registerRenderTools(server, client);
114
+ registerAgentLoopTools(server, client);
115
+ // Whole-site generation for agents (docs/WHOLE-SITE-GENERATION-PLAN.md, "Agents over MCP").
116
+ registerSiteTools(server, client);
117
+ // SEO fixes for agents (docs/SEO-PORTAL-PLAN.md, phase 5).
118
+ registerSeoTools(server, client);
119
+ // Project tasks for agents (docs/PROJECT-FLOW-PLAN.md, Phase 4).
120
+ registerTaskTools(server, client);
121
+ // The Etch site audit (docs/ETCH-TOOLKIT-LESSONS.md, item 3).
122
+ registerEtchAuditTools(server, client);
91
123
  const transport = new StdioServerTransport();
92
124
  await server.connect(transport);