Skip to content

fix(mecatui): simplify mode-specific CLI help - #1654

Merged
jhrozek merged 1 commit into
mainfrom
fix/mecatui-cli-help-1648
Sep 17, 2026
Merged

jhrozek merged 1 commit into
mainfrom
fix/mecatui-cli-help-1648

Conversation

@danbarr

@danbarr danbarr commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make mecatui command and flag help concise, goal-oriented, and free of development-history commentary.
  • Make exhaustive help mode-aware, including local and remote sessions --help-all, so each command advertises only flags it accepts.
  • Preserve plain-language security, privacy, credential, and destructive-operation consequences, with regression coverage across every CLI help surface.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR, and the in-PR plan declares **Expected tasks:** 1, a non-placeholder **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary interface change (None — rationale; workflow-only meta-changes may review process docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Focused CLI copy cleanup and correction of existing flag-applicability metadata; no new interface or architecture.
  • Decision record: None — no durable architectural decision.
  • Human waiver of spine: No
  • Acceptance plan: N/A — Routine work tracked by mecatui: simplify CLI help and fix mode-specific flag accuracy #1648.
  • Human decisions resolved and recorded: N/A — no open product or interface decision.
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work is acceptance-plan exempt.

Interface conformance

  • Keeps command and flag behavior unchanged except for making help applicability and early connect-mode rejection agree with the existing command contract.

Issue relationship

Closes #1648

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional checks:

  • go test ./cmd/mecatui
  • task build
  • git diff --check
  • Rendered inspection of top-level, common, exhaustive, connect, sessions, debug, and provider help

task test reached and passed the changed mecatui packages, then failed in the unrelated internal/app test TestCommandRunnerEnvironment_Scenario2_DefaultScrub. The test sets PATH=/bin and invokes env; on this macOS host env is under /usr/bin, so the command produces empty stdout. An isolated rerun reproduced the same host-specific failure, and this PR does not change that package.

Changes

File Change
cmd/mecatui/command.go, provider_help.go Shorten command, debug, and provider help around user goals and effects.
cmd/mecatui/config.go, helpmeta.go Shorten flag descriptions and centralize mode-aware exhaustive-help filtering.
cmd/mecatui/*_test.go Cover applicability, workspace rejection, scannability, and forbidden implementation vocabulary across all help surfaces.

User-facing change

mecatui --help and command-specific help are shorter and easier to scan. Embedded and connect help now list only flags accepted in that mode, while security and data-handling warnings remain explicit.

Special notes for reviewers

The panel review found that local sessions --help-all still leaked remote-only flags through a duplicated filtering path. The final change centralizes exhaustive-help exclusions on the same applicability metadata used by parsing and adds local and remote sessions regressions.

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the PR. The original wording is clear and appropriately scoped for this help-focused change. Approved.

@jhrozek
jhrozek merged commit 0d53864 into main Sep 17, 2026
35 checks passed
@jhrozek
jhrozek deleted the fix/mecatui-cli-help-1648 branch September 17, 2026 10:51
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
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.

mecatui: simplify CLI help and fix mode-specific flag accuracy

2 participants