@aaa-sentinel/mcp-server 0.19.0 → 0.21.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 +20 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,6 +95,7 @@ status as plain JSON.
|
|
|
95
95
|
| `get_scan` | `scanId` | `scans:read` | Pro |
|
|
96
96
|
| `list_findings` | `scanId`, `includeSuppressed?` | `findings:read` | Pro |
|
|
97
97
|
| `get_reports_summary` | `accountId?` | `reports:read` | Pro |
|
|
98
|
+
| `list_finops_kpis` | `accountId?` | `reports:read` | Pro |
|
|
98
99
|
| `list_savings` | `accountId?`, `type?` | `savings:read` | Pro |
|
|
99
100
|
| `get_chargeback` | `clientId?`, `view?`, `period?` | `reports:read` | Business |
|
|
100
101
|
| `get_dashboard` | `accountId?` | `dashboard:read` | Pro |
|
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,27 @@ 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)
|
|
6167
|
+
}),
|
|
6168
|
+
defineTool({
|
|
6169
|
+
name: "list_finops_kpis",
|
|
6170
|
+
description: "List the FinOps KPIs whose formula the FinOps Foundation publishes (allocated and unallocated spend, Savings Plans coverage, commitment utilization and waste, effective savings rate option 2, forecast variance and drift) for the last 12 closed months, each with its latest value, its series and, when the Foundation publishes sample goals, the Crawl/Walk/Run level. Values are percentages; numeratorUsd and denominatorUsd are USD and numerator and denominator the same amounts in the organization currency; value is null when there is no data, never 0. Requires the reports:read scope and the Pro plan or above.",
|
|
6171
|
+
inputSchema: {
|
|
6172
|
+
type: "object",
|
|
6173
|
+
properties: { accountId: { type: "string", description: "Restrict the KPIs to one account (optional)." } }
|
|
6174
|
+
},
|
|
6175
|
+
argsSchema: object({ accountId: string2().min(1).optional() }),
|
|
6176
|
+
handler: async ({ accountId }, config2) => apiGet("/v1/finops/kpis", { accountId }, config2)
|
|
6161
6177
|
}),
|
|
6162
6178
|
defineTool({
|
|
6163
6179
|
name: "get_reports_summary",
|
|
@@ -6883,7 +6899,7 @@ function findTool(name) {
|
|
|
6883
6899
|
|
|
6884
6900
|
// src/protocol.ts
|
|
6885
6901
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6886
|
-
var SERVER_VERSION = "0.
|
|
6902
|
+
var SERVER_VERSION = "0.21.0";
|
|
6887
6903
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6888
6904
|
var PARSE_ERROR = -32700;
|
|
6889
6905
|
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.21.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",
|