@aaa-sentinel/mcp-server 0.10.1 → 0.11.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.
Files changed (3) hide show
  1. package/README.md +9 -15
  2. package/dist/cli.js +52 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,19 +7,12 @@ accounts is bleeding the most money this month, and why"*, *"what is down right
7
7
  much have we spent on AI this month"* in the chat window you already have open instead of a
8
8
  dashboard you have to remember to visit.
9
9
 
10
- > **User** — Which account has the most waste right now?
11
- >
12
- > **Assistant** *(calls `list_accounts`, then `get_reports_summary`, then `list_findings`)* —
13
- > `prod-eu-west-1` accounts for $4,180/mo of the $9,240 total, and $1,730 of that is recoverable:
14
- > 11 unattached EBS volumes ($412/mo), 3 idle RDS instances ($980/mo) and an over-provisioned
15
- > NAT gateway ($338/mo).
16
-
17
- > **User** — Why was checkout failing this morning?
18
- >
19
- > **Assistant** *(calls `list_monitoring_services`, then `get_service_history`, then `list_monitor_results`)* —
20
- > *Checkout* went down at 07:42 UTC and recovered at 08:05. The culprit was *Payments API*: 23
21
- > consecutive checks timed out after 5 s, confirmed from a second region. The other two components
22
- > stayed healthy.
10
+ For example, when you ask *"which account has the most waste right now?"*, the assistant calls
11
+ `list_accounts`, then `get_reports_summary` and `list_findings`, and answers with your own
12
+ figures: which account costs the most, how much of it the open findings could save each month and
13
+ which resources those findings point at. When you ask *"why was checkout failing this
14
+ morning?"*, it calls `list_monitoring_services`, `get_service_history` and `list_monitor_results`
15
+ and tells you when the service went down, when it recovered and which component failed.
23
16
 
24
17
  ## Requirements
25
18
 
@@ -44,7 +37,7 @@ clients use the same shape of configuration file.
44
37
  "mcpServers": {
45
38
  "aaa-sentinel": {
46
39
  "command": "npx",
47
- "args": ["--yes", "@aaa-sentinel/mcp-server"],
40
+ "args": ["--yes", "@aaa-sentinel/mcp-server@latest"],
48
41
  "env": {
49
42
  "AAA_SENTINEL_MCP_CLIENT_ID": "your-client-id",
50
43
  "AAA_SENTINEL_MCP_CLIENT_SECRET": "your-client-secret"
@@ -66,7 +59,7 @@ could be committed:
66
59
  "aaa-sentinel": {
67
60
  "type": "stdio",
68
61
  "command": "npx",
69
- "args": ["--yes", "@aaa-sentinel/mcp-server"],
62
+ "args": ["--yes", "@aaa-sentinel/mcp-server@latest"],
70
63
  "env": {
71
64
  "AAA_SENTINEL_MCP_CLIENT_ID": "your-client-id",
72
65
  "AAA_SENTINEL_MCP_CLIENT_SECRET": "${input:sentinel-secret}"
@@ -156,6 +149,7 @@ status as plain JSON.
156
149
  | `get_monitoring_incident` | `incidentId` | `monitoring:read` | Pro |
157
150
  | `list_status_pages` | — | `monitoring:read` | Pro |
158
151
  | `get_status_page` | `pageId` | `monitoring:read` | Pro |
152
+ | `list_deployments` | `service?`, `environment?`, `accountId?`, `monitoringServiceId?`, `from?`, `to?`, `limit?`, `cursor?` | `deployments:read` | Pro |
159
153
 
160
154
  In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
161
155
  `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,32 @@ 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)
6689
6740
  })
6690
6741
  ];
6691
6742
  function withoutPrivateLink(page) {
@@ -6699,7 +6750,7 @@ function findTool(name) {
6699
6750
 
6700
6751
  // src/protocol.ts
6701
6752
  var SERVER_NAME = "aaa-sentinel-mcp";
6702
- var SERVER_VERSION = "0.10.1";
6753
+ var SERVER_VERSION = "0.11.0";
6703
6754
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6704
6755
  var PARSE_ERROR = -32700;
6705
6756
  var INVALID_REQUEST = -32600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaa-sentinel/mcp-server",
3
- "version": "0.10.1",
3
+ "version": "0.11.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",