@centrali-io/centrali-mcp 8.1.0 → 9.0.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
@@ -88,7 +88,6 @@ After connecting, call `describe_centrali` first — it returns the full capabil
88
88
  | `describe_centrali` | Platform overview, feature matrix, SDK integration guidance, and list of all tools |
89
89
  | `describe_collections` | Schema reference for collections (data models, field types, constraints) |
90
90
  | `describe_records` | Schema reference for record operations (filters, sorting, pagination, expand) |
91
- | `describe_search` | Schema reference for full-text search |
92
91
  | `describe_compute` | Compute function reference (input contract, secrets, async execution, api object) |
93
92
  | `describe_saved_queries` | Saved-query schema reference (parameterized queries, variables) |
94
93
  | `describe_orchestrations` | Orchestration reference (multi-step workflows, encrypted params) |
@@ -119,11 +118,6 @@ After connecting, call `describe_centrali` first — it returns the full capabil
119
118
  | `delete_record` | Soft or hard delete a record |
120
119
  | `restore_record` | Restore a soft-deleted record |
121
120
 
122
- ### Search
123
- | Tool | Description |
124
- |------|-------------|
125
- | `search_records` | Full-text search across workspace records |
126
-
127
121
  ### Compute
128
122
  | Tool | Description |
129
123
  |------|-------------|
package/dist/index.js CHANGED
@@ -15,7 +15,6 @@ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
15
15
  const centrali_sdk_1 = require("@centrali-io/centrali-sdk");
16
16
  const structures_js_1 = require("./tools/structures.js");
17
17
  const records_js_1 = require("./tools/records.js");
18
- const search_js_1 = require("./tools/search.js");
19
18
  const compute_js_1 = require("./tools/compute.js");
20
19
  const saved_queries_js_1 = require("./tools/saved-queries.js");
21
20
  const alerts_js_1 = require("./tools/alerts.js");
@@ -72,7 +71,6 @@ function main() {
72
71
  (0, structures_js_1.registerCollectionTools)(server, sdk, baseUrl, workspaceId);
73
72
  (0, structures_js_1.registerStructureTools)(server, sdk);
74
73
  (0, records_js_1.registerRecordTools)(server, sdk, baseUrl, workspaceId);
75
- (0, search_js_1.registerSearchTools)(server, sdk);
76
74
  (0, compute_js_1.registerComputeTools)(server, sdk, baseUrl, workspaceId);
77
75
  (0, saved_queries_js_1.registerSavedQueryTools)(server, sdk);
78
76
  (0, alerts_js_1.registerAlertTools)(server, sdk);
@@ -57,11 +57,6 @@ function registerDescribeTools(server) {
57
57
  "restore_record",
58
58
  ],
59
59
  },
60
- search: {
61
- summary: "Full-text search across records powered by Meilisearch. Can filter by collection.",
62
- describeWith: "describe_search",
63
- tools: ["search_records"],
64
- },
65
60
  compute: {
66
61
  summary: "Server-side JavaScript functions with triggers (on-demand, event-driven, scheduled, http-trigger) and domain allowlisting for external API calls.",
67
62
  describeWith: "describe_compute",
@@ -239,7 +234,6 @@ function registerDescribeTools(server) {
239
234
  description: "Different tools use different parameter names for the same concept (collection identifier). This is a historical naming drift — all of these refer to the same thing.",
240
235
  aliases: {
241
236
  recordSlug: "Used across all tools — the collection's URL-safe identifier (e.g., 'orders').",
242
- collections: "Used by search_records. Same value as recordSlug. Accepts a string or array of strings.",
243
237
  },
244
238
  rule: "When a tool asks for recordSlug or collections — use the collection's slug (e.g., 'orders').",
245
239
  },
@@ -693,36 +687,6 @@ function registerDescribeTools(server) {
693
687
  ],
694
688
  });
695
689
  }));
