@centrali-io/centrali-mcp 6.17.0 → 8.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
@@ -94,11 +94,6 @@ After connecting, call `describe_centrali` first — it returns the full capabil
94
94
  | `describe_orchestrations` | Orchestration reference (multi-step workflows, encrypted params) |
95
95
  | `describe_insights` | Anomaly insights reference |
96
96
  | `describe_validation` | Data validation reference |
97
- | `describe_pages` | Pages builder reference |
98
- | `describe_page_definition` | Page definition schema (blocks, layouts) |
99
- | `describe_page_blocks` | Available block types for pages |
100
- | `describe_page_actions` | Page action system reference |
101
- | `describe_navigation` | Navigation configuration reference |
102
97
  | `describe_auth_providers` | Auth provider reference (BYOT setup, claim mappings) |
103
98
  | `describe_service_accounts` | Service account & IAM reference (SA setup, roles, groups, permissions) |
104
99
  | `describe_webhooks` | Outbound webhook reference (subscription shape, signature, retry/replay) |
@@ -295,7 +290,11 @@ Run a saved query on a cron and notify people when its result meets a condition.
295
290
 
296
291
  `execute_saved_query` accepts an unbound optional and leaves the raw `${name}` in the body; the query then filters on the literal placeholder, matches nothing, and reports no error. Interactively that's visible — the caller sees an empty result. On a cron nobody is watching, so the alert would simply never fire and `lastEvaluatedAt` would keep advancing as though healthy. Authoring is the last point where the gap is noticeable, so it fails there with a 400 naming each offending variable.
297
292
 
298
- **Diagnosing "it never fired".** `get_alert` exposes `lastEvaluatedAt`, `lastTriggeredAt`, and `lastRowCount`. A null or stale `lastEvaluatedAt` means the alert is disabled or its evaluations are erroring (failures are logged and skipped, leaving the row untouched). A current `lastEvaluatedAt` with a null `lastTriggeredAt` means the query runs fine and the condition isn't matching — compare the alert's `variables` against the saved query's declarations.
293
+ **Diagnosing "it never fired".** `get_alert` exposes `lastEvaluatedAt`, `lastTriggeredAt`, `lastRowCount`, and the health fields `consecutiveFailures`, `lastError`, `lastErrorAt`.
294
+
295
+ Check `consecutiveFailures` first. Non-zero means the saved query behind the alert is erroring, so the alert is scheduled and enabled but cannot fire; `lastError` carries the sanitized reason and `lastErrorAt` when it last happened. The commonest cause is a collection or field renamed out from under the query. The counter is a run length that resets on the first successful evaluation, so a `0` rules the entire failure class out rather than merely suggesting health.
296
+
297
+ With `consecutiveFailures` at `0`, a null or stale `lastEvaluatedAt` means the alert is disabled or was never scheduled. A current `lastEvaluatedAt` with a null `lastTriggeredAt` means the query runs fine and the condition isn't matching — compare the alert's `variables` against the saved query's declarations.
299
298
 
300
299
  ### Orchestrations
301
300
  | Tool | Description |
@@ -330,29 +329,6 @@ Run a saved query on a cron and notify people when its result meets a condition.
330
329
  | `reject_validation_suggestion` | Reject a suggestion |
331
330
  | `get_validation_summary` | Get validation summary counts |
332
331
 
333
- ### Pages
334
- | Tool | Description |
335
- |------|-------------|
336
- | `list_pages` | List all pages in the workspace |
337
- | `get_page` | Get a page by ID |
338
- | `create_page` | Create a new page (list, detail, form, or dashboard) |
339
- | `update_page` | Update page metadata (name, slug, description) |
340
- | `delete_page` | Soft-delete a page |
341
- | `save_page_draft` | Save or update a page's draft definition |
342
- | `get_page_draft` | Get the current draft of a page |
343
- | `list_page_versions` | List all versions of a page |
344
- | `validate_page` | Validate a page draft before publishing |
345
- | `publish_page` | Publish a page to its runtime URL |
346
- | `unpublish_page` | Unpublish a page |
347
- | `set_page_access_policy` | Set access policy (public, authenticated, role-gated) |
348
- | `get_page_theme` | Get workspace page theme |
349
- | `set_page_theme` | Set workspace page theme (colors, logo, font) |
350
- | `get_navigation` | Get workspace navigation config |
351
- | `set_navigation` | Set workspace navigation config |
352
- | `delete_navigation` | Delete navigation config (revert to standalone pages) |
353
- | `generate_starter_pages` | Generate page proposals from structure IDs |
354
- | `accept_page_proposal` | Accept a generated proposal and create the page |
355
-
356
332
  ### Service Accounts & IAM
