Skip to content

feat: show the aws-devops-agent command in the help; update setup messages - #978

Merged
cchu-ld merged 3 commits into
mainfrom
cchu/unhide-aws-devops-agent
Oct 27, 2026
Merged

cchu-ld merged 3 commits into
mainfrom
cchu/unhide-aws-devops-agent

Conversation

@cchu-ld

@cchu-ld cchu-ld commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR reverts the code part of #958. The aws-devops-agent command is now in the Cobra help and in the root usage listing.

Setup messages name the right server

Since #968, setup registers a server for each agent space, named LaunchDarkly-<agent space ID>, and a customer can rename a server. Some setup messages still said "MCP server LaunchDarkly", so this pull request also fixes them:

  • The skip and ask plan lines, and the skip log, now say "the MCP server of this agent space", like the register line.
  • The association logs ("already associated", "Associated") name the server that setup reused or registered.
  • The warning about a server that appeared after the first plan names the server by its ID when AWS sent no name, instead of a guessed name.
  • The comments on MCPStep.name and MCPStep.Name say which name each one is. name() still falls back to LaunchDarkly, because the rename check of fix: give each agent space its own LaunchDarkly MCP server #968 compares it with MCPServerNameFor.

These changes are only to text. Setup does the same steps.

I ran go test ./internal/awsdevops/... ./cmd/... and golangci-lint, and they passed.

🤖 Generated with Claude Code


Note

Overview
Makes aws-devops-agent visible in the root ldcli help by removing the hidden flag on the command group and adding it to the root usage template (reverting the hide from #958).

Clarifies AWS DevOps Agent setup copy around MCP servers now that each agent space can have its own renamed server (LaunchDarkly-<space id>). Skip/ask plan lines and skip logs refer to the MCP server of this agent space instead of a fixed “LaunchDarkly” label. Association messages (“already associated”, “Associated”) and reuse logs use the actual AWS server name (via a new name argument to associateMCPServer). When a server appears between planning passes, the stderr warning shows name (id) when AWS provides a name and only the service ID when it does not—no fallback to a guessed default name.

Tests are updated for the new strings, including coverage for the nameless-server warning.

Reviewed by Cursor Bugbot for commit cba46c0. Bugbot is set up for automated code reviews on this repo. Configure here.

This reverts the code part of #958. Cobra shows the command in the help
again, and the root usage listing names it. The README section stays out,
because the behavior changed after #958.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cchu-ld
cchu-ld marked this pull request as ready for review October 27, 2026 17:03
@cchu-ld
cchu-ld requested a review from a team as a code owner October 27, 2026 17:03
@cchu-ld
cchu-ld requested review from a team and zakk-verrilli-ld and removed request for a team October 27, 2026 17:03
Since #968, setup registers a server for each agent space, named
LaunchDarkly-<agent space ID>, and a customer can rename a server. Some plan
lines and log messages still said "MCP server LaunchDarkly":

- The skip and ask plan lines, and the skip log, now say "the MCP server of
  this agent space", like the register line.
- The association logs name the server that setup reused or registered.
- The warning about a server that appeared after the first plan falls back to
  the name of the server of the space.
- The comments on MCPStep.name and MCPStep.Name say which name each one is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cchu-ld cchu-ld changed the title feat: show the aws-devops-agent command in the help feat: show the aws-devops-agent command in the help; update setup messages Oct 27, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 61860a9. Configure here.

Comment thread cmd/aws_devops_agent/setup.go Resolved
The warning fell back to MCPServerNameFor of the space when AWS sent no name.
That is the name that a run would register, not a name of the server that
appeared, and the plan text names the same server another way. The warning
now gives only the server ID, which identifies the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cchu-ld
cchu-ld merged commit 87a3fa0 into main Oct 27, 2026
11 checks passed
@cchu-ld
cchu-ld deleted the cchu/unhide-aws-devops-agent branch October 27, 2026 18:15
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