@infino-ai/mcp-server 0.10.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 +2 -2
- package/dist/index.js +11 -4
- package/package.json +1 -1
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.
|
|
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.
|
|
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,
|
|
201
|
-
//
|
|
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
|
|
204
|
-
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infino-ai/mcp-server",
|
|
3
|
-
"version": "0.10.
|
|
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",
|