@aaa-sentinel/mcp-server 0.10.2 → 0.11.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 +52 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -149,6 +149,7 @@ status as plain JSON.
149
149
  | `get_monitoring_incident` | `incidentId` | `monitoring:read` | Pro |
150
150
  | `list_status_pages` | — | `monitoring:read` | Pro |
151
151
  | `get_status_page` | `pageId` | `monitoring:read` | Pro |
152
+ | `list_deployments` | `service?`, `environment?`, `accountId?`, `monitoringServiceId?`, `from?`, `to?`, `limit?`, `cursor?` | `deployments:read` | Pro |
152
153
 
153
154
  In `list_savings`, `type` is one of `compute`, `storage`, `network`, `database`, `serverless`,
154
155
  `governance`. `source` is one of `own`, `corroborated`, `securityhub`, `guardduty`, `defender`,
package/dist/cli.js CHANGED
@@ -5924,6 +5924,31 @@ function superRefine(fn, params) {
5924
5924
  return _superRefine(fn, params);
5925
5925
  }
5926
5926
 
5927
+ // ../../node_modules/zod/v4/classic/iso.js
5928
+ var iso_exports = {};
5929
+ __export(iso_exports, {
5930
+ ZodISODate: () => ZodISODate,
5931
+ ZodISODateTime: () => ZodISODateTime,
5932
+ ZodISODuration: () => ZodISODuration,
5933
+ ZodISOTime: () => ZodISOTime,
5934
+ date: () => date2,
5935
+ datetime: () => datetime2,
5936
+ duration: () => duration2,
5937
+ time: () => time2
5938
+ });
5939
+ function datetime2(params) {
5940
+ return _isoDateTime(ZodISODateTime, params);
5941
+ }
5942
+ function date2(params) {
5943
+ return _isoDate(ZodISODate, params);
5944
+ }
5945
+ function time2(params) {
5946
+ return _isoTime(ZodISOTime, params);
5947
+ }
5948
+ function duration2(params) {
5949
+ return _isoDuration(ZodISODuration, params);
5950
+ }
5951
+
5927
5952
  // src/api-client.ts
5928
5953
  var ApiError = class extends Error {
5929
5954
  constructor(status, message) {
@@ -6686,6 +6711,32 @@ var TOOLS = [
6686
6711
  inputSchema: objectWith({ pageId: { type: "string", description: "Status page identifier, as returned by list_status_pages." } }, ["pageId"]),
6687
6712
  argsSchema: object({ pageId: string2().min(1) }),
6688
6713
  handler: async ({ pageId }, config2) => withoutPrivateLink(await apiGet(`/v1/monitoring/status-pages/${encodeURIComponent(pageId)}`, void 0, config2))
6714
+ }),
6715
+ // ── Despliegues ────────────────────────────────────────────
6716
+ defineTool({
6717
+ name: "list_deployments",
6718
+ description: 'List the deployment markers the organization records from its CI/CD pipelines (service, environment, version, commit, cloud account, linked monitoring service, start and end time), newest first. Use it to answer "what was deployed right before this incident or this cost jump": cost data is daily, so compare a cost anomaly with the deployments of that day and the day before; monitoring incidents are per minute. Without from/to it covers the last 7 days; the range can span at most 93 days. Paginated: pass the returned "nextCursor" as "cursor". Requires the deployments:read scope.',
6719
+ inputSchema: objectWith({
6720
+ service: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]{0,63}$", description: "Only this service, exactly as the pipeline sent it (optional)." },
6721
+ environment: { type: "string", pattern: "^[a-z0-9][a-z0-9._-]{0,63}$", description: 'Only this environment, e.g. "production" (optional).' },
6722
+ accountId: { ...ACCOUNT_ID, description: "Only the deployments to this cloud account, as returned by list_accounts (optional)." },
6723
+ monitoringServiceId: { ...SERVICE_ID, description: "Only the deployments linked to this monitoring service, as returned by list_monitoring_services (optional)." },
6724
+ from: { type: "string", format: "date-time", description: "Start of the range, ISO 8601 (optional)." },
6725
+ to: { type: "string", format: "date-time", description: "End of the range, ISO 8601 (optional)." },
6726
+ limit: { type: "integer", minimum: 1, maximum: 200, description: "Page size (optional)." },
6727
+ cursor: CURSOR
6728
+ }),
6729
+ argsSchema: object({
6730
+ service: string2().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/).optional(),
6731
+ environment: string2().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/).optional(),
6732
+ accountId: string2().min(1).optional(),
6733
+ monitoringServiceId: string2().min(1).optional(),
6734
+ from: iso_exports.datetime({ offset: true }).optional(),
6735
+ to: iso_exports.datetime({ offset: true }).optional(),
6736
+ limit: number2().int().min(1).max(200).optional(),
6737
+ cursor: string2().min(1).optional()
6738
+ }),
6739
+ handler: async ({ service, environment, accountId, monitoringServiceId, from, to, limit, cursor }, config2) => apiGet("/v1/deployments", { service, environment, accountId, monitoringServiceId, from, to, limit: asText(limit), cursor }, config2)
6689
6740
  })
6690
6741
  ];
6691
6742
  function withoutPrivateLink(page) {
@@ -6699,7 +6750,7 @@ function findTool(name) {
6699
6750
 
6700
6751
  // src/protocol.ts
6701
6752
  var SERVER_NAME = "aaa-sentinel-mcp";
6702
- var SERVER_VERSION = "0.10.2";
6753
+ var SERVER_VERSION = "0.11.0";
6703
6754
  var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
6704
6755
  var PARSE_ERROR = -32700;
6705
6756
  var INVALID_REQUEST = -32600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaa-sentinel/mcp-server",
3
- "version": "0.10.2",
3
+ "version": "0.11.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",