diff --git a/CHANGELOG.md b/CHANGELOG.md index ad6b47db..48add0f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - New `mcpc grep ` command to search tools, resources, and prompts across all active sessions, with support for regex (`-E`), type filters (`--tools`, `--resources`, `--prompts`), and single-session search (`mcpc @session grep`) +- Recovery hints for crashed and expired sessions in `mcpc` session list output ### Fixed diff --git a/src/cli/commands/sessions.ts b/src/cli/commands/sessions.ts index 0a82af41..21b6b6e4 100644 --- a/src/cli/commands/sessions.ts +++ b/src/cli/commands/sessions.ts @@ -443,10 +443,14 @@ export async function listSessionsAndAuthProfiles(options: { console.log(` ${formatSessionLine(session)} ${statusStr}`); - // Show recovery hint for unauthorized sessions + // Show recovery hints for non-live sessions if (status === 'unauthorized') { const target = getServerHost(session.server.url || session.server.command || ''); console.log(chalk.dim(` ↳ run: mcpc login ${target} && mcpc ${session.name} restart`)); + } else if (status === 'crashed') { + console.log(chalk.dim(` ↳ run: mcpc ${session.name}`)); + } else if (status === 'expired') { + console.log(chalk.dim(` ↳ run: mcpc ${session.name} restart`)); } } }