Skip to content

feat(cli): classify MCP startup failures and add --verbose alias - #85

Merged
benbenbang merged 1 commit into
mainfrom
feature/verbose-mcp-diagnostics
Oct 11, 2026
Merged

benbenbang merged 1 commit into
mainfrom
feature/verbose-mcp-diagnostics

Conversation

@benbenbang

Copy link
Copy Markdown
Member

Add safe diagnostics for MCP startup so missing or malformed upstream API
keys, unsupported providers, and client configuration errors are
classified and surfaced with actionable guidance, without logging
credential values or raw error causes. Validate the configured API key by
trimming whitespace and rejecting non-printable characters so an invalid
key is reported distinctly from a missing one, and ensure an explicit
empty CLI key never falls back to an SDK environment key.

Introduce a --verbose persistent flag as an alias for --debug. Either
flag now enables debug-level logging and the diagnostic startup category;
an explicit --debug=false --verbose still logs.

Update the debug documentation to cover the alias and the new MCP startup
failure guidance, and add tests exercising the initialization logging and
the verbose alias behaviour.

Add safe diagnostics for MCP startup so missing or malformed upstream API
keys, unsupported providers, and client configuration errors are
classified and surfaced with actionable guidance, without logging
credential values or raw error causes. Validate the configured API key by
trimming whitespace and rejecting non-printable characters so an invalid
key is reported distinctly from a missing one, and ensure an explicit
empty CLI key never falls back to an SDK environment key.

Introduce a `--verbose` persistent flag as an alias for `--debug`. Either
flag now enables debug-level logging and the diagnostic startup category;
an explicit `--debug=false --verbose` still logs.

Update the debug documentation to cover the alias and the new MCP startup
failure guidance, and add tests exercising the initialization logging and
the verbose alias behaviour.
@benbenbang
benbenbang enabled auto-merge (rebase) October 11, 2026 02:58
@github-actions github-actions Bot added documentation Improvements or additions to documentation triage labels Oct 11, 2026
@benbenbang
benbenbang merged commit d8d94bd into main Oct 11, 2026
5 checks passed
@benbenbang
benbenbang deleted the feature/verbose-mcp-diagnostics branch October 11, 2026 03:00
@ptah-bw-technical-app

Copy link
Copy Markdown

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation released triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant