Skip to content

Conversation

@cmrigney
Copy link
Contributor

@cmrigney cmrigney commented Nov 21, 2025

What I did

  • The prior catalog command is now catalog-deprecated and is hidden.
  • The catalog-next subcommand is now catalog.
  • docker mcp gateway run will now default to attempting to run the profile with id default
  • Made --profile a required flag for docker mcp client connect
  • Removed Gordon support for now. (It's not yet compatible with profiles.)
  • Updated docs. This isn't comprehensive. We also need to update all the examples.

Important

Do not merge until we are ready to release this breaking change.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@cmrigney cmrigney requested a review from a team as a code owner November 21, 2025 21:27
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +67 to +79
if len(options.CatalogPath) == 0 && len(options.RegistryPath) == 0 && len(options.ConfigPath) == 0 && len(options.ToolsPath) == 0 {
// We're in working set mode, so use the default profile if no profile is specified
if options.WorkingSet == "" {
options.WorkingSet = "default"
}
}

if options.WorkingSet != "" &&
(len(options.ServerNames) > 0 || enableAllServers ||
len(options.CatalogPath) > 0 || len(options.RegistryPath) > 0 || len(options.ConfigPath) > 0 || len(options.ToolsPath) > 0 ||
len(additionalCatalogs) > 0 || len(additionalRegistries) > 0 || len(additionalConfigs) > 0 || len(additionalToolsConfig) > 0 ||
len(mcpRegistryUrls) > 0 || len(options.OciRef) > 0 ||
options.SecretsPath != "docker-desktop") {

Choose a reason for hiding this comment

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

P1 Badge Avoid auto-selecting default profile when extra config flags set

The new defaulting to options.WorkingSet="default" fires whenever the catalog/registry/config/tools paths are empty (lines 67-70), but it ignores other configuration flags such as --additional-catalog, --additional-config, --additional-registry, --additional-tools-config, or --mcp-registry. On a host run the subsequent guard at lines 74-79 then rejects the run because a profile is now set, so commands like docker mcp gateway run --additional-catalog foo.yaml or --mcp-registry … fail even though the user never asked for a profile. This blocks non-profile usage whenever any of those flags are provided. The default profile should be skipped when any extra catalog/registry/config inputs are supplied.

Useful? React with 👍 / 👎.

@cmrigney cmrigney marked this pull request as draft December 2, 2025 20:20
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