@aaa-sentinel/mcp-server 0.26.2 → 0.28.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 +3 -1
  2. package/dist/cli.js +20 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -153,7 +153,7 @@ status as plain JSON.
153
153
  | `list_monitoring_services` | — | `monitoring:read` | Pro |
154
154
  | `get_monitoring_service` | `serviceId` | `monitoring:read` | Pro |
155
155
  | `get_service_history` | `serviceId`, `limit?` | `monitoring:read` | Pro |
156
- | `list_monitoring_incidents` | `state?`, `monitorId?`, `limit?`, `before?` | `monitoring:read` | Pro |
156
+ | `list_monitoring_incidents` | `state?`, `monitorId?`, `severity?`, `limit?`, `before?` | `monitoring:read` | Pro |
157
157
  | `get_monitoring_incident` | `incidentId` | `monitoring:read` | Pro |
158
158
  | `list_status_pages` | — | `monitoring:read` | Pro |
159
159
  | `get_status_page` | `pageId` | `monitoring:read` | Pro |
@@ -168,6 +168,8 @@ status as plain JSON.
168
168
  | `get_team_costs` | — | `owners:read` | Business |
169
169
  | `get_tag_policy` | `clientId?` | `tagging:read` | Pro |
170
170
  | `get_tag_coverage` | `period?` | `reports:read` | Business |
171
+ | `list_finops_scopes` | — | `allocation:read` | Business |
172
+ | `get_allocation_rules` | — | `allocation:read` | Business |
171
173
 
172
174
  In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
173
175
  `governance`; it returns the 50 largest, not paginated (`count` and `hasMore` say whether there are
package/dist/cli.js CHANGED
@@ -6769,20 +6769,22 @@ var TOOLS = [
6769
6769
  }),
6770
6770
  defineTool({
6771
6771
  name: "list_monitoring_incidents",
6772
- description: 'List monitoring incidents (each alerted outage, from when it started until it recovered), newest first, with duration, who acknowledged it and what it cost: the business impact per minute set on the monitor and, for cloud resources, an approximate cloud cost. impact.amount, impact.perMinute.amount and cloudCost.amount are in the organization currency when they could be converted and otherwise stay in the currency set on the monitor or billed (impact.original keeps the configured amount): read the "currency" next to each amount; nothing here ends in Usd. This answers "what is on fire and who is on it". Filter by state (open or resolved) or monitor. Paginated: pass the returned "nextCursor" as "before"; a page can come back short or empty with a cursor. Requires the monitoring:read scope and the Pro plan or above.',
6772
+ description: 'List monitoring incidents (each alerted outage, from when it started until it recovered), newest first, with duration, who acknowledged it and what it cost: the business impact per minute set on the monitor and, for cloud resources, an approximate cloud cost. impact.amount, impact.perMinute.amount and cloudCost.amount are in the organization currency when they could be converted and otherwise stay in the currency set on the monitor or billed (impact.original keeps the configured amount): read the "currency" next to each amount; nothing here ends in Usd. This answers "what is on fire and who is on it". Filter by state (open or resolved), monitor or severity (the one the monitor had when the incident opened). Paginated: pass the returned "nextCursor" as "before"; a page can come back short or empty with a cursor. Requires the monitoring:read scope and the Pro plan or above.',
6773
6773
  inputSchema: objectWith({
6774
6774
  state: { type: "string", enum: ["open", "resolved"], description: "Only open or only resolved incidents (optional)." },
6775
6775
  monitorId: { ...MONITOR_ID, description: "Only the incidents of this monitor (optional)." },
6776
+ severity: { type: "string", enum: ["critical", "high", "medium", "low"], description: "Only incidents of this severity (optional)." },
6776
6777
  limit: { type: "integer", minimum: 1, maximum: 200, description: "Page size (default 50)." },
6777
6778
  before: { type: "string", description: 'The "nextCursor" value of the previous page (optional).' }
6778
6779
  }),
6779
6780
  argsSchema: object({
6780
6781
  state: _enum(["open", "resolved"]).optional(),
6781
6782
  monitorId: string2().min(1).optional(),
6783
+ severity: _enum(["critical", "high", "medium", "low"]).optional(),
6782
6784
  limit: number2().int().min(1).max(200).optional(),
6783
6785
  before: string2().min(1).optional()
6784
6786
  }),
6785
- handler: async ({ state, monitorId, limit, before }, config2) => apiGet("/v1/monitoring/incidents", { state, monitorId, limit: asText(limit), before }, config2)
6787
+ handler: async ({ state, monitorId, severity, limit, before }, config2) => apiGet("/v1/monitoring/incidents", { state, monitorId, severity, limit: asText(limit), before }, config2)
6786
6788
  }),
6787
6789
  defineTool({
6788
6790
  name: "get_monitoring_incident",
@@ -6921,6 +6923,21 @@ var TOOLS = [
6921
6923
  inputSchema: objectWith({ period: { ...BILLING_PERIOD, description: "Closed month as YYYY-MM (optional; default the last closed month)." } }, []),
6922
6924
  argsSchema: object({ period: BillingPeriod.optional() }),
6923
6925
  handler: async ({ period }, config2) => apiGet("/v1/finops/tag-coverage", { period }, config2)
6926
+ }),
6927
+ // ── Ámbitos y reglas de reparto ────────────────────────────
6928
+ defineTool({
6929
+ name: "list_finops_scopes",
6930
+ description: "List the scopes the organization defined to follow its spend: each one is some accounts (accountIds null means every account, also those connected later) and at most one filter, by the values of an allocation tag key, by teams or by services (filter null means all the cost of those accounts). kind is product, cost_center, environment or custom; monthlyBudget, when set, is compared with each closed month in the currency it was set in. Definitions only, without cost. Changing scopes stays in the console, the API or Terraform. Requires the allocation:read scope (owner only) and a token that sees the whole organization; scopes and rules are only created on the Business plan.",
6931
+ inputSchema: objectWith({}, []),
6932
+ argsSchema: object({}),
6933
+ handler: async (_args, config2) => apiGet("/v1/finops/scopes", void 0, config2)
6934
+ }),
6935
+ defineTool({
6936
+ name: "get_allocation_rules",
6937
+ description: "Get the rules that allocate shared costs, in the order they apply (each one allocates what the previous one left): the source pool (a team, or the unallocated cost), the targets (some teams, or all teams with cost), the FinOps Foundation method (fixed with weights that add up to 100, proportional to direct cost, even, or by a business metric cut by team), the months it applies (from, to) and whether it is enabled. Unallocated cost is never spread without a rule. Changing the rules stays in the console, the API or Terraform. Requires the allocation:read scope (owner only) and a token that sees the whole organization; scopes and rules are only created on the Business plan.",
6938
+ inputSchema: objectWith({}, []),
6939
+ argsSchema: object({}),
6940
+ handler: async (_args, config2) => apiGet("/v1/finops/allocation/rules", void 0, config2)
6924
6941
  })
6925
6942
  ];
6926
6943
  function withoutPrivateLink(page) {
@@ -6934,7 +6951,7 @@ function findTool(name) {
6934
6951
 
6935
6952
  // src/protocol.ts
6936
6953
  var SERVER_NAME = "aaa-sentinel-mcp";
6937
- var SERVER_VERSION = "0.26.2";
6954
+ var SERVER_VERSION = "0.28.0";
6938
6955
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6939
6956
  var PARSE_ERROR = -32700;
6940
6957
  var INVALID_REQUEST = -32600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaa-sentinel/mcp-server",
3
- "version": "0.26.2",
3
+ "version": "0.28.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",