@aaa-sentinel/mcp-server 0.18.3 → 0.19.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 +1 -0
  2. package/dist/cli.js +12 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -134,6 +134,7 @@ status as plain JSON.
134
134
  | `get_client` | `clientId` | `clients:read` | Business |
135
135
  | `get_client_billing` | `clientId` | `clients:read` | Business |
136
136
  | `get_agent_dashboard` | `clientId?` | `agent:read` | Business |
137
+ | `get_agent_auto_approval` | — | `agent:read` | Business |
137
138
  | `list_agent_actions` | `status?`, `accountId?`, `type?`, `limit?`, `cursor?` | `agent:read` | Business |
138
139
  | `get_agent_action` | `actionId` | `agent:read` | Business |
139
140
  | `list_agent_history` | `status?`, `limit?`, `cursor?` | `agent:read` | Business |
package/dist/cli.js CHANGED
@@ -6215,7 +6215,7 @@ var TOOLS = [
6215
6215
  }),
6216
6216
  defineTool({
6217
6217
  name: "get_cost_forecast",
6218
- description: `Forecast the spend of a cloud account for the next 3 months from the trend of its closed months. The current month is a month-to-date figure ("partial"): it only enters the trend projected once half of it has passed; months read before closing are flagged "incomplete", and "criteriaChangedIn" says when a cost criterion change left older months out. cost, savings, predictedCost, lowerBound and upperBound are USD; costConverted, savingsConverted, predictedCostConverted, lowerBoundConverted and upperBoundConverted are in the organization currency at the rate of their month. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
6218
+ description: `Forecast the spend of a cloud account for the next 3 months from the trend of its closed months. The current month is a month-to-date figure ("partial"): it only enters the trend projected once half of it has passed; months read before closing are flagged "incomplete", and "criteriaChangedIn" says when a cost criterion change left older months out. Historical months with "previousCriteria" true were read with the previous cost criterion: they are listed but do not enter the projection. cost, savings, predictedCost, lowerBound and upperBound are USD; costConverted, savingsConverted, predictedCostConverted, lowerBoundConverted and upperBoundConverted are in the organization currency at the rate of their month. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
6219
6219
  inputSchema: {
6220
6220
  type: "object",
6221
6221
  properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
@@ -6548,21 +6548,21 @@ var TOOLS = [
6548
6548
  // ── Clientes gestionados (MSP) ─────────────────────────────
6549
6549
  defineTool({
6550
6550
  name: "list_clients",
6551
- description: "List the managed clients of an MSP or consultancy. Start here to obtain a clientId. Requires the clients:read scope and the Business plan.",
6551
+ description: "List the managed clients of an MSP or consultancy. Start here to obtain a clientId. marginPct (the MSP markup on the client) is only returned with the billing:read scope. Requires the clients:read scope and the Business plan.",
6552
6552
  inputSchema: { type: "object", properties: {} },
6553
6553
  argsSchema: object({}),
6554
6554
  handler: async (_args, config2) => apiGet("/v1/clients", void 0, config2)
6555
6555
  }),
6556
6556
  defineTool({
6557
6557
  name: "get_client",
6558
- description: "Get one managed client with the cloud accounts and AI connections assigned to it. Requires the clients:read scope and the Business plan.",
6558
+ description: "Get one managed client with the cloud accounts and AI connections assigned to it. marginPct (the MSP markup on the client) is only returned with the billing:read scope. Requires the clients:read scope and the Business plan.",
6559
6559
  inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
6560
6560
  argsSchema: object({ clientId: string2().min(1) }),
6561
6561
  handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}`, void 0, config2)
6562
6562
  }),
6563
6563
  defineTool({
6564
6564
  name: "get_client_billing",
6565
- description: `Get the billing base of one managed client: its cost by account plus the configured margin, ready to invoice. lines[].cost, margin and total, subtotal, marginAmount and total are in the billing currency named by the response "currency" string: the client's currency, else the organization currency, or USD when there is no exchange rate, so it can differ from the organization currency in displayCurrency. Only with a USD billing currency do lines carry costConverted in the organization currency. Requires the clients:read scope and the Business plan.`,
6565
+ description: `Get the billing base of one managed client: its cost by account plus the configured margin, ready to invoice. lines[].cost, margin and total, subtotal, marginAmount and total are in the billing currency named by the response "currency" string: the client's currency, else the organization currency, or USD when there is no exchange rate, so it can differ from the organization currency in displayCurrency. Only with a USD billing currency do lines carry costConverted in the organization currency. The markup and margin are confidential: marginPct, marginAmount, total and each line margin and total only come with the billing:read scope; without it the response has only the cost per line and the subtotal. Requires the clients:read scope and the Business plan.`,
6566
6566
  inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
6567
6567
  argsSchema: object({ clientId: string2().min(1) }),
6568
6568
  handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}/billing`, void 0, config2)
@@ -6575,6 +6575,13 @@ var TOOLS = [
6575
6575
  argsSchema: object({ clientId: string2().min(1).optional() }),
6576
6576
  handler: async ({ clientId: clientId2 }, config2) => apiGet(clientId2 ? `/v1/clients/${encodeURIComponent(clientId2)}/agent/dashboard` : "/v1/agent/dashboard", void 0, config2)
6577
6577
  }),
6578
+ defineTool({
6579
+ name: "get_agent_auto_approval",
6580
+ description: 'Get the agent auto-approval rule: whether it is on, the maximum estimated savings per action it approves on its own (maxMonthlySavingsUsd, in USD per month; there is no organization-currency sibling), since when it counts, and how many actions it approved today against the daily cap. Only low-risk reversible cloud savings actions from a finding qualify: stopping or resizing a virtual machine, changing a bucket or storage account storage class, and on Azure moving Cosmos DB or Azure SQL to pay-per-use. The agent reads the resource tags live with its own credentials before approving and again right before running; only the tags on the resource itself count (not Azure resource group or subscription tags). A protected or production resource, one whose tags cannot be read, or a machine that would lose a local or temporary disk, a non-static public IP, or its place in a scaling group when stopped or resized is never auto-approved. Actions already sent to a person for approval are not auto-approved afterwards. Deletions, high-risk actions, second approvals, playbooks that ask for approval and actions without a grace period never qualify. They still wait for the grace period and maintenance windows and can be cancelled. Auto-approved actions carry autoApproved: true and approvedBy "rule:auto_approval". Requires the agent:read scope and the Business plan.',
6581
+ inputSchema: objectWith({}),
6582
+ argsSchema: object({}),
6583
+ handler: async (_args, config2) => apiGet("/v1/agent/auto-approval", void 0, config2)
6584
+ }),
6578
6585
  defineTool({
6579
6586
  name: "list_agent_actions",
6580
6587
  description: 'List the remediation actions proposed or executed by the autonomous agent, newest first, with optional filters. Use status "pending_approval" to see what is waiting for a human. estimatedSavingsUsd and verifiedSavingsUsd are USD; estimatedSavings and verifiedSavings are the same amounts in the organization currency (currency.code, approximate). Paginated: pass the returned cursor to get the next page. Requires the agent:read scope and the Business plan.',
@@ -6876,7 +6883,7 @@ function findTool(name) {
6876
6883
 
6877
6884
  // src/protocol.ts
6878
6885
  var SERVER_NAME = "aaa-sentinel-mcp";
6879
- var SERVER_VERSION = "0.18.3";
6886
+ var SERVER_VERSION = "0.19.0";
6880
6887
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6881
6888
  var PARSE_ERROR = -32700;
6882
6889
  var INVALID_REQUEST = -32600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaa-sentinel/mcp-server",
3
- "version": "0.18.3",
3
+ "version": "0.19.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",