@infino-ai/mcp-server 0.13.0 → 0.14.0

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
@@ -4,11 +4,12 @@
4
4
  [![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.infino--ai%2Fmcp--server-blue)](https://registry.modelcontextprotocol.io/?search=io.github.infino-ai/mcp-server)
5
5
  [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-green.svg)](./LICENSE)
6
6
 
7
- An [MCP](https://modelcontextprotocol.io) server for [Infino](https://github.com/infino-ai/infino) — it lets an AI agent run **keyword**, **semantic**, **hybrid**, and **SQL** retrieval over your data on object storage, from any MCP-compatible client (Claude Code, Claude Desktop, Cursor, VS Code, and others). Published on npm as [`@infino-ai/mcp-server`](https://www.npmjs.com/package/@infino-ai/mcp-server) and listed on the [official MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.infino-ai/mcp-server` (which propagates to catalogs like Smithery, Glama, and PulseMCP).
7
+ An [MCP](https://modelcontextprotocol.io) server for [Infino](https://github.com/infino-ai/infino) — it lets an AI agent run **keyword**, **semantic**, **hybrid**, and **SQL** retrieval over your data on object storage — the retrieval layer for RAG, persistent agent memory, and search over your own files — from any MCP-compatible client (Claude Code, Claude Desktop, Cursor, VS Code, and others). Published on npm as [`@infino-ai/mcp-server`](https://www.npmjs.com/package/@infino-ai/mcp-server) and listed on the [official MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.infino-ai/mcp-server` (which propagates to catalogs like Smithery, Glama, and PulseMCP).
8
8
 
9
9
  - **Local embeddings, no key.** Semantic search embeds queries with a local model — nothing leaves the machine for embedding.
10
10
  - **The agent owns the data.** Every tool, writes included, is always available. On Infino Cloud the API key's capabilities decide what a connection may do; every tool carries MCP annotations so your client can ask before a destructive call.
11
11
  - **Local or hosted.** Point it at a local path, your own bucket (S3, Azure, or any S3-compatible store), or a hosted Infino Cloud endpoint with an API key.
12
+ - **The index is a valid Parquet file.** A table stores the data and its search indexes in plain Parquet on the storage — open the same file with DuckDB or pyarrow. No export, no lock-in.
12
13
 
13
14
  ---
14
15
 
@@ -37,7 +38,7 @@ An [MCP](https://modelcontextprotocol.io) server for [Infino](https://github.com
37
38
 
38
39
  ## Requirements
39
40
 
40
- - **Node.js ≥ 18** (the server runs as a Node process over stdio).
41
+ - **Node.js ≥ 20** (the server runs as a Node process over stdio).
41
42
  - **An MCP-compatible client** (Claude Code, Claude Desktop, Cursor, VS Code, …).
42
43
  - **Data reachable by Infino** — a local directory, a bucket with credentials available in the environment, or a hosted Infino Cloud endpoint with an API key (see [Storage backends](#storage-backends)).
43
44
  - On first run the server downloads the local embedding model (~90 MB) once and caches it; subsequent runs are offline for embedding.
package/dist/embedding.js CHANGED
@@ -32,8 +32,7 @@ const USE_REMOTE = PROVIDER === "openai" ||
32
32
  (PROVIDER === "" && typeof BASE_URL === "string" && BASE_URL.length > 0);
33
33
  const LOCAL_MODEL_DEFAULT = "Xenova/all-MiniLM-L6-v2";
34
34
  const REMOTE_MODEL_DEFAULT = "text-embedding-3-small";
35
- const MODEL = process.env.INFINO_MCP_EMBED_MODEL ??
36
- (USE_REMOTE ? REMOTE_MODEL_DEFAULT : LOCAL_MODEL_DEFAULT);
35
+ const MODEL = process.env.INFINO_MCP_EMBED_MODEL ?? (USE_REMOTE ? REMOTE_MODEL_DEFAULT : LOCAL_MODEL_DEFAULT);
37
36
  // Batch sizes. The local pipeline runs one forward pass per call, so a batch
38
37
  // amortizes model overhead across texts without letting the ONNX arenas grow
39
38
  // past what a handful of documents needs. The remote size stays well inside
package/dist/index.js CHANGED
@@ -309,7 +309,8 @@ async function embedRows(handle, rows, table) {
309
309
  const server = new McpServer({ name: "infino", version: "0.1.0" }, {
310
310
  instructions: "Infino is an embedded retrieval engine for data on object storage: full-text (BM25), vector, " +
311
311
  "hybrid, and SQL search over one copy of the data, in-process, with no separate server or managed " +
312
- "service. These tools retrieve from a connected catalog of tables.\n\n" +
312
+ "service. Tables are stored as valid Parquet; DuckDB or pyarrow can read the same files. These tools " +
313
+ "retrieve from a connected catalog of tables.\n\n" +
313
314
  "Pick a tool by the question shape:\n" +
314
315
  "- infino_keyword_search — literal terms, identifiers, error codes, names (ranked BM25).\n" +
315
316
  "- infino_semantic_search — meaning or paraphrase when the exact wording is unknown; its optional " +
@@ -425,7 +426,10 @@ server.registerTool("infino_create_table", {
425
426
  spec = spec.vector(VECTOR_COLUMN, dim, "cosine");
426
427
  vectorColumns.push(VECTOR_COLUMN);
427
428
  }
428
- const ftsColumns = fts ?? Object.entries(columns).filter(([, t]) => t === "large_utf8").map(([n]) => n);
429
+ const ftsColumns = fts ??
430
+ Object.entries(columns)
431
+ .filter(([, t]) => t === "large_utf8")
432
+ .map(([n]) => n);
429
433
  for (const col of ftsColumns) {
430
434
  if (!(col in descriptor))
431
435
  return fail(`create_table: fts column '${col}' is not in 'columns'.`);
@@ -607,7 +611,10 @@ server.registerTool("infino_hybrid_search", {
607
611
  query: z.string().describe("Query text; matched as keyword terms AND embedded for vector similarity."),
608
612
  k: z.number().int().positive().max(100).default(10).describe("Maximum results."),
609
613
  column: z.string().optional().describe("Text column for the keyword half; inferred if omitted."),
610
- vectorColumn: z.string().optional().describe("Vector column for the semantic half; inferred if omitted."),
614
+ vectorColumn: z
615
+ .string()
616
+ .optional()
617
+ .describe("Vector column for the semantic half; inferred if omitted."),
611
618
  mode: z
612
619
  .enum(["or", "and"])
613
620
  .optional()
@@ -673,7 +680,14 @@ server.registerTool("infino_token_match", {
673
680
  if (!col)
674
681
  return fail(`token_match: no text column in '${table}' — pass 'column'.`);
675
682
  const { value: rows, tookMs } = timed(() => handle.tokenMatch(col, query, { mode, projection: [col, "_id"] }));
676
- return ok({ table, column: col, query, matched: rows.length, results: rows.slice(0, limit), took_ms: tookMs });
683
+ return ok({
684
+ table,
685
+ column: col,
686
+ query,
687
+ matched: rows.length,
688
+ results: rows.slice(0, limit),
689
+ took_ms: tookMs,
690
+ });
677
691
  }
678
692
  catch (err) {
679
693
  return fail(`token_match failed: ${errText(err)}`);
@@ -704,7 +718,14 @@ server.registerTool("infino_exact_match", {
704
718
  if (!col)
705
719
  return fail(`exact_match: no column found in '${table}' — pass 'column'.`);
706
720
  const { value: rows, tookMs } = timed(() => handle.exactMatch(col, value, { projection: [col, "_id"] }));
707
- return ok({ table, column: col, value, matched: rows.length, results: rows.slice(0, limit), took_ms: tookMs });
721
+ return ok({
722
+ table,
723
+ column: col,
724
+ value,
725
+ matched: rows.length,
726
+ results: rows.slice(0, limit),
727
+ took_ms: tookMs,
728
+ });
708
729
  }
709
730
  catch (err) {
710
731
  return fail(`exact_match failed: ${errText(err)}`);
@@ -750,12 +771,14 @@ server.registerTool("infino_sql", {
750
771
  "can rank AND aggregate: bm25_search('table','text_col','terms', k) — also bm25_search_prefix / token_match / " +
751
772
  "exact_match — need no embedding. vector_search('table','vec_col', {{q}}, k) and " +
752
773
  "hybrid_search('table','text_col','terms','vec_col', {{q}}, k) need a query vector: put a {{name}} placeholder " +
753
- "where the vector goes and pass embed:{\"name\":\"query text\"} — the server embeds the text and substitutes the " +
774
+ 'where the vector goes and pass embed:{"name":"query text"} — the server embeds the text and substitutes the ' +
754
775
  "vector in. Example: SELECT path, SUM(end_line - start_line + 1) AS lines FROM " +
755
776
  "bm25_search('docs','body','error timeout', 300) GROUP BY path ORDER BY lines DESC. " +
756
777
  "Any single statement is allowed, DDL/DML included.",
757
778
  inputSchema: {
758
- query: z.string().describe("A single SQL statement. May use search TVFs and {{name}} vector placeholders."),
779
+ query: z
780
+ .string()
781
+ .describe("A single SQL statement. May use search TVFs and {{name}} vector placeholders."),
759
782
  embed: z
760
783
  .record(z.string(), z.string())
761
784
  .optional()
@@ -838,9 +861,7 @@ server.registerTool("infino_delete_documents", {
838
861
  "removed. Check the predicate first with infino_count or infino_sql. Requires durable storage (not memory://).",
839
862
  inputSchema: {
840
863
  table: z.string().describe("Table to delete from."),
841
- predicate: z
842
- .string()
843
- .describe("SQL predicate selecting the rows to delete, e.g. \"status = 'spam'\"."),
864
+ predicate: z.string().describe("SQL predicate selecting the rows to delete, e.g. \"status = 'spam'\"."),
844
865
  },
845
866
  }, async ({ table, predicate }) => {
846
867
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infino-ai/mcp-server",
3
- "version": "0.13.0",
4
- "description": "MCP server for Infino — keyword, vector, hybrid, and SQL retrieval over data on object storage, for AI agents.",
3
+ "version": "0.14.0",
4
+ "description": "MCP server for Infino — keyword, semantic, hybrid, and SQL retrieval for AI agents: RAG, persistent agent memory, and search over data stored as plain Parquet on object storage. Local embeddings, no API key.",
5
5
  "mcpName": "io.github.infino-ai/mcp-server",
6
6
  "license": "Apache-2.0",
7
7
  "homepage": "https://github.com/infino-ai/infino-mcp#readme",
@@ -26,7 +26,10 @@
26
26
  "agent-memory",
27
27
  "object-storage",
28
28
  "embeddings",
29
- "ai"
29
+ "ai",
30
+ "parquet",
31
+ "s3",
32
+ "semantic-search"
30
33
  ],
31
34
  "type": "module",
32
35
  "bin": {
@@ -37,7 +40,7 @@
37
40
  "dist"
38
41
  ],
39
42
  "engines": {
40
- "node": ">=18"
43
+ "node": ">=20"
41
44
  },
42
45
  "publishConfig": {
43
46
  "access": "public"
@@ -47,16 +50,25 @@
47
50
  "watch": "tsc --watch",
48
51
  "start": "node dist/index.js",
49
52
  "pretest": "npm run build",
50
- "test": "node --test"
53
+ "test": "node --test",
54
+ "lint": "eslint . --max-warnings 0",
55
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.mjs\" \"scripts/**/*.mjs\" eslint.config.js",
56
+ "format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.mjs\" \"scripts/**/*.mjs\" eslint.config.js",
57
+ "audit:gate": "node scripts/audit-gate.mjs"
51
58
  },
52
59
  "dependencies": {
53
60
  "@huggingface/transformers": "^4.2.0",
54
- "@infino-ai/infino": "^0.5.8",
61
+ "@infino-ai/infino": "^0.6.0",
55
62
  "@modelcontextprotocol/sdk": "^1.30.0",
56
- "zod": "^4.5.1"
63
+ "zod": "^4.5.4"
57
64
  },
58
65
  "devDependencies": {
66
+ "@eslint/js": "^10.0.1",
59
67
  "@types/node": "^26",
60
- "typescript": "^7"
68
+ "eslint": "^10.10.0",
69
+ "globals": "^17.12.0",
70
+ "prettier": "^3.9.6",
71
+ "typescript": "^6.0.3",
72
+ "typescript-eslint": "^8.69.0"
61
73
  }
62
74
  }