ctx7@0.4.2

upstash/context7ctx7@0.4.2May 11, 2026by github-actions[bot]

AI Summary

Enhanced error handling for malformed config files and added support for custom configuration directories.

Key Highlights

  • Handles malformed JSON config files gracefully during agent detection.
  • Logs warnings for problematic files instead of crashing.
  • Respects 'CLAUDE_CONFIG_DIR' environment variable.

New Features

  • Graceful malformed config handling
  • CLAUDE_CONFIG_DIR support

Full Release Notes

### Patch Changes

-   6c71e4d: Handle malformed MCP config files gracefully during `ctx7 remove` agent detection. Previously, an unparseable JSON config at any agent's well-known path (e.g. a hand-edited `~/.claude.json`) would crash the command with an unhandled `SyntaxError` before it could do anything. The detector now skips the offending file and logs a warning naming the path and parse error so the user can fix it, while detection continues for the remaining agents.
-   4056850: Respect `CLAUDE_CONFIG_DIR` env var when resolving Claude Code's global config, rules, skills, and detection paths