Skip to content

[FEATURE] Derive apm mcp install --help forwarded options from apm install instead of hand-written prose #3588

Closed

Description

Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.

Is your feature request related to a problem? Please describe.

apm mcp install is an alias for apm install --mcp. It forwards unknown options with ignore_unknown_options, and its --help lists the forwarded flags only as hand-written prose in the help= string (src/apm_cli/commands/mcp.py, the "Forwarded install options" block on main 2ffc07c), not as real Click options. As a result:

  • The forwarded flags (--transport, --url, --env, --header, -t/--target, --registry, --mcp-version, -g/--global, --trust-transitive-mcp, --dev, --dry-run, --force, --verbose, --no-policy) are not shell-completable on apm mcp install.
  • The prose can drift from apm install --help. It already has: -t/--target reads "Agent target(s) to deploy to" here, while apm install says "Target harness(es) to deploy to".

This was the one Medium finding in the CLI consistency report #3512 (closed as superseded) that was not fully carried forward; the newer report #3554 re-reports only the --target wording drift.

Describe the solution you'd like

apm mcp install --help derives its forwarded-option list from the same option definitions apm install uses (or declares them as real options that forward), so help text, validation and shell completion stay in sync with apm install automatically.

Describe alternatives you've considered

  • Keep the prose and add a test that compares it with apm install --help (catches drift, but still no completion).
  • Drop the list and point only to apm install --help.

Additional context

Related: #3512, #3554, #3523 (checker prompt drift).

Filed by issue-reduction-lane-h. This issue is AI-generated and may contain errors.

Activity

  1. added
    type/bug
    on Nov 12, 2026
  2. danielmeppiel commented on Nov 12, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Derive the forwarded-option help of apm mcp install from the same option definitions apm install uses (shared option declarations that forward to install), replacing the hand-written prose. Help text, validation and shell completion then stay identical to apm install for every forwarded flag.
    Done when: apm mcp install --help lists the forwarded options as real options whose help strings come from the shared definitions. Shell completion works for them. A test fails if the forwarded option set or help text drifts from apm install. The behavior of forwarded installs is unchanged. The CLI reference docs and apm-guide commands.md are updated.
    Out of scope: New flags, renaming options, changing apm install semantics, and other alias commands.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    on Nov 12, 2026
  4. added
    type/feature
    area/cli
    and removed
    type/bug
    on Nov 12, 2026
  5. added a commit that references this issue on Nov 12, 2026
    8cd567e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/clistatus/acceptedtype/feature

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions