Skip to content

Add next-step hints to guide users through command chains - #241

Merged
jancurn merged 9 commits into
mainfrom
claude/setup-mcp-servers-RTwDl
May 29, 2026
Merged

Add next-step hints to guide users through command chains#241
jancurn merged 9 commits into
mainfrom
claude/setup-mcp-servers-RTwDl

Conversation

@jancurn

@jancurn jancurn commented May 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Print next-step hints after mcpc (list sessions) and mcpc connect (skipped stdio) so the next command is discoverable without --help. Documented as a new principle in CLAUDE.md.
  • Fix formatTimeAgo pluralization: 1 week ago / 1 month ago instead of 1 weeks ago / 1 months ago.
  • Link Node.js / Bun install pages from the README for newcomers.

Test plan

  • mcpc with at least one session prints To view server info and capabilities, run: mcpc @session above For usage information, run: mcpc --help; with zero sessions the first line is omitted.
  • mcpc connect (auto-discovery) prints ↳ run: mcpc connect --stdio after the skipped-stdio summary.
  • An OAuth profile created ~1 week ago shows created 1 week ago (singular).

https://claude.ai/code/session_015wCgMKyoa4kMuvHiqdo5JY

claude and others added 8 commits May 20, 2026 20:16
- Add `↳ view a session: mcpc @sessionname` hint after listing sessions
  in `mcpc` (no args), so users and agents see what to do next.
- Move `pass --stdio to include` out of the `mcpc connect` summary line
  into a dedicated `↳ run: mcpc connect --stdio` hint, matching the
  unauthorized/expired-session hint style.
- Document the convention as a new "Next-step hints" principle in
  CLAUDE.md.
Adds a one-liner before the install snippet pointing newbies to
nodejs.org and bun.sh so they don't have to figure out where to get
the runtime first.
Previously the hint was placed directly after the sessions list,
where its 2-space indent collided visually with the 4-space recovery
hints under each session (e.g. `↳ run: mcpc @test restart`), making
it look like a per-session hint rather than a global one.

Now `listSessionsAndAuthProfiles` returns `hasSessions`, and the
caller prints the view-session hint immediately above the existing
`Run "mcpc --help"...` line — visually grouped with the global
footer instead of nested inside the session list.
- Rephrase the view-session hint to match the existing `Run "..."`
  footer line: `Run "mcpc @sessionname" to view session details.`
  sits naturally next to `Run "mcpc --help" for usage information.`
- Fix `formatTimeAgo` to use singular form when the count is 1:
  `1 week ago` / `1 month ago` instead of `1 weeks ago` /
  `1 months ago`.
Aligns the two footer lines with the existing `To X, run: ...` /
`For X, run: ...` pattern used in tasks.ts, helpers.ts,
bridge-manager.ts, and errors.ts:

  To view server info and capabilities, run: mcpc @session
  For usage information, run: mcpc --help
Comment thread README.md Outdated
…install

- New `test/unit/cli/sessions.test.ts` covers all branches of
  `formatTimeAgo`, including the singular/plural fix for `1 week ago`
  and `1 month ago`. Uses fake timers for deterministic results.
- README install section: drop the `(≥ 18)` / `(≥ 1)` version
  qualifiers and say "install the latest" instead, per review
  comment on #241.
@jancurn
jancurn merged commit f1bf039 into main May 29, 2026
6 checks passed
@jancurn
jancurn deleted the claude/setup-mcp-servers-RTwDl branch May 29, 2026 20:29
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.

3 participants