Skip to content

Add client-config command to configure client config#776

Merged
adwsingh merged 1 commit into
mainfrom
adwsingh/client-config-command
Jun 13, 2025
Merged

Add client-config command to configure client config#776
adwsingh merged 1 commit into
mainfrom
adwsingh/client-config-command

Conversation

@adwsingh

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adwsingh
adwsingh force-pushed the adwsingh/client-config-command branch from 22fd923 to afe15fe Compare June 12, 2025 21:27
@adwsingh
adwsingh requested a review from rhernandez35 June 12, 2025 21:30
@adwsingh
adwsingh force-pushed the adwsingh/client-config-command branch from afe15fe to 3888616 Compare June 12, 2025 21:30
@adwsingh
adwsingh force-pushed the adwsingh/client-config-command branch from 3888616 to 2f380a6 Compare June 12, 2025 21:45
@Command(name = "add", description = "Add a new MCP client configuration")
public static final class AddCommand extends SmithyMcpCommand implements ConfigurationCommand {

@Parameters(index = "0", description = "Client name (e.g., 'q-cli')")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should just be q to match the command nameshould just be q to match the command name

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ehh, we have used q-cli for Q, so I didn't want to confuse users.

String filePath;

@Option(names = {"--overwrite"}, description = "Overwrite existing client configuration if it exists",
defaultValue = "false")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why false? I'd think invoking this command would indicate my desire to overwrite the existing config.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We follow the same convention everywhere, by default don't overwrite and just warn.

@adwsingh
adwsingh merged commit 34a5b0c into main Jun 13, 2025
2 checks passed
@adwsingh
adwsingh deleted the adwsingh/client-config-command branch June 13, 2025 16:40
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