357
333
  | Tool | Description |
358
334
  |------|-------------|
package/dist/index.js CHANGED
@@ -22,7 +22,6 @@ const alerts_js_1 = require("./tools/alerts.js");
22
22
  const orchestrations_js_1 = require("./tools/orchestrations.js");
23
23
  const insights_js_1 = require("./tools/insights.js");
24
24
  const validation_js_1 = require("./tools/validation.js");
25
- const pages_js_1 = require("./tools/pages.js");
26
25
  const describe_js_1 = require("./tools/describe.js");
27
26
  const auth_providers_js_1 = require("./tools/auth-providers.js");
28
27
  const service_accounts_js_1 = require("./tools/service-accounts.js");
@@ -80,7 +79,6 @@ function main() {
80
79
  (0, orchestrations_js_1.registerOrchestrationTools)(server, sdk);
81
80
  (0, insights_js_1.registerInsightTools)(server, sdk);
82
81
  (0, validation_js_1.registerValidationTools)(server, sdk);
83
- (0, pages_js_1.registerPageTools)(server, sdk, baseUrl, workspaceId);
84
82
  (0, auth_providers_js_1.registerAuthProviderTools)(server, sdk, baseUrl, workspaceId);
85
83
  (0, service_accounts_js_1.registerServiceAccountTools)(server, sdk, baseUrl, workspaceId, {
86
84
  clientId,
@@ -35,7 +35,7 @@ const RECIPIENTS_HINT = `'recipients' is an explicit list of users — [{ "type"
35
35
 
36
36
  There is no MCP tool that enumerates workspace users, so do NOT guess or construct user IDs. Ask the user for the IDs (they can copy them from the console's workspace members page), or have them create the alert in the console UI where the recipient picker searches members by name.`;
37
37
  function registerAlertTools(server, sdk) {
38
- (0, _register_js_1.registerTool)(server, "list_alerts", "List saved-query alerts in the workspace. Each row includes the alert's schedule, condition, recipients, whether it is enabled, and its evaluation history ('lastEvaluatedAt', 'lastTriggeredAt', 'lastRowCount'). Alerts on saved queries the caller can't read are omitted rather than failing the call. Optionally filter to one saved query.", {
38
+ (0, _register_js_1.registerTool)(server, "list_alerts", "List saved-query alerts in the workspace. Each row includes the alert's schedule, condition, recipients, whether it is enabled, its evaluation history ('lastEvaluatedAt', 'lastTriggeredAt', 'lastRowCount'), and its health ('consecutiveFailures', 'lastError', 'lastErrorAt'). A non-zero 'consecutiveFailures' means the alert is enabled and scheduled but its saved query is erroring, so it cannot fire. Alerts on saved queries the caller can't read are omitted rather than failing the call. Optionally filter to one saved query.", {
39
39
  savedQueryId: zod_1.z
40
40
  .string()
41
41
  .optional()
@@ -60,7 +60,9 @@ function registerAlertTools(server, sdk) {
60
60
  }));
61
61
  (0, _register_js_1.registerTool)(server, "get_alert", `Get a saved-query alert by ID, including its bound 'variables', schedule, condition, recipients, and evaluation history.
62
62
 
63
- Diagnosing an alert that "never fires": check 'lastEvaluatedAt' first. If it is null or stale, the alert is disabled or its evaluations are failing (a query error is logged and skipped, leaving the row untouched). If it is current but 'lastTriggeredAt' stays null, the query is running fine and the condition simply isn't matching — compare the alert's 'variables' against the saved query's declarations via get_saved_query, since a placeholder the alert leaves unbound filters on a literal that matches nothing.`, {
63
+ Diagnosing an alert that "never fires": check 'consecutiveFailures' first. If it is non-zero the saved query is erroring and the alert cannot fire — 'lastError' carries the sanitized reason and 'lastErrorAt' when it last happened. The commonest cause is a collection or field renamed out from under the query. The counter resets on the first successful run, so a zero rules the whole failure class out.
64
+
65
+ If 'consecutiveFailures' is 0, the query is executing fine and the question is the condition. A null or stale 'lastEvaluatedAt' then means the alert is disabled or was never scheduled. A current 'lastEvaluatedAt' with 'lastTriggeredAt' still null means the condition simply isn't matching — compare the alert's 'variables' against the saved query's declarations via get_saved_query, since a placeholder the alert leaves unbound filters on a literal that matches nothing.`, {
64
66
  alertId: zod_1.z.string().describe("The alert ID (UUID)"),
65
67
  }, (_a) => __awaiter(this, [_a], void 0, function* ({ alertId }) {
66
68
  try {