gemini-design-mcp 3.2.0 → 3.2.1

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,4 +1,4 @@
1
- import { GoogleGenAI } from "@google/genai";
1
+ import { GoogleGenAI, ThinkingLevel } from "@google/genai";
2
2
  const apiKey = process.env.GEMINI_API_KEY;
3
3
  if (!apiKey) {
4
4
  console.error("ERROR: GEMINI_API_KEY environment variable is required");
@@ -6,7 +6,7 @@ if (!apiKey) {
6
6
  process.exit(1);
7
7
  }
8
8
  export const ai = new GoogleGenAI({ apiKey });
9
- // Default model - Gemini 3 Pro Preview (best for design)
9
+ // Default model - Gemini 3 Flash Preview (best for design)
10
10
  export const DEFAULT_MODEL = "gemini-3-flash-preview";
11
11
  export async function generateWithGemini(systemPrompt, userPrompt, model = DEFAULT_MODEL) {
12
12
  try {
@@ -15,6 +15,10 @@ export async function generateWithGemini(systemPrompt, userPrompt, model = DEFAU
15
15
  contents: userPrompt,
16
16
  config: {
17
17
  systemInstruction: systemPrompt,
18
+ temperature: 1,
19
+ thinkingConfig: {
20
+ thinkingLevel: ThinkingLevel.LOW,
21
+ },
18
22
  },
19
23
  });
20
24
  return response.text ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-design-mcp",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "MCP server that uses Gemini 3 Pro for frontend/design code generation",
5
5
  "main": "build/index.js",
6
6
  "bin": {