You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Derive apm mcp install --help forwarded options from apm install instead of hand-written prose #3588
area/cliCLI command surface, flags, help text (cross-cutting).status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/featureNew capability, new flag, new primitive.
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.
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)
area/cliCLI command surface, flags, help text (cross-cutting).status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/featureNew capability, new flag, new primitive.
Activity
danielmeppiel commentedon Nov 12, 2026
Decision: approve
Area: project
Scope: Derive the forwarded-option help of
apm mcp installfrom the same option definitionsapm installuses (shared option declarations that forward to install), replacing the hand-written prose. Help text, validation and shell completion then stay identical toapm installfor every forwarded flag.Done when:
apm mcp install --helplists 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 fromapm 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 installsemantics, and other alias commands.Review contact: Daniel Meppiel (@danielmeppiel)
feat(cli): derive apm mcp install forwarded options from apm install (m…
fix(tests): restore release-gate lanes for 0.36.0 (#3723)