mcp-aws-manager 0.3.8 → 0.3.9
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 +3 -1
- package/README_KO.md +1 -1
- package/bin/mcp-aws-manager-mcp.js +3 -2
- package/bin/mcp-aws-manager.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,8 @@ Custom path / open behavior:
|
|
|
103
103
|
mcp-aws-manager discover --profiles default --html-out ./inventory.html --open-html --no-progress
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
By default, HTML open is enabled. Use `--no-open-html` to disable.
|
|
107
|
+
|
|
106
108
|
## User Confirmation Required
|
|
107
109
|
|
|
108
110
|
These are normally the only manual steps (agent-guided):
|
|
@@ -235,7 +237,7 @@ aws sts get-caller-identity --profile default
|
|
|
235
237
|
- `--ssh-port <port>`
|
|
236
238
|
- `--ssh-connect-timeout <seconds>`
|
|
237
239
|
- `--html-out <path>` (default: auto path, workspace/home `aws-inventory.html`)
|
|
238
|
-
- `--open-html` (
|
|
240
|
+
- `--open-html` (open; default is on)
|
|
239
241
|
- `--no-open-html` (disable auto-open)
|
|
240
242
|
- `--auto-sso-login` / `--no-auto-sso-login`
|
|
241
243
|
- `--format <json|csv>`
|
package/README_KO.md
CHANGED
|
@@ -75,7 +75,7 @@ mcp-aws-manager discover --profiles default --no-progress
|
|
|
75
75
|
|
|
76
76
|
- 기본 경로: 워크스페이스/홈 자동 선택(`aws-inventory.html`)
|
|
77
77
|
- `--html-out <path>`: 리포트 경로 변경
|
|
78
|
-
- `--open-html`: 생성 후 브라우저 오픈
|
|
78
|
+
- `--open-html`: 생성 후 브라우저 오픈(기본값: 켜짐)
|
|
79
79
|
- `--no-open-html`: 자동 오픈 비활성화
|
|
80
80
|
- GUI에서 현재 뷰 기준 CSV 다운로드 가능
|
|
81
81
|
|
|
@@ -137,7 +137,8 @@ function buildCliArgs(input) {
|
|
|
137
137
|
if (input.sshPort != null) args.push("--ssh-port", String(input.sshPort));
|
|
138
138
|
if (input.sshConnectTimeoutSec != null) args.push("--ssh-connect-timeout", String(input.sshConnectTimeoutSec));
|
|
139
139
|
if (input.htmlOutPath) args.push("--html-out", input.htmlOutPath);
|
|
140
|
-
if (input.openHtml) args.push("--open-html");
|
|
140
|
+
if (input.openHtml === true) args.push("--open-html");
|
|
141
|
+
if (input.openHtml === false) args.push("--no-open-html");
|
|
141
142
|
|
|
142
143
|
if (input.autoSsoLogin === false) args.push("--no-auto-sso-login");
|
|
143
144
|
if (input.autoSsoLogin === true) args.push("--auto-sso-login");
|
|
@@ -829,7 +830,7 @@ function toolSchema() {
|
|
|
829
830
|
sshPort: z.number().int().positive().optional().describe("Default SSH port for manual mode (default: 22)."),
|
|
830
831
|
sshConnectTimeoutSec: z.number().positive().optional().describe("SSH connect timeout seconds (default: 8)."),
|
|
831
832
|
htmlOutPath: z.string().min(1).optional().describe("Optional HTML GUI report output path."),
|
|
832
|
-
openHtml: z.boolean().optional().describe("
|
|
833
|
+
openHtml: z.boolean().optional().describe("Control HTML auto-open (default: true)."),
|
|
833
834
|
autoSsoLogin: z.boolean().optional().describe("Enable/disable automatic aws sso login retry."),
|
|
834
835
|
noProgress: z.boolean().optional().describe("Suppress CLI progress logs."),
|
|
835
836
|
timeoutSec: z.number().positive().max(3600).optional().describe("Wrapper timeout for CLI process."),
|
package/bin/mcp-aws-manager.js
CHANGED
|
@@ -326,8 +326,8 @@ function usageText() {
|
|
|
326
326
|
" --ssh-port <port> (default: 22)",
|
|
327
327
|
" --ssh-connect-timeout <seconds> (default: 8)",
|
|
328
328
|
" --html-out <path> (default: auto -> workspace/home aws-inventory.html)",
|
|
329
|
-
" --open-html (
|
|
330
|
-
" --no-open-html (disable auto-open
|
|
329
|
+
" --open-html (open HTML report after write; default: on)",
|
|
330
|
+
" --no-open-html (disable HTML auto-open)",
|
|
331
331
|
" --auto-sso-login / --no-auto-sso-login",
|
|
332
332
|
" --format <json|csv> (default: json)",
|
|
333
333
|
" --out <path>",
|
|
@@ -625,7 +625,7 @@ function parseDiscoverArgs(argv) {
|
|
|
625
625
|
htmlOutPath: options.htmlOutPath
|
|
626
626
|
? path.resolve(expandHome(options.htmlOutPath))
|
|
627
627
|
: (envText("MCP_AWS_HTML_OUT") ? path.resolve(expandHome(envText("MCP_AWS_HTML_OUT"))) : resolveDefaultHtmlOutPath()),
|
|
628
|
-
openHtml: options.openHtml != null ? options.openHtml : (envOpenHtml != null ? envBool("MCP_AWS_OPEN_HTML") :
|
|
628
|
+
openHtml: options.openHtml != null ? options.openHtml : (envOpenHtml != null ? envBool("MCP_AWS_OPEN_HTML") : true),
|
|
629
629
|
autoSsoLogin: options.autoSsoLogin != null ? options.autoSsoLogin : (envText("MCP_AWS_AUTO_SSO_LOGIN") != null ? envBool("MCP_AWS_AUTO_SSO_LOGIN") : true),
|
|
630
630
|
format,
|
|
631
631
|
outPath: options.outPath ? path.resolve(expandHome(options.outPath)) : (envText("MCP_AWS_OUT") ? path.resolve(expandHome(envText("MCP_AWS_OUT"))) : null),
|
|
@@ -3134,7 +3134,7 @@ async function runWorkflow(config) {
|
|
|
3134
3134
|
if (htmlPath && shouldAutoOpenHtml(config)) {
|
|
3135
3135
|
const opened = tryOpenFile(htmlPath);
|
|
3136
3136
|
if (!opened.ok) {
|
|
3137
|
-
|
|
3137
|
+
eprint(`NOTE: Failed to auto-open HTML report: ${opened.detail}`);
|
|
3138
3138
|
} else {
|
|
3139
3139
|
eprint(`Opened HTML report via ${opened.detail}`);
|
|
3140
3140
|
}
|
package/package.json
CHANGED