Skip to content

Default to only launching Smithy bundles when no bundles are specified#762

Merged
rhernandez35 merged 1 commit into
mainfrom
default-servers
Jun 10, 2025
Merged

Default to only launching Smithy bundles when no bundles are specified#762
rhernandez35 merged 1 commit into
mainfrom
default-servers

Conversation

@rhernandez35

Copy link
Copy Markdown
Collaborator

No description provided.

@rhernandez35
rhernandez35 requested a review from adwsingh June 10, 2025 17:29
@rhernandez35
rhernandez35 enabled auto-merge (rebase) June 10, 2025 17:29
Comment on lines +81 to +91
toolBundles = new ArrayList<>(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;
})
.map(Map.Entry::getKey)
.toList());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
toolBundles = new ArrayList<>(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;
})
.map(Map.Entry::getKey)
.toList());
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;
})
.map(Map.Entry::getKey)
.toList();

@rhernandez35
rhernandez35 merged commit 014a661 into main Jun 10, 2025
2 checks passed
@rhernandez35
rhernandez35 deleted the default-servers branch June 10, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants