Skip to content

Commit 13f3ef0

Browse files
chore(release): version packages (#2576)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e8b5a61 commit 13f3ef0

8 files changed

Lines changed: 16 additions & 22 deletions

.changeset/accept-hallucinated-tool-args.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/handle-mcp-config-detection-errors.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/mcp-stdio-orphan-exit.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/respect-claude-config-dir.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.4.2
4+
5+
### Patch Changes
6+
7+
- 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.
8+
- 4056850: Respect `CLAUDE_CONFIG_DIR` env var when resolving Claude Code's global config, rules, skills, and detection paths
9+
310
## 0.4.1
411

512
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ctx7",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Context7 CLI - Manage AI coding skills and documentation context",
55
"type": "module",
66
"bin": {

packages/mcp/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @upstash/context7-mcp
22

3+
## 2.2.5
4+
5+
### Patch Changes
6+
7+
- 187287c: Accept hallucinated argument names on `tools/call` requests by rewriting them to the canonical names before validation. `userQuery` and `question` are mapped to `query` on either tool; on `query-docs`, `context7CompatibleLibraryID`, `libraryID`, and `libraryName` are mapped to `libraryId`. Some LLM clients produce these alternative names — likely echoing phrasing from each tool's description — and previously triggered `Invalid input: expected string, received undefined` errors. `libraryName` is only rewritten on `query-docs` calls because it is the canonical arg for `resolve-library-id`. Tool input schemas published via `tools/list` are unchanged: canonical names remain the documented required fields, the rewrite is purely a server-side compatibility shim that runs only on `tools/call` and only when the canonical key is absent.
8+
- 78b9826: Exit the stdio MCP server when the parent process closes its stdio. Previously, if the parent (e.g. Claude Code) was force-killed shortly after a tool call, an idle undici keep-alive socket to the Context7 API would keep libuv's event loop alive past stdin EOF, leaving an orphaned `node` process that consumed memory until the kernel tore the socket down (which on Cloudflare-fronted endpoints can take hours). The server now listens for `end`/`close` on stdin and `SIGHUP` and exits cleanly. Fixes #2542.
9+
310
## 2.2.4
411

512
### Patch Changes

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@upstash/context7-mcp",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"mcpName": "io.github.upstash/context7",
55
"description": "MCP server for Context7",
66
"scripts": {

0 commit comments

Comments
 (0)