You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws/aws-mcp-cli-commands/src/main/java/software/amazon/smithy/java/aws/mcp/cli/commands/AddAwsServiceBundle.java
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -34,24 +34,25 @@ public class AddAwsServiceBundle extends AbstractAddBundle {
34
34
@Option(names = {"-b", "--blocked-apis"}, description = "List of APIs to hide in the MCP server")
35
35
protectedSet<String> blockedApis;
36
36
37
-
@Option(names = "--include-write-apis",
38
-
description = "Include write APIs in the MCP server")
39
-
BooleanincludeWriteApis;
37
+
@Option(names = "--read-only-apis",
38
+
description = "Include read only APIs in the MCP server",
39
+
defaultValue = "true")
40
+
protectedbooleanreadOnlyApis;
40
41
41
42
@Override
42
43
protectedCliBundlegetNewToolConfig() {
43
44
varbundleBuilder = AwsServiceBundler.builder()
44
45
.serviceName(awsServiceName);
45
-
//If nothing is specified then default to only readOnlyOperations.
46
+
if (readOnlyApis) {
47
+
// Include read-only apis unless disabled
48
+
bundleBuilder.readOnlyOperations();
49
+
}
46
50
if (allowedApis != null) {
47
51
// User explicitly specified allowed APIs - use only those
0 commit comments