Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- New `mcpc grep <pattern>` 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

Expand Down
6 changes: 5 additions & 1 deletion src/cli/commands/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`));
}
}
}
Expand Down