Skip to content

fix: harden CLI network error handling#224

Merged
jlitola merged 1 commit into
mainfrom
southern-court
Jul 16, 2026
Merged

fix: harden CLI network error handling#224
jlitola merged 1 commit into
mainfrom
southern-court

Conversation

@jlitola

@jlitola jlitola commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • route unexpected startup and command failures through one stack-safe CLI boundary
  • sanitize REST and OAuth errors, classify transport failures, and validate response contracts
  • enforce HTTPS for service/OAuth endpoints while preserving exact-loopback development and local-only recovery paths
  • remove obsolete URL-based command registration gating and document the resulting contracts

Review findings

Implements quality-review items P0.1, P0.3, P1.1, and P1.3. This changes behavior exported through @githits/mcp/client and should receive the appropriate MCP patch bump during release preparation.

Verification

  • bun test (2407 tests)
  • bun run typecheck
  • bun run lint (one pre-existing warning)
  • bun run format:check
  • root and MCP package builds
  • bun run smoke:cli
  • bun run smoke:mcp
  • bun run smoke:proxy-node
  • bun run validate:packages:mcp-publish
  • built CLI local-only and insecure-URL checks

Sanitize transport and OAuth failures, enforce secure service URLs, and route all startup errors through one CLI boundary. Add strict response validation, local-only recovery behavior, and regression coverage for the reviewed P0/P1 findings.
@jlitola jlitola added bug Something isn't working javascript Pull requests that update javascript code labels Jul 16, 2026
@jlitola jlitola merged commit 98466e0 into main Jul 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant