aws-security-mcp 0.5.2 → 0.6.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.
@@ -1,5 +1,7 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
 
3
+ type Lang = "zh" | "en";
4
+
3
5
  type Severity = "CRITICAL" | "HIGH" | "MEDIUM" | "LOW";
4
6
  type Priority = "P0" | "P1" | "P2" | "P3";
5
7
  interface Finding {
@@ -119,10 +121,10 @@ interface OrgAccount {
119
121
  }
120
122
  declare function listOrgAccounts(region: string): Promise<OrgAccount[]>;
121
123
 
122
- declare function generateMarkdownReport(scanResults: FullScanResult): string;
124
+ declare function generateMarkdownReport(scanResults: FullScanResult, lang?: Lang): string;
123
125
 
124
- declare function generateHtmlReport(scanResults: FullScanResult, history?: DashboardHistoryEntry[]): string;
125
- declare function generateMlps3HtmlReport(scanResults: FullScanResult, history?: DashboardHistoryEntry[]): string;
126
+ declare function generateHtmlReport(scanResults: FullScanResult, history?: DashboardHistoryEntry[], lang?: Lang): string;
127
+ declare function generateMlps3HtmlReport(scanResults: FullScanResult, history?: DashboardHistoryEntry[], lang?: Lang): string;
126
128
 
127
129
  declare function calculateScore(summary: FullScanResult["summary"]): number;
128
130
  declare function saveResults(scanResults: FullScanResult, outputDir?: string): string;
@@ -130,4 +132,4 @@ declare function saveResults(scanResults: FullScanResult, outputDir?: string): s
130
132
  declare function createServer(defaultRegion: string): McpServer;
131
133
  declare function startServer(defaultRegion: string): Promise<void>;
132
134
 
133
- export { type DashboardData, type DashboardHistoryEntry, type Finding, type FullScanResult, type OrgAccount, type Priority, type ScanContext, type ScanResult, type Scanner, type Severity, assumeRole, buildRoleArn, calculateScore, createServer, generateHtmlReport, generateMarkdownReport, generateMlps3HtmlReport, getCurrentAccountId, listOrgAccounts, runAllScanners, runMultiAccountScanners, saveResults, startServer };
135
+ export { type DashboardData, type DashboardHistoryEntry, type Finding, type FullScanResult, type Lang, type OrgAccount, type Priority, type ScanContext, type ScanResult, type Scanner, type Severity, assumeRole, buildRoleArn, calculateScore, createServer, generateHtmlReport, generateMarkdownReport, generateMlps3HtmlReport, getCurrentAccountId, listOrgAccounts, runAllScanners, runMultiAccountScanners, saveResults, startServer };