@aaa-sentinel/mcp-server 0.13.0 → 0.14.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 +3 -1
- package/dist/cli.js +26 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ status as plain JSON.
|
|
|
96
96
|
| `list_findings` | `scanId`, `includeSuppressed?` | `findings:read` | Pro |
|
|
97
97
|
| `get_reports_summary` | `accountId?` | `reports:read` | Pro |
|
|
98
98
|
| `list_savings` | `accountId?`, `type?` | `savings:read` | Pro |
|
|
99
|
-
| `get_chargeback` | `clientId?` | `reports:read` | Business |
|
|
99
|
+
| `get_chargeback` | `clientId?`, `view?`, `period?` | `reports:read` | Business |
|
|
100
100
|
| `get_dashboard` | `accountId?` | `dashboard:read` | Pro |
|
|
101
101
|
| `get_cost_forecast` | `accountId` | `reports:read` | Pro |
|
|
102
102
|
| `list_cost_anomalies` | `accountId?` | `reports:read` | Business |
|
|
@@ -156,6 +156,8 @@ status as plain JSON.
|
|
|
156
156
|
| `get_lease` | `leaseId` | `leases:read` | Pro |
|
|
157
157
|
| `list_environments` | — | `leases:read` | Pro |
|
|
158
158
|
| `get_environment_cost` | `env` | `leases:read` | Pro |
|
|
159
|
+
| `list_owner_sources` | — | `owners:read` | Business |
|
|
160
|
+
| `get_team_costs` | — | `owners:read` | Business |
|
|
159
161
|
|
|
160
162
|
In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
|
|
161
163
|
`governance`. `source` is one of `own`, `corroborated`, `securityhub`, `guardduty`, `defender`,
|
package/dist/cli.js
CHANGED
|
@@ -6186,15 +6186,21 @@ var TOOLS = [
|
|
|
6186
6186
|
}),
|
|
6187
6187
|
defineTool({
|
|
6188
6188
|
name: "get_chargeback",
|
|
6189
|
-
description:
|
|
6189
|
+
description: 'Break down cost and savings by tag, account and service \u2014 the report an MSP uses to justify its invoice. With view "team" it splits the billed cost of a closed month (FOCUS, AWS and Azure) by owning team instead: each team with its cost by origin (real team tag, manual rule, repository source), the unassigned part and the total they add up to, in the organization currency ("approximate" is true), why an account is left out (no_focus, gcp, team_not_allocated, no_conversion) and "partial" when its FOCUS report for that month is incomplete; the team "__overflow__" groups the smallest teams. Requires the reports:read scope and the Business plan.',
|
|
6190
6190
|
inputSchema: {
|
|
6191
6191
|
type: "object",
|
|
6192
6192
|
properties: {
|
|
6193
|
-
clientId: { type: "string", description: "Restrict the breakdown to one managed client (optional)." }
|
|
6193
|
+
clientId: { type: "string", description: "Restrict the breakdown to one managed client (optional)." },
|
|
6194
|
+
view: { type: "string", enum: ["team"], description: "Split by owning team from the closed-month bill (optional)." },
|
|
6195
|
+
period: { ...BILLING_PERIOD, description: 'Closed month as YYYY-MM for view "team" (optional; default the last closed month).' }
|
|
6194
6196
|
}
|
|
6195
6197
|
},
|
|
6196
|
-
argsSchema: object({
|
|
6197
|
-
|
|
6198
|
+
argsSchema: object({
|
|
6199
|
+
clientId: string2().min(1).optional(),
|
|
6200
|
+
view: _enum(["team"]).optional(),
|
|
6201
|
+
period: BillingPeriod.optional()
|
|
6202
|
+
}),
|
|
6203
|
+
handler: async ({ clientId: clientId2, view, period }, config2) => apiGet("/v1/reports/chargeback", { clientId: clientId2, view, period }, config2)
|
|
6198
6204
|
}),
|
|
6199
6205
|
defineTool({
|
|
6200
6206
|
name: "get_dashboard",
|
|
@@ -6797,6 +6803,21 @@ var TOOLS = [
|
|
|
6797
6803
|
},
|
|
6798
6804
|
argsSchema: object({ env: string2().regex(LEASE_ENV_RE) }),
|
|
6799
6805
|
handler: async ({ env }, config2) => apiGet(`/v1/environments/${encodeURIComponent(env)}/cost`, void 0, config2)
|
|
6806
|
+
}),
|
|
6807
|
+
// ── Propietarios desde el código ───────────────────────────
|
|
6808
|
+
defineTool({
|
|
6809
|
+
name: "list_owner_sources",
|
|
6810
|
+
description: 'List where team ownership comes from: the repository sources synced by `iac-cost owners sync` (kind backstage or codeowners_tf, repository, path, branch, commit, last sync, number of tag rules and resources), the conflicts between sources (the same resource id or tag value claimed by two teams; the oldest source wins), how many manual team rules the console has, and the coverage of the last closed month from the FOCUS bill: cost assigned by the real team tag, by a manual rule, by a repository source, and unassigned, in the organization currency ("approximate" is true). Use it to answer "who owns this cost" or "how much of our bill has no team". Requires the owners:read scope and the Business plan.',
|
|
6811
|
+
inputSchema: { type: "object", properties: {} },
|
|
6812
|
+
argsSchema: object({}),
|
|
6813
|
+
handler: async (_args, config2) => apiGet("/v1/owners", void 0, config2)
|
|
6814
|
+
}),
|
|
6815
|
+
defineTool({
|
|
6816
|
+
name: "get_team_costs",
|
|
6817
|
+
description: 'Get the estimated cost of the current month per owning team: the monthly list price of each resource in the last daily inventory, assigned to its effective team (real team tag, manual rule or repository source), with resources and accounts per team, the unassigned part and the accounts without an inventory yet. It is an estimate from list prices in the organization currency ("approximate" is true), not the bill; for the billed split of a closed month use get_chargeback. Requires the owners:read scope and the Business plan.',
|
|
6818
|
+
inputSchema: { type: "object", properties: {} },
|
|
6819
|
+
argsSchema: object({}),
|
|
6820
|
+
handler: async (_args, config2) => apiGet("/v1/owners/teams", void 0, config2)
|
|
6800
6821
|
})
|
|
6801
6822
|
];
|
|
6802
6823
|
function withoutPrivateLink(page) {
|
|
@@ -6810,7 +6831,7 @@ function findTool(name) {
|
|
|
6810
6831
|
|
|
6811
6832
|
// src/protocol.ts
|
|
6812
6833
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6813
|
-
var SERVER_VERSION = "0.
|
|
6834
|
+
var SERVER_VERSION = "0.14.0";
|
|
6814
6835
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6815
6836
|
var PARSE_ERROR = -32700;
|
|
6816
6837
|
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.14.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",
|