@aaa-sentinel/mcp-server 0.14.0 → 0.15.1

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 +4 -0
  2. package/dist/cli.js +34 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -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 |
package/dist/cli.js CHANGED
@@ -6090,7 +6090,7 @@ function defineTool(def) {
6090
6090
  }
6091
6091
  var SAVINGS_TYPES = ["compute", "storage", "network", "database", "serverless", "governance"];
6092
6092
  var SECURITY_SOURCES = ["own", "corroborated", "securityhub", "guardduty", "defender", "scc"];
6093
- var SECURITY_CATEGORIES = ["security_network", "security_exposure", "security_encryption", "security_iam", "security_logging", "security_secrets", "security_patching"];
6093
+ var SECURITY_CATEGORIES = ["security_network", "security_exposure", "security_encryption", "security_iam", "security_logging", "security_secrets", "security_patching", "security_backup"];
6094
6094
  var AGENT_STATUSES = ["proposed", "pending_approval", "pending_second_approval", "approved", "executing", "completed", "failed", "cancelled", "expired"];
6095
6095
  var LEASE_ENV_PATTERN = "^[a-z0-9][a-z0-9._-]{0,62}$";
6096
6096
  var LEASE_ENV_RE = new RegExp(LEASE_ENV_PATTERN);
@@ -6348,6 +6348,38 @@ var TOOLS = [
6348
6348
  }),
6349
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)
6350
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
+ }),
6351
6383
  // ── Cuentas y costes ───────────────────────────────────────
6352
6384
  defineTool({
6353
6385
  name: "get_account",
@@ -6831,7 +6863,7 @@ function findTool(name) {
6831
6863
 
6832
6864
  // src/protocol.ts
6833
6865
  var SERVER_NAME = "aaa-sentinel-mcp";
6834
- var SERVER_VERSION = "0.14.0";
6866
+ var SERVER_VERSION = "0.15.1";
6835
6867
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6836
6868
  var PARSE_ERROR = -32700;
6837
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.14.0",
3
+ "version": "0.15.1",
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",