@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 +5 -29
- package/dist/index.js +0 -2
- package/dist/tools/alerts.js +4 -2
- package/dist/tools/describe.js +12 -856
- package/package.json +2 -2
- package/src/index.ts +0 -2
- package/src/tools/alerts.ts +4 -2
- package/src/tools/describe.ts +12 -1009
- package/dist/tools/pages.d.ts +0 -3
- package/dist/tools/pages.js +0 -512
- package/src/tools/pages.ts +0 -615
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@centrali-io/centrali-mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.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": "^
|
|
28
|
+
"@centrali-io/centrali-sdk": "^8.0.0",
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.28.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { registerAlertTools } from "./tools/alerts.js";
|
|
|
12
12
|
import { registerOrchestrationTools } from "./tools/orchestrations.js";
|
|
13
13
|
import { registerInsightTools } from "./tools/insights.js";
|
|
14
14
|
import { registerValidationTools } from "./tools/validation.js";
|
|
15
|
-
import { registerPageTools } from "./tools/pages.js";
|
|
16
15
|
import { registerDescribeTools } from "./tools/describe.js";
|
|
17
16
|
import { registerAuthProviderTools } from "./tools/auth-providers.js";
|
|
18
17
|
import { registerServiceAccountTools } from "./tools/service-accounts.js";
|
|
@@ -77,7 +76,6 @@ async function main() {
|
|
|
77
76
|
registerOrchestrationTools(server, sdk);
|
|
78
77
|
registerInsightTools(server, sdk);
|
|
79
78
|
registerValidationTools(server, sdk);
|
|
80
|
-
registerPageTools(server, sdk, baseUrl, workspaceId);
|
|
81
79
|
registerAuthProviderTools(server, sdk, baseUrl, workspaceId);
|
|
82
80
|
registerServiceAccountTools(server, sdk, baseUrl, workspaceId, {
|
|
83
81
|
clientId,
|
package/src/tools/alerts.ts
CHANGED
|
@@ -33,7 +33,7 @@ There is no MCP tool that enumerates workspace users, so do NOT guess or constru
|
|
|
33
33
|
export function registerAlertTools(server: McpServer, sdk: CentraliSDK) {
|
|
34
34
|
registerTool<any>(server,
|
|
35
35
|
"list_alerts",
|
|
36
|
-
"List saved-query alerts in the workspace. Each row includes the alert's schedule, condition, recipients, whether it is enabled,
|
|
36
|
+
"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.",
|
|
37
37
|
{
|
|
38
38
|
savedQueryId: z
|
|
39
39
|
.string()
|
|
@@ -63,7 +63,9 @@ export function registerAlertTools(server: McpServer, sdk: CentraliSDK) {
|
|
|
63
63
|
"get_alert",
|
|
64
64
|
`Get a saved-query alert by ID, including its bound 'variables', schedule, condition, recipients, and evaluation history.
|
|
65
65
|
|
|
66
|
-
Diagnosing an alert that "never fires": check '
|
|
66
|
+
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.
|
|
67
|
+
|
|
68
|
+
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.`,
|
|
67
69
|
{
|
|
68
70
|
alertId: z.string().describe("The alert ID (UUID)"),
|
|
69
71
|
},
|