gemini-design-mcp 3.6.10 → 3.6.12

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,3 +1,3 @@
1
1
  export type ThinkingMode = "minimal" | "low" | "medium" | "high";
2
2
  export declare const DEFAULT_MODEL = "gemini-3-flash-preview";
3
- export declare function generateWithGemini(systemPrompt: string, userPrompt: string, model?: string, thinkingMode?: ThinkingMode): Promise<string>;
3
+ export declare function generateWithGemini(systemPrompt: string, userPrompt: string, model?: string, thinkingMode?: ThinkingMode, endpoint?: string): Promise<string>;
@@ -1,5 +1,5 @@
1
1
  // API Proxy endpoint
2
- const PROXY_URL = "https://brave-turtle-253.convex.site/v1/generate";
2
+ const PROXY_URL = "https://dashing-alpaca-785.convex.site/v1/generate";
3
3
  // Default model - Gemini 3 Flash Preview
4
4
  export const DEFAULT_MODEL = "gemini-3-flash-preview";
5
5
  // Get and validate API key
@@ -15,7 +15,7 @@ function getApiKey() {
15
15
  }
16
16
  return apiKey;
17
17
  }
18
- export async function generateWithGemini(systemPrompt, userPrompt, model = DEFAULT_MODEL, thinkingMode = "minimal") {
18
+ export async function generateWithGemini(systemPrompt, userPrompt, model = DEFAULT_MODEL, thinkingMode = "minimal", endpoint = "generate") {
19
19
  const apiKey = getApiKey();
20
20
  try {
21
21
  const response = await fetch(PROXY_URL, {
@@ -26,6 +26,7 @@ export async function generateWithGemini(systemPrompt, userPrompt, model = DEFAU
26
26
  },
27
27
  body: JSON.stringify({
28
28
  model,
29
+ endpoint,
29
30
  contents: [
30
31
  {
31
32
  role: "user",
@@ -71,7 +71,7 @@ TECH STACK: ${techStack}
71
71
  FILE PATH: ${filePath}
72
72
 
73
73
  Remember: Return a COMPLETE file ready to save at ${filePath}`.trim();
74
- const rawResult = await generateWithGemini(systemPrompt, request, undefined, "high");
74
+ const rawResult = await generateWithGemini(systemPrompt, request, undefined, "high", "create_frontend");
75
75
  // Strip markdown code fences from the result
76
76
  const result = stripCodeFences(rawResult);
77
77
  // Write file directly if requested
@@ -46,8 +46,8 @@ export async function generateVibes(params) {
46
46
  }
47
47
  const userPrompt = contextParts.join("\n");
48
48
  const result = await generateWithGemini(GENERATE_VIBES_PROMPT, userPrompt, undefined, // default model
49
- "high" // high thinking for creative vibes
50
- );
49
+ "high", // high thinking for creative vibes
50
+ "generate_vibes");
51
51
  // Parse the JSON response
52
52
  try {
53
53
  // Clean the response (remove potential markdown code blocks)
@@ -50,7 +50,7 @@ ${targetCode}
50
50
  MODIFICATION REQUESTED: ${modification}
51
51
 
52
52
  Remember: Return ONLY the find/replace block. ONE modification, surgical precision.`.trim();
53
- const result = await generateWithGemini(systemPrompt, modification, undefined, "minimal");
53
+ const result = await generateWithGemini(systemPrompt, modification, undefined, "minimal", "modify_frontend");
54
54
  // Apply modification directly if requested
55
55
  if (writeFile) {
56
56
  const fileContent = readFileIfExists(filePath);
@@ -55,7 +55,7 @@ INSERTION CONTEXT:
55
55
  ${insertionContext}
56
56
 
57
57
  Generate a snippet that will integrate smoothly at this location.`.trim();
58
- const result = await generateWithGemini(systemPrompt, request, undefined, "minimal");
58
+ const result = await generateWithGemini(systemPrompt, request, undefined, "minimal", "snippet_frontend");
59
59
  // Insert snippet directly if requested
60
60
  if (writeFile) {
61
61
  if (!lineNumber && !pattern) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-design-mcp",
3
- "version": "3.6.10",
3
+ "version": "3.6.12",
4
4
  "description": "MCP server that uses Gemini 3 Pro for frontend/design code generation",
5
5
  "main": "build/index.js",
6
6
  "bin": {