@aaa-sentinel/mcp-server 0.13.0 → 0.15.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 +7 -1
- package/dist/cli.js +58 -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 |
|
|
@@ -108,6 +108,10 @@ status as plain JSON.
|
|
|
108
108
|
| `get_security_tool_spend` | `accountId` | `security:read` | Pro + risk and compliance add-on |
|
|
109
109
|
| `get_security_conformance` | `accountId` or `clientId` | `security:read` | Pro + risk and compliance add-on |
|
|
110
110
|
| `get_security_posture_history` | `accountId` or `clientId`, `days?` | `security:read` | Pro + risk and compliance add-on |
|
|
111
|
+
| `list_compliance_questionnaires` | — | `security:read` | Pro |
|
|
112
|
+
| `get_compliance_questionnaire` | `questionnaireId` | `security:read` | Pro |
|
|
113
|
+
| `list_questionnaire_answer_library` | — | `security:read` | Pro |
|
|
114
|
+
| `list_evidence_documents` | — | `security:read` | Pro |
|
|
111
115
|
| `get_account` | `accountId` | `accounts:read` | Pro |
|
|
112
116
|
| `get_account_monthly_costs` | `accountId` | `accounts:read` | Pro |
|
|
113
117
|
| `list_architecture_apps` | `accountId`, `limit?`, `cursor?` | `accounts:read` | Pro |
|
|
@@ -156,6 +160,8 @@ status as plain JSON.
|
|
|
156
160
|
| `get_lease` | `leaseId` | `leases:read` | Pro |
|
|
157
161
|
| `list_environments` | — | `leases:read` | Pro |
|
|
158
162
|
| `get_environment_cost` | `env` | `leases:read` | Pro |
|
|
163
|
+
| `list_owner_sources` | — | `owners:read` | Business |
|
|
164
|
+
| `get_team_costs` | — | `owners:read` | Business |
|
|
159
165
|
|
|
160
166
|
In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
|
|
161
167
|
`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",
|
|
@@ -6342,6 +6348,38 @@ var TOOLS = [
|
|
|
6342
6348
|
}),
|
|
6343
6349
|
handler: async ({ accountId, clientId: clientId2, days }, config2) => apiGet("/v1/security/posture-history", { accountId, clientId: clientId2, days: days === void 0 ? void 0 : String(days) }, config2)
|
|
6344
6350
|
}),
|
|
6351
|
+
// ── Cuestionarios de cumplimiento y evidencias (solo lectura) ─────────────
|
|
6352
|
+
defineTool({
|
|
6353
|
+
name: "list_compliance_questionnaires",
|
|
6354
|
+
description: "List the organization compliance questionnaires (insurance and vendor templates, ENS, NIS2, ISO 27001, SOC 2, DORA, and customer questionnaires pasted or imported), without their questions: questionnaireId, name, source, templateId, questionCount, status, requester, dueDate and submissions (Business), createdAt and updatedAt. evidenceAvailable is true when some account has the risk and compliance add-on, which is what gives answers platform evidence. Questionnaires are created and answered in the app. Requires the security:read scope, the Pro plan or above and a key that is not limited to some accounts.",
|
|
6355
|
+
inputSchema: objectWith({}),
|
|
6356
|
+
argsSchema: object({}),
|
|
6357
|
+
handler: async (_args, config2) => apiGet("/v1/security/questionnaires", void 0, config2)
|
|
6358
|
+
}),
|
|
6359
|
+
defineTool({
|
|
6360
|
+
name: "get_compliance_questionnaire",
|
|
6361
|
+
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 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.",
|
|
6362
|
+
inputSchema: objectWith(
|
|
6363
|
+
{ questionnaireId: { type: "string", description: "Questionnaire identifier, as returned by list_compliance_questionnaires." } },
|
|
6364
|
+
["questionnaireId"]
|
|
6365
|
+
),
|
|
6366
|
+
argsSchema: object({ questionnaireId: string2().min(1) }),
|
|
6367
|
+
handler: async ({ questionnaireId }, config2) => apiGet(`/v1/security/questionnaires/${encodeURIComponent(questionnaireId)}`, void 0, config2)
|
|
6368
|
+
}),
|
|
6369
|
+
defineTool({
|
|
6370
|
+
name: "list_questionnaire_answer_library",
|
|
6371
|
+
description: "List the organization library of approved questionnaire answers, which fills the same question as a draft in later questionnaires. libraryKey says what is recognised: bank:<check> (a platform check), measure:<framework>:<measure>[:<ENS level>] (a framework measure without a check) or text:<hash> (the question text); a |<format> suffix separates closed answers (yes/no, list). Each entry has questionText (null for template questions), answer, format, comment, evidenceDocIds, approvedAt and approvedBy. Requires the security:read scope and the Pro plan or above.",
|
|
6372
|
+
inputSchema: objectWith({}),
|
|
6373
|
+
argsSchema: object({}),
|
|
6374
|
+
handler: async (_args, config2) => apiGet("/v1/security/questionnaires/library", void 0, config2)
|
|
6375
|
+
}),
|
|
6376
|
+
defineTool({
|
|
6377
|
+
name: "list_evidence_documents",
|
|
6378
|
+
description: "List the evidence archive that backs questionnaire answers (policies, certificates, reports): docId, name, kind, size, description, ownerUserId, expiresAt (date, null if it never expires), status (uploading, scanning, clean, unscanned when the malware scan could not read it, infected when it was deleted), sha256, uploadedAt and uploadedBy, plus usage (bytes and documents used, plan space and maximum file size). Only metadata: documents are uploaded and downloaded in the app. Requires the security:read scope and the Pro plan or above.",
|
|
6379
|
+
inputSchema: objectWith({}),
|
|
6380
|
+
argsSchema: object({}),
|
|
6381
|
+
handler: async (_args, config2) => apiGet("/v1/security/evidence", void 0, config2)
|
|
6382
|
+
}),
|
|
6345
6383
|
// ── Cuentas y costes ───────────────────────────────────────
|
|
6346
6384
|
defineTool({
|
|
6347
6385
|
name: "get_account",
|
|
@@ -6797,6 +6835,21 @@ var TOOLS = [
|
|
|
6797
6835
|
},
|
|
6798
6836
|
argsSchema: object({ env: string2().regex(LEASE_ENV_RE) }),
|
|
6799
6837
|
handler: async ({ env }, config2) => apiGet(`/v1/environments/${encodeURIComponent(env)}/cost`, void 0, config2)
|
|
6838
|
+
}),
|
|
6839
|
+
// ── Propietarios desde el código ───────────────────────────
|
|
6840
|
+
defineTool({
|
|
6841
|
+
name: "list_owner_sources",
|
|
6842
|
+
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.',
|
|
6843
|
+
inputSchema: { type: "object", properties: {} },
|
|
6844
|
+
argsSchema: object({}),
|
|
6845
|
+
handler: async (_args, config2) => apiGet("/v1/owners", void 0, config2)
|
|
6846
|
+
}),
|
|
6847
|
+
defineTool({
|
|
6848
|
+
name: "get_team_costs",
|
|
6849
|
+
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.',
|
|
6850
|
+
inputSchema: { type: "object", properties: {} },
|
|
6851
|
+
argsSchema: object({}),
|
|
6852
|
+
handler: async (_args, config2) => apiGet("/v1/owners/teams", void 0, config2)
|
|
6800
6853
|
})
|
|
6801
6854
|
];
|
|
6802
6855
|
function withoutPrivateLink(page) {
|
|
@@ -6810,7 +6863,7 @@ function findTool(name) {
|
|
|
6810
6863
|
|
|
6811
6864
|
// src/protocol.ts
|
|
6812
6865
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6813
|
-
var SERVER_VERSION = "0.
|
|
6866
|
+
var SERVER_VERSION = "0.15.0";
|
|
6814
6867
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6815
6868
|
var PARSE_ERROR = -32700;
|
|
6816
6869
|
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.15.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",
|