prism-mcp-server 2.1.1 → 2.1.2

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.
@@ -32,7 +32,7 @@
32
32
  * sending to the API, not after.
33
33
  * ═══════════════════════════════════════════════════════════════════
34
34
  */
35
- import { GoogleGenerativeAI } from "@google/generative-ai";
35
+ import { GoogleGenerativeAI, TaskType } from "@google/generative-ai";
36
36
  import { GOOGLE_API_KEY } from "../config.js";
37
37
  // ─── Constants ────────────────────────────────────────────────
38
38
  // REVIEWER NOTE: Maximum characters to send to the embedding API.
@@ -84,6 +84,13 @@ export async function generateEmbedding(text) {
84
84
  const model = genAI.getGenerativeModel({ model: "gemini-embedding-001" }, { apiVersion: "v1beta" } // gemini-embedding-001 requires v1beta
85
85
  );
86
86
  console.error(`[embedding] Generating 768-dim embedding for ${inputText.length} chars`);
87
- const result = await model.embedContent(inputText);
87
+ const result = await model.embedContent({
88
+ content: {
89
+ role: "user",
90
+ parts: [{ text: inputText }],
91
+ },
92
+ taskType: TaskType.SEMANTIC_SIMILARITY,
93
+ outputDimensionality: 768,
94
+ });
88
95
  return result.embedding.values;
89
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prism-mcp-server",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "mcpName": "io.github.dcostenco/prism-mcp",
5
5
  "description": "The Mind Palace for AI Agents — local-first MCP server with persistent memory (SQLite/Supabase), visual dashboard, time travel, multi-agent sync, Morning Briefings, reality drift detection, code mode templates, semantic vector search, and Brave Search + Gemini analysis. Zero-config local mode.",
6
6
  "module": "index.ts",