696
- // ── Search ─────────────────────────────────────────────────────────
697
- (0, _register_js_1.registerTool)(server, "describe_search", "Get the schema reference for Centrali full-text search. Explains search behavior, filtering, and result format.", {}, () => __awaiter(this, void 0, void 0, function* () {
698
- return ({
699
- content: [
700
- {
701
- type: "text",
702
- text: JSON.stringify({
703
- domain: "Search",
704
- description: "Full-text search across all records in the workspace, powered by Meilisearch. Searches across all indexed text fields in records.",
705
- parameters: {
706
- query: "string — the search query. Supports natural language, partial matches, and typo tolerance.",
707
- collections: "string | string[] — optional filter to limit search to specific collection(s) by slug",
708
- limit: "number — max results (default: 20, max: 100)",
709
- },
710
- result_shape: {
711
- hits: "Array of matching records with _rankingScore",
712
- query: "The original search query",
713
- processingTimeMs: "Search duration in milliseconds",
714
- },
715
- tips: [
716
- "Search is typo-tolerant — 'custmer' will match 'customer'",
717
- "Use the collections filter to narrow results to a specific data type",
718
- "Results are ranked by relevance — most relevant first",
719
- "Search only works on text/string fields — numeric fields are not full-text indexed",
720
- ],
721
- }, null, 2),
722
- },
723
- ],
724
- });
725
- }));
726
690
  // ── Compute ────────────────────────────────────────────────────────
