Skip to content

fix: pre-populate registry URL in add-skill, add-mcp, and TUI wizard#290

Merged
peterj merged 2 commits intoagentregistry-dev:mainfrom
optimus-fulcria:fix/prepopulate-registry-url-145
Mar 7, 2026
Merged

fix: pre-populate registry URL in add-skill, add-mcp, and TUI wizard#290
peterj merged 2 commits intoagentregistry-dev:mainfrom
optimus-fulcria:fix/prepopulate-registry-url-145

Conversation

@optimus-fulcria
Copy link
Copy Markdown
Contributor

@optimus-fulcria optimus-fulcria commented Mar 6, 2026

Description

Fixes #145

When using arctl agent add-mcp or arctl agent add-skill with a registry MCP server, the user has to manually type the registry URL even though there's already a configured default. This pre-populates the registry URL field in both the TUI wizard and CLI flags.

Key changes

  • TUI wizard's chooseRegistryType() pre-populates the registry URL input with GetDefaultRegistryURL()
  • CLI add-mcp falls back to default registry URL when --registry-url is not provided but --registry-server-name is
  • New agentutils.GetDefaultRegistryURL() helper reads from config

Change Type

/kind fix

Changelog

Pre-populate registry URL in add-skill, add-mcp, and TUI wizard from configured default

Additional Notes

None.

When --registry-url is omitted, default to the current registry URL
(from ARCTL_API_BASE_URL or the running daemon) instead of requiring
the user to type it every time. This matches the behavior already
implemented in add-prompt.

Also pre-populates the TUI wizard's registry URL input field so users
can just press Enter to accept the default.

Fixes agentregistry-dev#145

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copy link
Copy Markdown
Contributor

@peterj peterj left a comment

Choose a reason for hiding this comment

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

added a couple of comments

Address review feedback:
- Remove unnecessary if/else in chooseRegistryType - just set the value
  directly since empty string is fine
- Restore //nolint:nestif directive that was removed by mistake

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

1 similar comment
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

@peterj peterj added this pull request to the merge queue Mar 6, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 7, 2026
@peterj peterj added this pull request to the merge queue Mar 7, 2026
Merged via the queue into agentregistry-dev:main with commit db2a783 Mar 7, 2026
9 checks passed
christian-posta pushed a commit to christian-posta/agentregistry that referenced this pull request Mar 9, 2026
…gentregistry-dev#290)

# Description

Fixes agentregistry-dev#145

When using `arctl agent add-mcp` or `arctl agent add-skill` with a
registry MCP server, the user has to manually type the registry URL even
though there's already a configured default. This pre-populates the
registry URL field in both the TUI wizard and CLI flags.

## Key changes
- TUI wizard's `chooseRegistryType()` pre-populates the registry URL
input with `GetDefaultRegistryURL()`
- CLI `add-mcp` falls back to default registry URL when `--registry-url`
is not provided but `--registry-server-name` is
- New `agentutils.GetDefaultRegistryURL()` helper reads from config

# Change Type

/kind fix

# Changelog

```release-note
Pre-populate registry URL in add-skill, add-mcp, and TUI wizard from configured default
```

# Additional Notes

None.

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-populate the registry URL where it makes sense ( in TUI, the arctl agent [add-mcp/add-skill/add-prompt] commands)

2 participants