Releases: upstash/context7
ctx7@0.5.1
Patch Changes
- ea91d7d:
ctx7 loginnow always uses the device-code flow. The localhost-callback path is removed — every install (laptop, SSH, Codespace, Docker, CI) goes through the same boxed prompt and verification page. Drops the--deviceflag (it was the opt-in for what's now the default). Older CLI versions (≤ 0.5.0) continue to work against the unchanged auth endpoints, so pinned installs are unaffected.
ctx7@0.5.0
Minor Changes
-
5a180d5: Add OAuth 2.0 device authorization flow (RFC 8628) for
ctx7 loginandctx7 setup. Required for headless / remote hosts (SSH, Codespaces, Docker, CI) where the existing localhost-callback flow can't work — the browser was opening on the user's laptop while the callback listener ran on the remote host.The new flow prints a verification URL and short code, then polls a token endpoint. The user visits the URL on any device, signs in, and approves; the CLI receives the same
ctx7sk-…API key it would have gotten from the legacy flow. Device flow is selected automatically whenSSH_CONNECTIONis set or$DISPLAYis missing on Linux, and can be forced withctx7 login --device. Polling tolerates transient network errors and 5xx responses without ending the session.
ctx7@0.4.5
Patch Changes
- 2affada:
ctx7 setupnow properly supports--antigravity, installing skills to.agent/skills, aGEMINI.mdrule section (Antigravity reads Gemini-family config), and MCP config to Antigravity 2.0's documented global path~/.gemini/config/mcp_config.json(withhttpUrlfor HTTP, matching the Gemini convention). Antigravity has no documented project-level MCP file, sosetup --antigravity --project --mcpwrites to the global location. Also removes the--universalflag fromsetup, which was advertised but silently ignored — it never propagated through agent selection, so passing it (e.g.setup --cli --universal --project) caused setup to fall back to auto-detection and write to the wrong directory. - 268f52f:
ctx7 setup --api-key <KEY>(without--cli,--mcp, or-y) now prompts to choose between MCP server and CLI + Skills modes. Previously, passing--api-keyshort-circuited to MCP, locking users out of the CLI + Skills option even though that mode also accepts an API key. Explicit--mcp/--cli/--stdio/--oauth/-ystill skip the prompt as before. - 2e97dae: Add deprecation warning to skill commands
@upstash/context7-mcp@3.1.0
Minor Changes
- 1fb2d42: Add multi-tenant Microsoft Entra ID validation for MCP tokens. The server now detects inbound Entra v2 tokens by issuer pattern, fetches per-teamspace configuration (
tenantId,audience,requiredScope) from the Context7 app, and verifies the token against the matching tenant's JWKS, enforcing the required scope claim when configured. User resolution happens downstream in the Context7 app against a pre-provisioned user mapping table — the MCP server only validates. Per-tenant JWKS cache and a 5-minute in-memory config cache keyed by JWT audience reduce overhead under load.
@upstash/context7-pi@0.1.0
Minor Changes
- f91b40c: Initial release. Adds an official Context7 extension for the pi coding agent — registers
resolve-library-idandquery-docstools, ships thecontext7-docsskill, and exposes a/c7-docsslash command. Wire format, error messages, and tool descriptions are copied verbatim from@upstash/context7-mcpso pi and MCP clients give the LLM identical instructions and output. Self-contained — no Context7 runtime dependencies. Works out of the box at IP-based rate limits; setCONTEXT7_API_KEYfor the higher tier. Install withpi install npm:@upstash/context7-pi.
ctx7@0.4.4
Patch Changes
- 7cacc94: Add
--jsonflag toctx7 skills listfor machine-parseable output. Emits{ skills: [{ name, path, source }] }wherepathis absolute andsourceis the agent type (universal,claude,cursor,antigravity). Matches the existing--jsonpattern onctx7 libraryandctx7 docs.
@upstash/context7-mcp@3.0.0
ctx7@0.4.3
Patch Changes
- dea0e43: Declare
@inquirer/coreas a direct dependency of the CLI. It was previously imported inselectOrInput.tsbut only resolvable as a transitive of@inquirer/prompts, which causedctx7to fail at startup withERR_MODULE_NOT_FOUNDunder pnpm's isolated node linker. - 34fda7d: Add
--stdioflag toctx7 setupto configure Context7 as a local stdio MCP server. - 61de754: Harden skill name handling during
ctx7 skills installandctx7 skills remove. Skill names from remoteSKILL.mdfiles are now restricted to a safe character set, and the install sinks assert the target directory is a direct child of the skills root before writing.
@upstash/context7-mcp@2.3.0
Minor Changes
- 34fda7d: Prompt anonymous users to sign in. After the backend signals (via the
X-Context7-Auth-Prompt: 1response header on/v2/libs/searchor/v2/context) that an anonymous client has crossed the per-IP threshold, the MCP server appends a one-time sign-in invitation to the tool result.- Both stdio and HTTP transports surface the same nudge: a tool-result notice asking the assistant to run
npx ctx7 setup --<client> --mcp -y(with--stdioappended when the MCP server is running on stdio) after explicit user confirmation. The CLI handles OAuth and writes credentials into the MCP client's config; the user restarts their MCP server / editor to pick up the new credentials. - Detects the calling client from
X-Context7-Client-IDE/ User-Agent and selects the matching CLI flag (--cursor,--claude,--codex,--opencode,--gemini); falls back to interactive setup when unknown. - HTTP transport remains stateless — the threshold is tracked by the backend (per-IP, 24h TTL), the MCP server only reacts to the signal.
- Both stdio and HTTP transports surface the same nudge: a tool-result notice asking the assistant to run
ctx7@0.4.2
Patch Changes
- 6c71e4d: Handle malformed MCP config files gracefully during
ctx7 removeagent 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 unhandledSyntaxErrorbefore 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_DIRenv var when resolving Claude Code's global config, rules, skills, and detection paths