@aaa-sentinel/mcp-server 0.20.0 → 0.22.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 +17 -5
  3. 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
@@ -6091,6 +6091,8 @@ function defineTool(def) {
6091
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"];
6092
6092
  var SAVINGS_TYPES = ["compute", "storage", "network", "database", "serverless", "governance"];
6093
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.";
6094
+ var AI_TEXT_NOTE = "Some text fields are written by an AI model; when you quote or summarize them, tell the user they are AI-generated and may contain mistakes.";
6095
+ var AI_SOURCE_NOTE = "Here aiSource says who wrote aiExecutiveSummary, aiNarrative and aiTopActionItems: ai is AI-generated, template is a fixed template filled with scan data without AI (the model did not answer or its answer was not valid), null is unknown (older scans).";
6094
6096
  var SECURITY_SOURCES = ["own", "corroborated", "securityhub", "guardduty", "defender", "scc"];
6095
6097
  var SECURITY_CATEGORIES = ["security_network", "security_exposure", "security_encryption", "security_iam", "security_logging", "security_secrets", "security_patching", "security_backup", "security_resilience"];
6096
6098
  var AGENT_STATUSES = ["proposed", "pending_approval", "pending_second_approval", "approved", "executing", "completed", "failed", "cancelled", "expired"];
@@ -6123,7 +6125,7 @@ var TOOLS = [
6123
6125
  }),
