@aaa-sentinel/mcp-server 0.18.3 → 0.20.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 +1 -0
- package/dist/cli.js +21 -8
- 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
|
@@ -6088,6 +6088,7 @@ async function apiGet(path, query, config2) {
|
|
|
6088
6088
|
function defineTool(def) {
|
|
6089
6089
|
return def;
|
|
6090
6090
|
}
|
|
6091
|
+
var FINOPS_CAPABILITIES = ["data_ingestion", "allocation", "reporting_analytics", "anomaly_management", "planning_estimating", "forecasting", "budgeting", "kpis_benchmarking", "unit_economics", "architecting_workload_placement", "usage_optimization", "rate_optimization", "licensing_saas", "sustainability", "executive_strategy_alignment", "finops_practice_operations", "governance_policy_risk", "finops_education_enablement", "invoicing_chargeback", "finops_assessment", "automation_tools_services", "intersecting_disciplines"];
|
|
6091
6092
|
var SAVINGS_TYPES = ["compute", "storage", "network", "database", "serverless", "governance"];
|
|
6092
6093
|
var AMOUNTS_NOTE = "Amounts: a field ending in Converted is always in the organization currency (currency.code, approximate) and a field ending in Usd is always USD; quote those, because a bare name such as totalMonthlyCost or savings is USD in some responses and converted in others.";
|
|
6093
6094
|
var SECURITY_SOURCES = ["own", "corroborated", "securityhub", "guardduty", "defender", "scc"];
|
|
@@ -6144,7 +6145,7 @@ var TOOLS = [
|
|
|
6144
6145
|
}),
|
|
6145
6146
|
defineTool({
|
|
6146
6147
|
name: "list_findings",
|
|
6147
|
-
description: `List the waste and risk findings of a scan, each with its severity and estimated monthly saving. This is the tool that answers "where is the money going". estimatedMonthlySavingsUsd is USD; estimatedMonthlySavings and estimatedMonthlySavingsConverted are the same amount in the organization currency. ${AMOUNTS_NOTE} Requires the findings:read scope.`,
|
|
6148
|
+
description: `List the waste and risk findings of a scan, each with its severity and estimated monthly saving. This is the tool that answers "where is the money going". estimatedMonthlySavingsUsd is USD; estimatedMonthlySavings and estimatedMonthlySavingsConverted are the same amount in the organization currency. ${AMOUNTS_NOTE} Each finding carries finops: the FinOps Framework capability and phase (inform, optimize, operate) of its rule, or null. Requires the findings:read scope.`,
|
|
6148
6149
|
inputSchema: {
|
|
6149
6150
|
type: "object",
|
|
6150
6151
|
properties: {
|
|
@@ -6152,12 +6153,17 @@ var TOOLS = [
|
|
|
6152
6153
|
includeSuppressed: {
|
|
6153
6154
|
type: "boolean",
|
|
6154
6155
|
description: "Include findings marked as ignored or false positive. Defaults to false."
|
|
6156
|
+
},
|
|
6157
|
+
capability: {
|
|
6158
|
+
type: "string",
|
|
6159
|
+
enum: [...FINOPS_CAPABILITIES],
|
|
6160
|
+
description: "Only findings of this FinOps Framework capability, e.g. usage_optimization (optional)."
|
|
6155
6161
|
}
|
|
6156
6162
|
},
|
|
6157
6163
|
required: ["scanId"]
|
|
6158
6164
|
},
|
|
6159
|
-
argsSchema: object({ scanId: string2().min(1), includeSuppressed: boolean2().optional() }),
|
|
6160
|
-
handler: async ({ scanId, includeSuppressed }, config2) => apiGet(`/v1/scans/${encodeURIComponent(scanId)}/findings`, { includeSuppressed }, config2)
|
|
6165
|
+
argsSchema: object({ scanId: string2().min(1), includeSuppressed: boolean2().optional(), capability: _enum(FINOPS_CAPABILITIES).optional() }),
|
|
6166
|
+
handler: async ({ scanId, includeSuppressed, capability }, config2) => apiGet(`/v1/scans/${encodeURIComponent(scanId)}/findings`, { includeSuppressed, capability }, config2)
|
|
6161
6167
|
}),
|
|
6162
6168
|
defineTool({
|
|
6163
6169
|
name: "get_reports_summary",
|
|
@@ -6215,7 +6221,7 @@ var TOOLS = [
|
|
|
6215
6221
|
}),
|
|
6216
6222
|
defineTool({
|
|
6217
6223
|
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.`,
|
|
6224
|
+
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
6225
|
inputSchema: {
|
|
6220
6226
|
type: "object",
|
|
6221
6227
|
properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
|
|
@@ -6548,21 +6554,21 @@ var TOOLS = [
|
|
|
6548
6554
|
// ── Clientes gestionados (MSP) ─────────────────────────────
|
|
6549
6555
|
defineTool({
|
|
6550
6556
|
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.",
|
|
6557
|
+
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
6558
|
inputSchema: { type: "object", properties: {} },
|
|
6553
6559
|
argsSchema: object({}),
|
|
6554
6560
|
handler: async (_args, config2) => apiGet("/v1/clients", void 0, config2)
|
|
6555
6561
|
}),
|
|
6556
6562
|
defineTool({
|
|
6557
6563
|
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.",
|
|
6564
|
+
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
6565
|
inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
|
|
6560
6566
|
argsSchema: object({ clientId: string2().min(1) }),
|
|
6561
6567
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}`, void 0, config2)
|
|
6562
6568
|
}),
|
|
6563
6569
|
defineTool({
|
|
6564
6570
|
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.`,
|
|
6571
|
+
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
6572
|
inputSchema: objectWith({ clientId: CLIENT_ID }, ["clientId"]),
|
|
6567
6573
|
argsSchema: object({ clientId: string2().min(1) }),
|
|
6568
6574
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(`/v1/clients/${encodeURIComponent(clientId2)}/billing`, void 0, config2)
|
|
@@ -6575,6 +6581,13 @@ var TOOLS = [
|
|
|
6575
6581
|
argsSchema: object({ clientId: string2().min(1).optional() }),
|
|
6576
6582
|
handler: async ({ clientId: clientId2 }, config2) => apiGet(clientId2 ? `/v1/clients/${encodeURIComponent(clientId2)}/agent/dashboard` : "/v1/agent/dashboard", void 0, config2)
|
|
6577
6583
|
}),
|
|
6584
|
+
defineTool({
|
|
6585
|
+
name: "get_agent_auto_approval",
|
|
6586
|
+
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.',
|
|
6587
|
+
inputSchema: objectWith({}),
|
|
6588
|
+
argsSchema: object({}),
|
|
6589
|
+
handler: async (_args, config2) => apiGet("/v1/agent/auto-approval", void 0, config2)
|
|
6590
|
+
}),
|
|
6578
6591
|
defineTool({
|
|
6579
6592
|
name: "list_agent_actions",
|
|
6580
6593
|
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 +6889,7 @@ function findTool(name) {
|
|
|
6876
6889
|
|
|
6877
6890
|
// src/protocol.ts
|
|
6878
6891
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6879
|
-
var SERVER_VERSION = "0.
|
|
6892
|
+
var SERVER_VERSION = "0.20.0";
|
|
6880
6893
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6881
6894
|
var PARSE_ERROR = -32700;
|
|
6882
6895
|
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.20.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",
|