Context7 Platform -- Up-to-date docs for AI agents
chore(release): version packages (#2731)
github-actions[bot]0c53c6fb3e3e
diff --git a/.changeset/bump-cli-runtime-deps.md b/.changeset/bump-cli-runtime-deps.mddeleted file mode 100644index 9414c9f1..00000000--- a/.changeset/bump-cli-runtime-deps.md+++ /dev/null@@ -1,5 +0,0 @@-----"ctx7": patch------Bump runtime dependencies: `commander` 13 -> 15 and `ora` 9.0 -> 9.4.diff --git a/.changeset/bump-mcp-runtime-deps.md b/.changeset/bump-mcp-runtime-deps.mddeleted file mode 100644index 978bf07a..00000000--- a/.changeset/bump-mcp-runtime-deps.md+++ /dev/null@@ -1,5 +0,0 @@-----"@upstash/context7-mcp": patch------Bump runtime dependencies: `@modelcontextprotocol/sdk` 1.25 -> 1.29, `undici` 6 -> 7, and `zod` 4.3 -> 4.4.diff --git a/.changeset/ctx7-1604-prompts-resources-handlers.md b/.changeset/ctx7-1604-prompts-resources-handlers.mddeleted file mode 100644index b15752fe..00000000--- a/.changeset/ctx7-1604-prompts-resources-handlers.md+++ /dev/null@@ -1,5 +0,0 @@-----"@upstash/context7-mcp": patch------Advertise empty `prompts` and `resources` capabilities with no-op `prompts/list`, `resources/list`, and `resources/templates/list` handlers. Some MCP clients (e.g. opencode) call these unconditionally and treat `-32601 Method not found` as a fatal connection error rather than honoring the negotiated capabilities, which previously prevented the server from loading.diff --git a/.changeset/git-bash-library-id.md b/.changeset/git-bash-library-id.mddeleted file mode 100644index 0a185cd0..00000000--- a/.changeset/git-bash-library-id.md+++ /dev/null@@ -1,5 +0,0 @@-----"ctx7": patch------Recover Context7 library IDs that Git Bash mangles on Windows. Git Bash rewrites a leading-slash argument like `/facebook/react` into a Windows path under the Git install dir (`C:/Program Files/Git/facebook/react`), causing `ctx7 docs` to reject it as invalid; this mainly affected users running ctx7 through Claude Code. The CLI now detects and undoes the conversion before validation, accepts the `//owner/repo` escape, and points users at that workaround for install layouts it can't auto-detect.diff --git a/.changeset/mcp-auth-elicit.md b/.changeset/mcp-auth-elicit.mddeleted file mode 100644index 31f59541..00000000--- a/.changeset/mcp-auth-elicit.md+++ /dev/null@@ -1,11 +0,0 @@-----"@upstash/context7-mcp": minor------Replace the in-result sign-in nudge with an MCP form elicitation. When the backend signals (via `X-Context7-Auth-Prompt: 1`) that an anonymous client has crossed the per-IP threshold, the MCP server now fires an `elicitation/create` request instead of appending instructions into the tool result.--- Surfaces the `npx ctx7 setup --<client> --mcp[ --stdio] -y` command in a client-rendered dialog rather than as model-visible text. The previous text-injection approach was treated as untrusted instruction content by some agents; elicitations are delivered out-of-band to the user so they bypass that path entirely.-- Gated on the client advertising the `elicitation` capability — clients without it see no nudge, which is a safe no-op.-- Presents a two-option radio: "I'll run the command to sign in" or "Continue anonymously with smaller limits".-- The server holds no suppression state: the backend emits the header at most once per MCP session, so the dialog is shown whenever the header is present. Frequency is owned entirely by the backend.-- Fire-and-forget: the elicitation does not block or alter the surrounding tool response.diff --git a/.changeset/sdk-non-json-error-response.md b/.changeset/sdk-non-json-error-response.mddeleted file mode 100644index 96cd84f5..00000000--- a/.changeset/sdk-non-json-error-response.md+++ /dev/null@@ -1,5 +0,0 @@-----"@upstash/context7-sdk": patch------Avoid throwing a raw `SyntaxError` when the server returns a non-JSON error body. `HttpClient.request()` now wraps the error-path `res.json()` in a `.catch`, so non-JSON responses (HTML 502s, plain-text 429s, Cloudflare challenge pages) fall back to `res.statusText` and always surface as a typed `Context7Error`.diff --git a/.changeset/xdg-context7-dirs.md b/.changeset/xdg-context7-dirs.mddeleted file mode 100644index da9bf821..00000000--- a/.changeset/xdg-context7-dirs.md+++ /dev/null@@ -1,5 +0,0 @@-----"ctx7": patch------Store CLI files in XDG Base Directory locations instead of `~/.context7`. Credentials move to `$XDG_CONFIG_HOME/context7` (default `~/.config/context7`), updater state to `$XDG_STATE_HOME/context7` (default `~/.local/state/context7`), and `generate` previews to `$XDG_CACHE_HOME/context7` (default `~/.cache/context7`). Existing files in `~/.context7` are migrated automatically on first use; migration is best-effort and falls back to reading the legacy file if it cannot complete. The credentials file is always re-asserted to `0o600` after migration or write so it is never group/world-readable. Relative or empty `XDG_*` values are ignored per the spec.diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex f42b1154..d52d79e1 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,13 @@# Changelog+## 0.5.2++### Patch Changes++- cb6aee1: Bump runtime dependencies: `commander` 13 -> 15 and `ora` 9.0 -> 9.4.+- 428af3e: Recover Context7 library IDs that Git Bash mangles on Windows. Git Bash rewrites a leading-slash argument like `/facebook/react` into a Windows path under the Git install dir (`C:/Program Files/Git/facebook/react`), causing `ctx7 docs` to reject it as invalid; this mainly affected users running ctx7 through Claude Code. The CLI now detects and undoes the conversion before validation, accepts the `//owner/repo` escape, and points users at that workaround for install layouts it can't auto-detect.+- c03bc9c: Store CLI files in XDG Base Directory locations instead of `~/.context7`. Credentials move to `$XDG_CONFIG_HOME/context7` (default `~/.config/context7`), updater state to `$XDG_STATE_HOME/context7` (default `~/.local/state/context7`), and `generate` previews to `$XDG_CACHE_HOME/context7` (default `~/.cache/context7`). Existing files in `~/.context7` are migrated automatically on first use; migration is best-effort and falls back to reading the legacy file if it cannot complete. The credentials file is always re-asserted to `0o600` after migration or write so it is never group/world-readable. Relative or empty `XDG_*` values are ignored per the spec.+## 0.5.1### Patch Changesdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex f6ec76a2..5bcf4177 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "ctx7",- "version": "0.5.1",+ "version": "0.5.2","description": "Context7 CLI - Fetch documentation context and configure Context7","type": "module","bin": {diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.mdindex 80f0f91c..928e1314 100644--- a/packages/mcp/CHANGELOG.md+++ b/packages/mcp/CHANGELOG.md@@ -1,5 +1,21 @@# @upstash/context7-mcp+## 3.2.0++### Minor Changes++- c921c8b: Replace the in-result sign-in nudge with an MCP form elicitation. When the backend signals (via `X-Context7-Auth-Prompt: 1`) that an anonymous client has crossed the per-IP threshold, the MCP server now fires an `elicitation/create` request instead of appending instructions into the tool result.+ - Surfaces the `npx ctx7 setup --<client> --mcp[ --stdio] -y` command in a client-rendered dialog rather than as model-visible text. The previous text-injection approach was treated as untrusted instruction content by some agents; elicitations are delivered out-of-band to the user so they bypass that path entirely.+ - Gated on the client advertising the `elicitation` capability — clients without it see no nudge, which is a safe no-op.+ - Presents a two-option radio: "I'll run the command to sign in" or "Continue anonymously with smaller limits".+ - The server holds no suppression state: the backend emits the header at most once per MCP session, so the dialog is shown whenever the header is present. Frequency is owned entirely by the backend.+ - Fire-and-forget: the elicitation does not block or alter the surrounding tool response.++### Patch Changes++- cb6aee1: Bump runtime dependencies: `@modelcontextprotocol/sdk` 1.25 -> 1.29, `undici` 6 -> 7, and `zod` 4.3 -> 4.4.+- fcdc36e: Advertise empty `prompts` and `resources` capabilities with no-op `prompts/list`, `resources/list`, and `resources/templates/list` handlers. Some MCP clients (e.g. opencode) call these unconditionally and treat `-32601 Method not found` as a fatal connection error rather than honoring the negotiated capabilities, which previously prevented the server from loading.+## 3.1.0### Minor Changesdiff --git a/packages/mcp/package.json b/packages/mcp/package.jsonindex 66322574..db7e15f1 100644--- a/packages/mcp/package.json+++ b/packages/mcp/package.json@@ -1,6 +1,6 @@{"name": "@upstash/context7-mcp",- "version": "3.1.0",+ "version": "3.2.0","mcpName": "io.github.upstash/context7","description": "MCP server for Context7","scripts": {diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.mdindex 7a718eff..7e52b164 100644--- a/packages/sdk/CHANGELOG.md+++ b/packages/sdk/CHANGELOG.md@@ -1,5 +1,11 @@# @upstash/context7-sdk+## 0.3.1++### Patch Changes++- f327589: Avoid throwing a raw `SyntaxError` when the server returns a non-JSON error body. `HttpClient.request()` now wraps the error-path `res.json()` in a `.catch`, so non-JSON responses (HTML 502s, plain-text 429s, Cloudflare challenge pages) fall back to `res.statusText` and always surface as a typed `Context7Error`.+## 0.3.0### Minor Changesdiff --git a/packages/sdk/package.json b/packages/sdk/package.jsonindex 9dc38c65..d5703037 100644--- a/packages/sdk/package.json+++ b/packages/sdk/package.json@@ -1,6 +1,6 @@{"name": "@upstash/context7-sdk",- "version": "0.3.0",+ "version": "0.3.1","description": "JavaScript/TypeScript SDK for Context7","scripts": {"build": "tsup",diff --git a/packages/tools-ai-sdk/package.json b/packages/tools-ai-sdk/package.jsonindex 3984591a..9e716161 100644--- a/packages/tools-ai-sdk/package.json+++ b/packages/tools-ai-sdk/package.json@@ -29,7 +29,7 @@"clean": "rm -rf dist"},"peerDependencies": {- "@upstash/context7-sdk": ">=0.3.0",+ "@upstash/context7-sdk": ">=0.3.1","ai": ">=6.0.0","zod": ">=4.0.0"},