Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,16 @@ public void execute(ExecutionContext context) throws IOException {
var config = context.config();
// By default, load all available tools
if (toolBundles == null || toolBundles.isEmpty()) {
toolBundles = new ArrayList<>(config.getToolBundles()
toolBundles = config.getToolBundles()
.entrySet()
.stream()
.filter(entry -> {
// By default, only include smithy bundles if no bundles are specified.
// We can undo this once we have fanout support for generic bundles.
var bundle = entry.getValue();
return bundle.getValue() instanceof McpBundleConfig.SmithyModeledMember;
return entry.getValue().type() == McpBundleConfig.Type.smithyModeled;
})
.map(Map.Entry::getKey)
.toList());
.toList();
}

if (toolBundles.isEmpty() && !registryServer) {
Expand Down