727
691
  (0, _register_js_1.registerTool)(server, "describe_compute", "Get the schema reference for Centrali compute functions and triggers. Explains function types, trigger execution modes, and invocation patterns.", {}, () => __awaiter(this, void 0, void 0, function* () {
728
692
  return ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centrali-io/centrali-mcp",
3
- "version": "8.1.0",
3
+ "version": "9.0.0",
4
4
  "description": "Centrali MCP Server - AI assistant integration for Centrali workspaces",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -25,7 +25,7 @@
25
25
  "author": "Blueinit",
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@centrali-io/centrali-sdk": "^8.1.0",
28
+ "@centrali-io/centrali-sdk": "^9.0.0",
29
29
  "@modelcontextprotocol/sdk": "^1.28.0"
30
30
  },
31
31
  "devDependencies": {
package/src/index.ts CHANGED
@@ -5,7 +5,6 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
5
5
  import { CentraliSDK } from "@centrali-io/centrali-sdk";
6
6
  import { registerStructureTools, registerCollectionTools } from "./tools/structures.js";
7
7
  import { registerRecordTools } from "./tools/records.js";
8
- import { registerSearchTools } from "./tools/search.js";
9
8
  import { registerComputeTools } from "./tools/compute.js";
10
9
  import { registerSavedQueryTools } from "./tools/saved-queries.js";
11
10
  import { registerAlertTools } from "./tools/alerts.js";
@@ -69,7 +68,6 @@ async function main() {
69
68
  registerCollectionTools(server, sdk, baseUrl, workspaceId);
70
69
  registerStructureTools(server, sdk);
71
70
  registerRecordTools(server, sdk, baseUrl, workspaceId);
72
- registerSearchTools(server, sdk);
73
71
  registerComputeTools(server, sdk, baseUrl, workspaceId);
74
72
  registerSavedQueryTools(server, sdk);
75
73
  registerAlertTools(server, sdk);
@@ -55,12 +55,6 @@ export function registerDescribeTools(server: McpServer) {
55
55
  "restore_record",
56
56
  ],
57
57
  },
58
- search: {
59
- summary:
60
- "Full-text search across records powered by Meilisearch. Can filter by collection.",
61
- describeWith: "describe_search",
62
- tools: ["search_records"],
63
- },
64
58
  compute: {
65
59
  summary:
66
60
  "Server-side JavaScript functions with triggers (on-demand, event-driven, scheduled, http-trigger) and domain allowlisting for external API calls.",
@@ -248,7 +242,6 @@ export function registerDescribeTools(server: McpServer) {
248
242
  description: "Different tools use different parameter names for the same concept (collection identifier). This is a historical naming drift — all of these refer to the same thing.",
249
243
  aliases: {
250
244
  recordSlug: "Used across all tools — the collection's URL-safe identifier (e.g., 'orders').",
251
- collections: "Used by search_records. Same value as recordSlug. Accepts a string or array of strings.",
252
245
  },
253
246
  rule: "When a tool asks for recordSlug or collections — use the collection's slug (e.g., 'orders').",
254
247
  },
@@ -742,48 +735,6 @@ export function registerDescribeTools(server: McpServer) {
742
735
  })
743
736
  );
744
737
 
745
- // ── Search ─────────────────────────────────────────────────────────
746
-
747
- registerTool<any>(server,
748
- "describe_search",
749
- "Get the schema reference for Centrali full-text search. Explains search behavior, filtering, and result format.",
750
- {},
751
- async () => ({
752
- content: [
753
- {
754
- type: "text",
755
- text: JSON.stringify(
756
- {
757
- domain: "Search",
758
- description:
759
- "Full-text search across all records in the workspace, powered by Meilisearch. Searches across all indexed text fields in records.",
760
- parameters: {
761
- query:
762
- "string — the search query. Supports natural language, partial matches, and typo tolerance.",
763
- collections:
764
- "string | string[] — optional filter to limit search to specific collection(s) by slug",
765
- limit: "number — max results (default: 20, max: 100)",
766
- },
767
- result_shape: {
768
- hits: "Array of matching records with _rankingScore",
769
- query: "The original search query",
770
- processingTimeMs: "Search duration in milliseconds",
771
- },
772
- tips: [
773
- "Search is typo-tolerant — 'custmer' will match 'customer'",
774
- "Use the collections filter to narrow results to a specific data type",
775
- "Results are ranked by relevance — most relevant first",
776
- "Search only works on text/string fields — numeric fields are not full-text indexed",
777
- ],
778
- },
779
- null,
780
- 2
781
- ),
782
- },
783
- ],
784
- })
785
- );
786
-
787
738
  // ── Compute ────────────────────────────────────────────────────────
788
739
 
789
740
  registerTool<any>(server,
@@ -1,3 +0,0 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { CentraliSDK } from "@centrali-io/centrali-sdk";
3
- export declare function registerSearchTools(server: McpServer, sdk: CentraliSDK): void;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.registerSearchTools = registerSearchTools;
13
- const zod_1 = require("zod");
14
- const _register_js_1 = require("./_register.js");
15
- function registerSearchTools(server, sdk) {
16
- (0, _register_js_1.registerTool)(server, "search_records", "Full-text search across records in the workspace. Powered by Meilisearch. Optionally filter by collection(s) and limit results.", {
17
- query: zod_1.z.string().describe("The search query string"),
18
- collections: zod_1.z
19
- .union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
20
- .optional()
21
- .describe("Filter by collection record slug(s). Single slug string or array of slugs"),
22
- limit: zod_1.z
23
- .number()
24
- .optional()
25
- .describe("Maximum results to return (default: 20, max: 100)"),
26
- }, (_a) => __awaiter(this, [_a], void 0, function* ({ query, collections, limit }) {
27
- try {
28
- const options = {};
29
- if (collections) {
30
- options.collections = collections;
31
- }
32
- if (limit)
33
- options.limit = limit;
34
- const result = yield sdk.search(query, Object.keys(options).length > 0 ? options : undefined);
35
- return {
36
- content: [
37
- { type: "text", text: JSON.stringify(result.data, null, 2) },
38
- ],
39
- };
40
- }
41
- catch (error) {
42
- return {
43
- content: [
44
- {
45
- type: "text",
46
- text: (0, _register_js_1.formatError)(error, "searching records"),
47
- },
48
- ],
49
- isError: true,
50
- };
51
- }
52
- }));
53
- }
@@ -1,58 +0,0 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { CentraliSDK } from "@centrali-io/centrali-sdk";
3
- import { z } from "zod";
4
- import { registerTool, formatError } from "./_register.js";
5
-
6
- export function registerSearchTools(server: McpServer, sdk: CentraliSDK) {
7
- registerTool<{
8
- query: string;
9
- collections?: string | string[];
10
- limit?: number;
11
- }>(
12
- server,
13
- "search_records",
14
- "Full-text search across records in the workspace. Powered by Meilisearch. Optionally filter by collection(s) and limit results.",
15
- {
16
- query: z.string().describe("The search query string"),
17
- collections: z
18
- .union([z.string(), z.array(z.string())])
19
- .optional()
20
- .describe(
21
- "Filter by collection record slug(s). Single slug string or array of slugs"
22
- ),
23
- limit: z
24
- .number()
25
- .optional()
26
- .describe("Maximum results to return (default: 20, max: 100)"),
27
- },
28
- async ({ query, collections, limit }) => {
29
- try {
30
- const options: { collections?: string | string[]; limit?: number } = {};
31
- if (collections) {
32
- options.collections = collections;
33
- }
34
- if (limit) options.limit = limit;
35
-
36
- const result = await sdk.search(
37
- query,
38
- Object.keys(options).length > 0 ? options : undefined
39
- );
40
- return {
41
- content: [
42
- { type: "text", text: JSON.stringify(result.data, null, 2) },
43
- ],
44
- };
45
- } catch (error: unknown) {
46
- return {
47
- content: [
48
- {
49
- type: "text",
50
- text: formatError(error, "searching records"),
51
- },
52
- ],
53
- isError: true,
54
- };
55
- }
56
- }
57
- );
58
- }