gemini-design-mcp 3.6.7 → 3.6.8

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.
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { generateWithGemini } from "../lib/gemini.js";
3
3
  import { CREATE_FRONTEND_PROMPT } from "../prompts/system.js";
4
- import { writeFileWithDirs, getFileSize } from "../lib/filesystem.js";
4
+ import { writeFileWithDirs, getFileSize, stripCodeFences } from "../lib/filesystem.js";
5
5
  import { scaleSchema, scaleDescriptions } from "../lib/scale.js";
6
6
  export const createFrontendSchema = {
7
7
  request: z.string().describe("What to create: describe the page, component, or section. " +
@@ -69,7 +69,9 @@ TECH STACK: ${techStack}
69
69
  FILE PATH: ${filePath}
70
70
 
71
71
  Remember: Return a COMPLETE file ready to save at ${filePath}`.trim();
72
- const result = await generateWithGemini(systemPrompt, request, undefined, "high");
72
+ const rawResult = await generateWithGemini(systemPrompt, request, undefined, "high");
73
+ // Strip markdown code fences from the result
74
+ const result = stripCodeFences(rawResult);
73
75
  // Write file directly if requested
74
76
  if (writeFile) {
75
77
  writeFileWithDirs(filePath, result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-design-mcp",
3
- "version": "3.6.7",
3
+ "version": "3.6.8",
4
4
  "description": "MCP server that uses Gemini 3 Pro for frontend/design code generation",
5
5
  "main": "build/index.js",
6
6
  "bin": {