@aaa-sentinel/mcp-server 0.23.0 → 0.25.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 +1 -0
- package/dist/cli.js +20 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,6 +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_finops_kpis` | `accountId?` | `reports:read` | Pro |
|
|
99
|
+
| `list_focus_exports` | — | `reports:read` | Business |
|
|
99
100
|
| `list_savings` | `accountId?`, `type?` | `savings:read` | Pro |
|
|
100
101
|
| `get_chargeback` | `clientId?`, `view?`, `period?` | `reports:read` | Business |
|
|
101
102
|
| `get_dashboard` | `accountId?` | `dashboard:read` | Pro |
|
package/dist/cli.js
CHANGED
|
@@ -6029,9 +6029,20 @@ async function requestToken(config2) {
|
|
|
6029
6029
|
await sleepImpl(delay);
|
|
6030
6030
|
continue;
|
|
6031
6031
|
}
|
|
6032
|
-
|
|
6032
|
+
const code = await errorCode(response);
|
|
6033
|
+
const why = code ? TOKEN_REFUSALS[code] : void 0;
|
|
6034
|
+
throw new ApiError(response.status, `Could not obtain an access token (HTTP ${response.status}${code ? ` ${code}` : ""})${why ? `: ${why}` : ""}`);
|
|
6033
6035
|
}
|
|
6034
6036
|
}
|
|
6037
|
+
var TOKEN_REFUSALS = {
|
|
6038
|
+
APP_OWNER_NOT_MEMBER: "the person who created this app is no longer a member of the organization. An administrator can reassign the app to another member in Developers > Apps.",
|
|
6039
|
+
APP_OWNER_NOT_ACTIVE: "the access of the person who created this app is suspended. An administrator can reactivate it or reassign the app in Developers > Apps.",
|
|
6040
|
+
OWNER_CHECK_UNAVAILABLE: "the server could not check the person who created this app. Try again in a few minutes."
|
|
6041
|
+
};
|
|
6042
|
+
async function errorCode(response) {
|
|
6043
|
+
const body = await response.json().catch(() => null);
|
|
6044
|
+
return typeof body?.code === "string" && /^[A-Z][A-Z0-9_]{0,63}$/.test(body.code) ? body.code : null;
|
|
6045
|
+
}
|
|
6035
6046
|
async function getToken(config2) {
|
|
6036
6047
|
if (cachedToken && cachedToken.expiresAt - TOKEN_REFRESH_MARGIN_MS > Date.now()) return cachedToken.value;
|
|
6037
6048
|
inflightToken ??= requestToken(config2).finally(() => {
|
|
@@ -6177,6 +6188,13 @@ var TOOLS = [
|
|
|
6177
6188
|
argsSchema: object({ accountId: string2().min(1).optional() }),
|
|
6178
6189
|
handler: async ({ accountId }, config2) => apiGet("/v1/finops/kpis", { accountId }, config2)
|
|
6179
6190
|
}),
|
|
6191
|
+
defineTool({
|
|
6192
|
+
name: "list_focus_exports",
|
|
6193
|
+
description: "List the FOCUS 1.2 exports of the organization still kept for download (deleted 3 to 4 days after the request), with the status of each account or AI connection (pending, ok, partial when limits cut the month, error with its code), plus the export schema: the 57 FOCUS 1.2 columns and the custom x_ columns with their data type. It does not return download links: exports are requested and downloaded in the console. Requires the reports:read scope and the Business plan.",
|
|
6194
|
+
inputSchema: { type: "object", properties: {} },
|
|
6195
|
+
argsSchema: object({}),
|
|
6196
|
+
handler: async (_args, config2) => apiGet("/v1/finops/focus/exports", void 0, config2)
|
|
6197
|
+
}),
|
|
6180
6198
|
defineTool({
|
|
6181
6199
|
name: "get_reports_summary",
|
|
6182
6200
|
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.`,
|
|
@@ -6901,7 +6919,7 @@ function findTool(name) {
|
|
|
6901
6919
|
|
|
6902
6920
|
// src/protocol.ts
|
|
6903
6921
|
var SERVER_NAME = "aaa-sentinel-mcp";
|
|
6904
|
-
var SERVER_VERSION = "0.
|
|
6922
|
+
var SERVER_VERSION = "0.25.0";
|
|
6905
6923
|
var SUPPORTED_PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
6906
6924
|
var PARSE_ERROR = -32700;
|
|
6907
6925
|
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.25.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",
|