@aaa-sentinel/mcp-server 0.10.2 → 0.12.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 +3 -0
- package/dist/cli.js +71 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,6 +149,9 @@ status as plain JSON.
|
|
|
149
149
|
| `get_monitoring_incident` | `incidentId` | `monitoring:read` | Pro |
|
|
150
150
|
| `list_status_pages` | — | `monitoring:read` | Pro |
|
|
151
151
|
| `get_status_page` | `pageId` | `monitoring:read` | Pro |
|
|
152
|
+
| `list_deployments` | `service?`, `environment?`, `accountId?`, `monitoringServiceId?`, `from?`, `to?`, `limit?`, `cursor?` | `deployments:read` | Pro |
|
|
153
|
+
| `list_budgets` | — | `budgets:read` | Pro |
|
|
154
|
+
| `get_budget` | `budgetId` | `budgets:read` | Pro |
|
|
152
155
|
|
|
153
156
|
In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
|
|
154
157
|
`governance`. `source` is one of `own`, `corroborated`, `securityhub`, `guardduty`, `defender`,
|
package/dist/cli.js
CHANGED
|
@@ -5924,6 +5924,31 @@ function superRefine(fn, params) {
|
|
|
5924
5924
|
return _superRefine(fn, params);
|
|
5925
5925
|
}
|
|
5926
5926
|
|
|
5927
|
+
// ../../node_modules/zod/v4/classic/iso.js
|
|
5928
|
+
var iso_exports = {};
|
|
5929
|
+
__export(iso_exports, {
|
|
5930
|
+
ZodISODate: () => ZodISODate,
|
|
5931
|
+
ZodISODateTime: () => ZodISODateTime,
|
|
5932
|
+
ZodISODuration: () => ZodISODuration,
|
|
5933
|
+
ZodISOTime: () => ZodISOTime,
|
|
5934
|
+
date: () => date2,
|
|
5935
|
+
datetime: () => datetime2,
|
|
5936
|
+
duration: () => duration2,
|
|
5937
|
+
time: () => time2
|
|
5938
|
+
});
|
|
5939
|
+
function datetime2(params) {
|
|
5940
|
+
return _isoDateTime(ZodISODateTime, params);
|
|
5941
|
+
}
|
|
5942
|
+
function date2(params) {
|
|
5943
|
+
return _isoDate(ZodISODate, params);
|
|
5944
|
+
}
|
|
5945
|
+
function time2(params) {
|
|
5946
|
+
return _isoTime(ZodISOTime, params);
|
|
5947
|
+
}
|
|
5948
|
+
function duration2(params) {
|
|
5949
|
+
return _isoDuration(ZodISODuration, params);
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5927
5952
|
// src/api-client.ts
|
|
5928
5953
|
var ApiError = class extends Error {
|
|
5929
5954
|
constructor(status, message) {
|
|
@@ -6686,6 +6711,51 @@ var TOOLS = [
|
|
|
6686
6711
|
inputSchema: objectWith({ pageId: { type: "string", description: "Status page identifier, as returned by list_status_pages." } }, ["pageId"]),
|
|
6687
6712
|
argsSchema: object({ pageId: string2().min(1) }),
|
|
6688
6713
|
handler: async ({ pageId }, config2) => withoutPrivateLink(await apiGet(`/v1/monitoring/status-pages/${encodeURIComponent(pageId)}`, void 0, config2))
|
|
6714
|
+
}),
|
|
6715
|
+
// ── Despliegues ────────────────────────────────────────────
|
|
6716
|
+
defineTool({
|
|
6717
|
+
name: "list_deployments",
|
|
6718
|
+
description: 'List the deployment markers the organization records from its CI/CD pipelines (service, environment, version, commit, cloud account, linked monitoring service, start and end time), newest first. Use it to answer "what was deployed right before this incident or this cost jump": cost data is daily, so compare a cost anomaly with the deployments of that day and the day before; monitoring incidents are per minute. Without from/to it covers the last 7 days; the range can span at most 93 days. Paginated: pass the returned "nextCursor" as "cursor". Requires the deployments:read scope.',
|
|
6719
|
+
inputSchema: objectWith({
|
|
6720
|
+
service: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]{0,63}$", description: "Only this service, exactly as the pipeline sent it (optional)." },
|
|
6721
|
+
environment: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]{0,63}$", description: 'Only this environment, e.g. "production" (optional).' },
|
|
6722
|
+
accountId: { ...ACCOUNT_ID, description: "Only the deployments to this cloud account, as returned by list_accounts (optional)." },
|
|
6723
|
+
monitoringServiceId: { ...SERVICE_ID, description: "Only the deployments linked to this monitoring service, as returned by list_monitoring_services (optional)." },
|
|
6724
|
+
from: { type: "string", format: "date-time", description: "Start of the range, ISO 8601 (optional)." },
|
|
6725
|
+
to: { type: "string", format: "date-time", description: "End of the range, ISO 8601 (optional)." },
|
|
6726
|
+
limit: { type: "integer", minimum: 1, maximum: 200, description: "Page size (optional)." },
|
|
6727
|
+
cursor: CURSOR
|
|
6728
|
+
}),
|
|
6729
|
+
argsSchema: object({
|
|
6730
|
+
service: string2().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/).optional(),
|
|
6731
|
+
environment: string2().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/).optional(),
|
|
6732
|
+
accountId: string2().min(1).optional(),
|
|
6733
|
+
monitoringServiceId: string2().min(1).optional(),
|
|
6734
|
+
from: iso_exports.datetime({ offset: true }).optional(),
|
|
6735
|
+
to: iso_exports.datetime({ offset: true }).optional(),
|
|
6736
|
+
limit: number2().int().min(1).max(200).optional(),
|
|
6737
|
+
cursor: string2().min(1).optional()
|
|
6738
|
+
}),
|
|
6739
|
+
handler: async ({ service, environment, accountId, monitoringServiceId, from, to, limit, cursor }, config2) => apiGet("/v1/deployments", { service, environment, accountId, monitoringServiceId, from, to, limit: asText(limit), cursor }, config2)
|
|
6740
|
+
}),
|
|
6741
|
+
// ── Presupuestos ───────────────────────────────────────────
|
|
6742
|
+
defineTool({
|
|
6743
|
+
name: "list_budgets",
|
|
6744
|
+
description: `List the organization's cloud budgets with their status this month: monthly amount and currency, scope (whole organization, one account, or one billing service), spend so far, the month at the current pace ("forecast"), percent used and state (ok, warning, over, no_data, estimated). Spend comes from the daily cost scan; amounts are in the budget currency and "approximate" is true when they were converted from USD. Use it to answer "are we within budget this month". Requires the budgets:read scope.`,
|
|
6745
|
+
inputSchema: { type: "object", properties: {} },
|
|
6746
|
+
argsSchema: object({}),
|
|
6747
|
+
handler: async (_args, config2) => apiGet("/v1/budgets", void 0, config2)
|
|
6748
|
+
}),
|
|
6749
|
+
defineTool({
|
|
6750
|
+
name: "get_budget",
|
|
6751
|
+
description: "Get one budget by id with its status this month and the last six months of spend against its amount. Requires the budgets:read scope.",
|
|
6752
|
+
inputSchema: {
|
|
6753
|
+
type: "object",
|
|
6754
|
+
properties: { budgetId: { type: "string", description: "Budget identifier (bud_\u2026), as returned by list_budgets." } },
|
|
6755
|
+
required: ["budgetId"]
|
|
6756
|
+
},
|
|
6757
|
+
argsSchema: object({ budgetId: string2().min(1) }),
|
|
6758
|
+
handler: async ({ budgetId }, config2) => apiGet(`/v1/budgets/${encodeURIComponent(budgetId)}`, void 0, config2)
|
|
6689
6759
|
})
|
|
6690
6760
|
];
|
|
6691
6761
|
function withoutPrivateLink(page) {
|
|
@@ -6699,7 +6769,7 @@ function findTool(name) {
|
|
|
6699
6769
|
|
|
6700
6770
|
// src/protocol.ts
|
|
6701
6771
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6702
|
-
var SERVER_VERSION = "0.
|
|
6772
|
+
var SERVER_VERSION = "0.12.0";
|
|
6703
6773
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6704
6774
|
var PARSE_ERROR = -32700;
|
|
6705
6775
|
var INVALID_REQUEST = -32600;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aaa-sentinel/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Read-only MCP server for AAA Sentinel: query cloud costs, savings, security posture, AI spend, uptime monitoring, the remediation agent and managed clients from an AI assistant",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|