@infino-ai/mcp-server 0.9.0 → 0.10.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.
package/README.md CHANGED
@@ -67,7 +67,7 @@ else (the tools, the read-only default) is identical:
67
67
  "command": "npx",
68
68
  "args": ["-y", "@infino-ai/mcp-server"],
69
69
  "env": {
70
- "INFINO_MCP_URI": "https://api.platform.infino.ai/my-database",
70
+ "INFINO_MCP_URI": "https://api.platform.infino.ws/my-database",
71
71
  "INFINO_API_KEY": "inf_…"
72
72
  }
73
73
  }
@@ -255,7 +255,7 @@ The model must match what produced the stored vectors — a mismatch yields mean
255
255
 
256
256
  // Infino Cloud (hosted) — the database is the last path segment
257
257
  "env": {
258
- "INFINO_MCP_URI": "https://api.platform.infino.ai/my-database",
258
+ "INFINO_MCP_URI": "https://api.platform.infino.ws/my-database",
259
259
  "INFINO_API_KEY": "inf_…"
260
260
  }
261
261
  ```
package/dist/index.js CHANGED
@@ -197,11 +197,18 @@ function errText(err) {
197
197
  }
198
198
  return message;
199
199
  }
200
- // When the caller doesn't name a column, search the first UTF-8 text column in
201
- // the table's schema. (A table can have several; an explicit `column` overrides.)
200
+ // When the caller doesn't name a column, infer the searchable text column.
201
+ // FTS indexes require LargeUtf8, so a LargeUtf8 column is almost certainly
202
+ // the indexed one; plain Utf8 columns are typically ids and short labels.
203
+ // Prefer LargeUtf8, fall back to the first Utf8. (An explicit `column`
204
+ // always overrides.)
202
205
  function inferTextColumn(table) {
203
- const field = table.schema().fields.find((f) => String(f.type).toLowerCase().includes("utf8"));
204
- return field?.name;
206
+ const fields = table.schema().fields;
207
+ const large = fields.find((f) => String(f.type).toLowerCase().includes("largeutf8"));
208
+ if (large)
209
+ return large.name;
210
+ const any = fields.find((f) => String(f.type).toLowerCase().includes("utf8"));
211
+ return any?.name;
205
212
  }
206
213
  // The first list-typed column (the vector index lives on a FixedSizeList<float32>).
207
214
  function inferVectorColumn(table) {
@@ -526,7 +533,7 @@ server.registerTool("infino_sql", {
526
533
  .string()
527
534
  .describe("A single read-only SELECT or WITH statement. May use search TVFs and {{name}} vector placeholders."),
528
535
  embed: z
529
- .record(z.string())
536
+ .record(z.string(), z.string())
530
537
  .optional()
531
538
  .describe("Map of placeholder name -> query text. Each text is embedded with the server's embedder and its vector " +
532
539
  "is substituted for every {{name}} in the query — required to use vector_search / hybrid_search. " +
@@ -553,7 +560,7 @@ if (writesEnabled) {
553
560
  inputSchema: {
554
561
  table: z.string().describe("Table to append to."),
555
562
  documents: z
556
- .array(z.record(z.any()))
563
+ .array(z.record(z.string(), z.any()))
557
564
  .min(1)
558
565
  .describe("Rows to append, as JSON objects keyed by column name."),
559
566
  },
@@ -580,7 +587,7 @@ if (writesEnabled) {
580
587
  .string()
581
588
  .describe("SQL predicate selecting the rows to replace, e.g. \"status = 'draft'\"."),
582
589
  documents: z
583
- .array(z.record(z.any()))
590
+ .array(z.record(z.string(), z.any()))
584
591
  .min(1)
585
592
  .describe("Replacement rows, as JSON objects keyed by column name (one per matched row)."),
586
593
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infino-ai/mcp-server",
3
- "version": "0.9.0",
3
+ "version": "0.10.2",
4
4
  "description": "MCP server for Infino — keyword, vector, hybrid, and SQL retrieval over data on object storage, for AI agents.",
5
5
  "mcpName": "io.github.infino-ai/mcp-server",
6
6
  "license": "Apache-2.0",
@@ -52,11 +52,11 @@
52
52
  "dependencies": {
53
53
  "@huggingface/transformers": "^4.2.0",
54
54
  "@infino-ai/infino": "^0.5.1",
55
- "@modelcontextprotocol/sdk": "^1.29.0",
56
- "zod": "^3.23.0"
55
+ "@modelcontextprotocol/sdk": "^1.30.0",
56
+ "zod": "^4.4.3"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/node": "^20",
60
- "typescript": "^5"
59
+ "@types/node": "^26",
60
+ "typescript": "^7"
61
61
  }
62
62
  }