6124
6126
  defineTool({
6125
6127
  name: "list_scans",
6126
- description: `List the most recent cost scans (up to 20) of a cloud account, each with its monthly cost and potential savings. Here totalMonthlyCost, totalPotentialSavings and costBreakdownByService are USD; totalMonthlyCostConverted, totalPotentialSavingsConverted and costBreakdownByServiceConverted are the same amounts in the organization currency, converted at today's rate even for old scans. ${AMOUNTS_NOTE} Requires the scans:read scope.`,
6128
+ description: `List the most recent cost scans (up to 20) of a cloud account, each with its monthly cost and potential savings. Here totalMonthlyCost, totalPotentialSavings and costBreakdownByService are USD; totalMonthlyCostConverted, totalPotentialSavingsConverted and costBreakdownByServiceConverted are the same amounts in the organization currency, converted at today's rate even for old scans. ${AI_TEXT_NOTE} ${AI_SOURCE_NOTE} ${AMOUNTS_NOTE} Requires the scans:read scope.`,
6127
6129
  inputSchema: {
6128
6130
  type: "object",
6129
6131
  properties: { accountId: { type: "string", description: "Account identifier, as returned by list_accounts." } },
@@ -6134,7 +6136,7 @@ var TOOLS = [
6134
6136
  }),
6135
6137
  defineTool({
6136
6138
  name: "get_scan",
6137
- description: `Get the full detail of a single scan by its id. Bare amounts of the scan (totalMonthlyCost, previousCost, the pricingAnalysis figures such as totalSavingsMonthly or savings1yr) are USD with a Converted sibling in the organization currency (totalMonthlyCostConverted, totalSavingsMonthlyConverted...); listPricesApplied[].usd is USD only. ${AMOUNTS_NOTE} Requires the scans:read scope.`,
6139
+ description: `Get the full detail of a single scan by its id. Bare amounts of the scan (totalMonthlyCost, previousCost, the pricingAnalysis figures such as totalSavingsMonthly or savings1yr) are USD with a Converted sibling in the organization currency (totalMonthlyCostConverted, totalSavingsMonthlyConverted...); listPricesApplied[].usd is USD only. ${AI_TEXT_NOTE} ${AI_SOURCE_NOTE} ${AMOUNTS_NOTE} Requires the scans:read scope.`,
6138
6140
  inputSchema: {
6139
6141
  type: "object",
6140
6142
  properties: { scanId: { type: "string", description: "Scan identifier, as returned by list_scans." } },
@@ -6165,6 +6167,16 @@ var TOOLS = [
6165
6167
  argsSchema: object({ scanId: string2().min(1), includeSuppressed: boolean2().optional(), capability: _enum(FINOPS_CAPABILITIES).optional() }),
6166
6168
  handler: async ({ scanId, includeSuppressed, capability }, config2) => apiGet(`/v1/scans/${encodeURIComponent(scanId)}/findings`, { includeSuppressed, capability }, config2)
6167
6169
  }),
6170
+ defineTool({
6171
+ name: "list_finops_kpis",
6172
+ 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.",
6173
+ inputSchema: {
6174
+ type: "object",
6175
+ properties: { accountId: { type: "string", description: "Restrict the KPIs to one account (optional)." } }
6176
+ },
6177
+ argsSchema: object({ accountId: string2().min(1).optional() }),
6178
+ handler: async ({ accountId }, config2) => apiGet("/v1/finops/kpis", { accountId }, config2)
6179
+ }),
6168
6180
  defineTool({
6169
6181
  name: "get_reports_summary",
6170
6182
  description: `Get an aggregated summary of monthly cost, potential savings, accounts scanned and critical findings, optionally for a single account. totalSavingsUsd is open findings (findingsSavingsUsd) plus what reservations and rightsizing add without counting an instance twice (pricingSavingsUsd), the figure the app shows. ${AMOUNTS_NOTE} Requires the reports:read scope and the Pro plan or above.`,
@@ -6262,7 +6274,7 @@ var TOOLS = [
6262
6274
  }),
6263
6275
  defineTool({
6264
6276
  name: "list_security_findings",
6265
- description: 'List the security findings of the latest security scan of one account (up to 500, most severe first), with attack chains and a diff against the previous scan. Use category "security_iam" for the permissions view: effective administrators, unused identities, keys and service accounts, granted permissions that are not used, and assignments to deleted identities. Each finding may carry resourceCost, and the response exposedCost (what the account pays per month in resources with critical or high findings): both are estimates from the latest cost scan of at most 14 days (list price or what the resource was billed), absent when there is no cost data; in each, monthlyUsd is USD and monthly the same amount in the organization currency (currency.code, approximate) at the rate of its costScannedAt, and attributionSummary has exposedMonthlyUsd (USD) and exposedMonthly (organization currency). Each finding may also carry attribution (the Owner, Team and CostCenter tags of its resource; unowned when its tags were read and it has neither Owner nor Team; absent when its tags were not read), and the response attributionSummary (findings and exposed cost by team and by cost center); critical findings without an owner come first among the critical ones. Requires the security:read scope, the Pro plan and the risk and compliance add-on on that account.',
6277
+ description: `List the security findings of the latest security scan of one account (up to 500, most severe first), with attack chains and a diff against the previous scan. Use category "security_iam" for the permissions view: effective administrators, unused identities, keys and service accounts, granted permissions that are not used, and assignments to deleted identities. Each finding may carry resourceCost, and the response exposedCost (what the account pays per month in resources with critical or high findings): both are estimates from the latest cost scan of at most 14 days (list price or what the resource was billed), absent when there is no cost data; in each, monthlyUsd is USD and monthly the same amount in the organization currency (currency.code, approximate) at the rate of its costScannedAt, and attributionSummary has exposedMonthlyUsd (USD) and exposedMonthly (organization currency). Each finding may also carry attribution (the Owner, Team and CostCenter tags of its resource; unowned when its tags were read and it has neither Owner nor Team; absent when its tags were not read), and the response attributionSummary (findings and exposed cost by team and by cost center); critical findings without an owner come first among the critical ones. ${AI_TEXT_NOTE} Here explanation (what, why, how, risk) is always AI-generated. Requires the security:read scope, the Pro plan and the risk and compliance add-on on that account.`,
6266
6278
  inputSchema: {
6267
6279
  type: "object",
6268
6280
  properties: {
@@ -6372,7 +6384,7 @@ var TOOLS = [
6372
6384
  }),
6373
6385
  defineTool({
6374
6386
  name: "get_compliance_questionnaire",
6375
- description: "Get one compliance questionnaire with its questions in order: answer, state (empty, draft or approved), origin (person, library or ai), approvedBy/approvedAt, comment, evidenceDocIds (documents of the evidence archive) and evidenceChanged (an approved answer whose platform evidence changed since). Template questions have text null: they are identified by section (the measure code of the templateId framework, for example ENS op.ext.1) and bankQuestionId (the platform check), and textOverride is the team wording if any. evidenceByCheck gives, once per check, what the scans of the accounts with the add-on say or a platform fact. A measure is asked check by check only when the platform answers all its checks; otherwise it is asked as the measure (bankQuestionId null) and measureChecks lists, per measure code, the checks (scan or platform facts) that back it, with their data in evidenceByCheck; the answer still comes from the team. Questionnaires created earlier may still have one question per check, linked through bankQuestionId. A draft with libraryFrom comes from an answer approved for an equivalent measure of another framework; one with similarTo, from the approved answer of a similar question. Never present a draft as an approved answer. A questionnaire with hundreds of questions can return several megabytes, so call it for one questionnaire at a time. Requires the security:read scope and the Pro plan or above.",
6387
+ description: "Get one compliance questionnaire with its questions in order: answer, state (empty, draft or approved), origin (person, library or ai), approvedBy/approvedAt, comment, evidenceDocIds (documents of the evidence archive) and evidenceChanged (an approved answer whose platform evidence changed since). Template questions have text null: they are identified by section (the measure code of the templateId framework, for example ENS op.ext.1) and bankQuestionId (the platform check), and textOverride is the team wording if any. evidenceByCheck gives, once per check, what the scans of the accounts with the add-on say or a platform fact. A measure is asked check by check only when the platform answers all its checks; otherwise it is asked as the measure (bankQuestionId null) and measureChecks lists, per measure code, the checks (scan or platform facts) that back it, with their data in evidenceByCheck; the answer still comes from the team. Questionnaires created earlier may still have one question per check, linked through bankQuestionId. A draft with libraryFrom comes from an answer approved for an equivalent measure of another framework; one with similarTo, from the approved answer of a similar question. Never present a draft as an approved answer, and say that a draft with origin ai was written by AI and may contain mistakes. A questionnaire with hundreds of questions can return several megabytes, so call it for one questionnaire at a time. Requires the security:read scope and the Pro plan or above.",
6376
6388
  inputSchema: objectWith(
6377
6389
  { questionnaireId: { type: "string", description: "Questionnaire identifier, as returned by list_compliance_questionnaires." } },
6378
6390
  ["questionnaireId"]
@@ -6889,7 +6901,7 @@ function findTool(name) {
6889
6901
 
6890
6902
  // src/protocol.ts
6891
6903
  var SERVER_NAME = "aaa-sentinel-mcp";
6892
- var SERVER_VERSION = "0.20.0";
6904
+ var SERVER_VERSION = "0.22.0";
6893
6905
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6894
6906
  var PARSE_ERROR = -32700;
6895
6907
  var INVALID_REQUEST = -32600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaa-sentinel/mcp-server",
3
- "version": "0.20.0",
3
+ "version": "0.22.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",