Commit Graph

710 Commits

Author SHA1 Message Date
github-actions[bot] ffb14fd426 chore(release): version packages (#2128)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.2
2026-03-06 16:21:30 +03:00
Fahreddin Özcan df60e3e20e feat(cli): add resolve and query commands for library documentation (#2119)
* feat(cli): add resolve and query commands for library documentation

Expose Context7's resolve-library and query-docs API as CLI commands,
enabling agents and developers to fetch documentation directly from
the terminal without MCP setup.

- `ctx7 resolve <library> [query]` - resolve library name to Context7 ID
- `ctx7 query <libraryId> <query>` - fetch documentation for a library
- Both support --json for structured output
- TTY-aware: spinners and colors in terminal, clean output when piped
- Auth: CONTEXT7_API_KEY env var > OAuth token > unauthenticated

* refactor(cli): rename resolve/query to library/docs commands

Rename commands for a more natural CLI interface:
- `ctx7 library <name> [query]` instead of `ctx7 resolve`
- `ctx7 docs <libraryId> <query>` instead of `ctx7 query`

* fix(cli): show benchmark score and all versions in library results

* chore: add changeset for library and docs commands

* style(cli): fix lint formatting in api.ts

* refactor(cli): remove redundant spinner success messages

The output itself is self-evident, no need for "Found 5 libraries"
or "Documentation retrieved" messages.
2026-03-06 16:18:16 +03:00
Bryan Thompson ceac1a5356 fix(mcpb): Update manifest to v0.3 spec and switch to npx-based bundle (#1488)
Co-authored-by: triepod-ai <199543909+triepod-ai@users.noreply.github.com>
Co-authored-by: enesgules <abdullah.enes.gules@gmail.com>
2026-03-06 04:03:48 +03:00
Enes Gules 84e6ef0651 docs: update token pricing in usage documentation to reflect new cost structure (#2114) 2026-03-05 07:54:23 -08:00
Enes Gules ba40f71991 docs: enhance teamspace creation note to clarify subscription requirements for invited members (#2108) 2026-03-05 12:28:01 +03:00
enesakar a3c3bb44c6 updating docs 2026-03-04 11:24:00 -08:00
github-actions[bot] 7e0309b718 chore(release): version packages (#2100)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@upstash/context7-mcp@2.1.3
2026-03-04 15:51:01 +03:00
Fahreddin Özcan 59d0327b07 feat(mcp): include source field in search result response (#2031)
* feat(mcp): include source field in search result response

* chore: add changeset
2026-03-04 15:49:25 +03:00
Fahreddin Özcan 9523522d33 fix: reject GET requests on MCP endpoints to eliminate idle SSE timeouts (#2099)
* fix: reject GET requests on MCP endpoints to eliminate idle SSE timeouts

Stateless MCP server does not send server-initiated notifications, so
GET SSE streams sit idle until NGINX proxy_read_timeout (3600s) kills them.
Humio data shows ~4M GET timeouts vs 69 actual POST tool calls over 2 days,
accounting for 99.997% of all 5XX errors.

Returning 405 is spec-compliant per MCP StreamableHTTP (2025-03-26).

* chore: add changeset for MCP GET rejection fix

* refactor: move GET rejection into handleMcpRequest and fix error code

- Consolidate GET check into handleMcpRequest to avoid duplication
- Fix JSON-RPC error code from -32601 (method not found) to -32000 (server error)
2026-03-04 15:45:08 +03:00
Fahreddin Özcan 3d2372d479 fix: correct ping endpoint URL in troubleshooting docs (#2096) 2026-03-04 14:32:35 +03:00
Enes Gules 5394a516de update openapi (#2091) 2026-03-04 14:19:54 +03:00
Fahreddin Özcan c0d1c9e07f Add enterprise deployment docs (#2033)
* Add on-premise deployment docs

Hidden page covering what's included, setup steps, configuration
reference, MCP client connection, and architecture diagram.

* Update on-premise docs: switch from tar.gz to GHCR registry pull

Replace curl+docker load approach with standard docker login + docker pull
using a license-gated registry token from context7.com.

* Fix on-premise docs: separate auth step, clarify docker compose pull

- Split into distinct "Authenticate" and "Configure and start" steps
- Remove redundant docker pull (docker compose up -d handles it)
- Add driver: local to volumes declaration
- Clarify that docker login credentials persist for docker compose

* docs: mention docker pull as alternative to docker compose pull

* docs: use -p flag instead of --password-stdin for docker login

* Move on-premise docs to enterprise/, add configuration details

- Move on-premise.mdx from docs root to docs/enterprise/
- Add setup wizard documentation
- Add AI provider settings with OpenRouter and local model examples
- Add embedding settings with incompatibility warning
- Add access control section with permission toggles
- Add volume persistence warning
- Remove env vars for AI/git config (now UI-configured)

* Docs: clarify git tokens, add health check example, group operations

* Docs: extract LICENSE_KEY variable for easier configuration
2026-03-03 06:21:29 -08:00
Enes Gules dfe9863f30 refactor: update terminology from "team" to "teamspace" across documentation (#2012) 2026-02-26 01:01:42 +03:00
github-actions[bot] 76d70a1223 chore(release): version packages (#1956)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@upstash/context7-mcp@2.1.2
2026-02-23 13:06:21 +03:00
enesgules e81f7e3c8c fix: formatting 2026-02-23 13:04:15 +03:00
enesgules 617d8edb87 Remove unnecessary warning from encryption key validation and update tool descriptions for clarity. 2026-02-23 13:01:03 +03:00
enesakar e866047baa enterprise page for docs 2026-02-20 08:33:06 -08:00
enesgules d2c34b04c3 Update installation commands across multiple languages to include the --scope user flag for Context7 in Claude Code. 2026-02-20 16:41:09 +03:00
Enes Gules e3416985e8 Move explanation in tool responses into the description (#1892)
* Update tool descriptions in index.ts for clarity on library ID resolution process

* Move explanation in tool responses into the description
2026-02-19 06:01:25 -08:00
Enes Gules 1a52cb918e Update tool descriptions in index.ts for clarity on library ID resolution process (#1890) 2026-02-18 14:35:45 -08:00
enesgules 98e4209203 Update README and all-clients documentation to include detailed installation instructions for Context7 in ChatGPT (Web and Desktop) via Developer Mode. 2026-02-18 17:53:56 +03:00
Enes Gules 2427fb2710 Update OpenAPI documentation (#1862)
Remove unused `vip` field from LibrarySearchResult interface.
2026-02-18 17:49:05 +03:00
Enes Gules 3a051f382f Add ChatGPT web and desktop app MCP client examples (#1876)
* Add ChatGPT web and desktop app MCP client examples

Add installation instructions for connecting Context7 as an MCP
connector in ChatGPT (Web) and ChatGPT (Desktop) via Developer Mode.

https://claude.ai/code/session_01GRs4CVcBFNZt1otbGqZKH3

* Add ChatGPT web and desktop app MCP client examples

Add installation instructions for connecting Context7 as an MCP
connector in ChatGPT (Web) and ChatGPT (Desktop) via Developer Mode.
Uses the /mcp/oauth endpoint for seamless OAuth authorization since
ChatGPT connectors natively support OAuth and don't allow custom headers.

https://claude.ai/code/session_01GRs4CVcBFNZt1otbGqZKH3

* Update README.md to reflect changes in Developer Mode and app terminology

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-18 17:45:52 +03:00
github-actions[bot] 87109e5e78 chore(release): version packages (#1884)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.1
2026-02-18 16:34:10 +03:00
Fahreddin Özcan c66950a582 feat(cli): install documentation-lookup skill during ctx7 setup (#1882)
* feat(cli): install documentation-lookup skill during ctx7 setup

The setup command now installs the Context7 documentation-lookup skill
alongside the MCP server and rule for each agent.

Skill paths per agent:
- Claude: .claude/skills/documentation-lookup/SKILL.md
- Cursor: .cursor/skills/documentation-lookup/SKILL.md
- OpenCode: .agents/skills/documentation-lookup/SKILL.md (universal)

* chore: add changeset for skill install in setup
2026-02-18 16:31:28 +03:00
Muhammet Şen a39ee2cc9d fix: update ecr-deploy workflow to support multi-platform builds (#1863) 2026-02-17 13:38:38 +03:00
github-actions[bot] 9422500301 chore(release): version packages (#1858)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.0
2026-02-16 17:18:36 +03:00
Fahreddin Özcan 3d6619128c add ctx7 setup command (#1851)
* add `ctx7 setup` command for configuring MCP and rules

Adds an interactive setup command that configures the Context7 MCP server
and agent rules for Claude Code, Cursor, and OpenCode. Authenticates via
OAuth, generates an API key, and writes per-agent config files.<noreply@anthropic.com>

* revert auth.ts client ID change

* add changeset for setup command

* fix lint: format import line
2026-02-16 17:17:33 +03:00
J. Courtland Colburn 34704b6c1b Add API key settings to gemini-extension.json (#1814)
Added settings for API key configuration.
2026-02-16 14:06:43 +03:00
HeroCC cce0fb889a Fix typo in API Key section (#1845) 2026-02-16 13:52:45 +03:00
enesgules db3e75ba22 fix: docs links 2026-02-13 18:15:45 +03:00
milosz-l 22057ba0f0 docs: add --scope user to Claude Code install commands (#1812) 2026-02-13 18:08:59 +03:00
Enes Gules 62d6bd66e1 add chat-widget how-to documentation entry (#1813) 2026-02-13 18:03:03 +03:00
Ryan Cavanaugh cafa4f3d4d Remove deprecated downlevelIteration option (#1684) 2026-02-13 18:02:52 +03:00
buggyhunter 67bb40b910 improve docs (#1779) 2026-02-11 09:44:59 +03:00
enesakar f80ce131d6 clarify query privacy 2026-02-11 07:35:43 +03:00
enesakar de4ae29933 update prompt for better privacy 2026-02-11 06:36:47 +03:00
enesakar b3c7192173 update prompt for better privacy 2026-02-11 06:36:22 +03:00
github-actions[bot] 2be9193ed4 chore(release): version packages (#1774)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.2.4
2026-02-10 13:13:40 +03:00
Fahreddin Özcan 4663c15552 feat(cli): adopt .agents/skills as universal install target (#1730)
* feat(cli): adopt .agents/skills as universal install target

Install to .agents/skills/ by default as the shared standard directory.
Universal agents (Amp, Codex, OpenCode, Gemini CLI, GitHub Copilot) all
read from this path natively. Vendor-specific agents (Claude Code, Cursor,
Antigravity) get symlinks pointing back to .agents/skills/.

- Add "universal" as a first-class IDE type across all path maps
- Auto-detect .agents/ and vendor dirs: detected → confirm, nothing
  detected → checkbox picker with Universal pre-checked
- Update list/remove commands to check universal + vendor-specific dirs
- Update DEFAULT_CONFIG.defaultIde from "claude" to "universal"
- Show labeled install summary (Universal, Claude Code, etc.) with paths

* feat(cli): consolidate agent flags into single --universal option

Replace --codex, --opencode, and --amp flags with a single --universal flag that points to .agents/skills/. This simplifies the CLI interface since these agents all share the same installation path.

* refactor(cli): simplify IDE types and remove UNIVERSAL_AGENTS Set

- Simplify IDE type from 7 types to 4 (remove codex, opencode, amp)
- Remove UNIVERSAL_AGENTS Set and replace with direct equality checks
- Update documentation to add --universal flag examples throughout
- Consolidate Supported Clients table to show single Universal row

All universal agents (Amp, Codex, Gemini CLI, GitHub Copilot, OpenCode, etc.)
are now represented by the single "universal" type since they're functionally
identical and use the same .agents/skills/ directory.

* docs(skills): update CLI flags to use --universal

- Replace --codex, --opencode, --amp flags with single --universal flag
- Update all command examples (install, list, remove, suggest, generate)
- Consolidate Supported Clients table with Universal at top
- Reorder tables to prioritize Universal agents
2026-02-10 13:12:40 +03:00
enesgules 83c91b6885 docs: reorder add-mcp installation instructions in README 2026-02-10 09:26:56 +03:00
Andre Landgraf 1aa29f7bc5 docs: add add-mcp install snippet (#1707) 2026-02-09 15:09:27 +03:00
Fahreddin Özcan 6a35275309 fix(cursor-plugin): update logo to green icon SVG (#1744) 2026-02-07 23:06:12 +03:00
Fahreddin Özcan e49e41819f docs: add telemetry opt-out documentation (#1705)
Document how to disable CLI telemetry using the CTX7_TELEMETRY_DISABLED
environment variable in both the CLI README and skills documentation.
2026-02-05 22:50:40 +03:00
Fahreddin Özcan 56c3b94eda docs: expand skills documentation with CLI commands and features (#1670)
* docs: expand skills documentation with CLI commands and features

Add comprehensive documentation for the Context7 skills feature including:
- What skills are and why to use them
- Trust score system explanation (0-10 scale)
- Security features (prompt injection detection)
- Complete CLI command reference (install, search, list, info, remove)
- Skill generation workflow and authentication
- Supported clients table with directories
- SKILL.md file format specification
- Command shortcuts reference
- Troubleshooting section

* docs: add skills suggest command documentation

Document the new `ctx7 skills suggest` command that automatically
discovers relevant skills based on project dependencies (package.json,
requirements.txt, pyproject.toml). Also adds `ssg` shortcut alias.

* docs: improve skills examples and add npx prefix to commands

- Update popular skills table with better descriptions of what each skill does
- Add quick start commands after registry section
- Add npx prefix to all CLI examples for easier copy-paste
- Remove generation limits section

* fix: remove incorrect content
2026-02-04 11:17:29 +03:00
github-actions[bot] 61e7fcdc76 chore(release): version packages (#1671)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.2.3
2026-02-03 17:36:58 +03:00
Fahreddin Özcan 098165649f feat(cli): use backend suggest endpoint (#1667)
* discover

* feat(cli): use backend suggest endpoint for skill suggestions

Replace client-side NOTABLE_SET filtering with a single POST request to
/api/v2/skills/suggest. The backend now handles SKIP_SET filtering,
vector search, install count enrichment, and ranking.

- Remove NOTABLE_SET/SKIP_SET from deps.ts
- Add suggestSkills API function
- Add SuggestGroup and SuggestResponse types
- Simplify suggestCommand to use backend response

* feat(cli): send auth token with suggest request

Pass the user's OAuth token (if logged in) when calling the suggest
endpoint so the request counts against their quota.

* chore: add changeset

* refactor: simplify suggest API usage

- Remove ecosystem field from deps detection
- Use flat skills array from backend instead of groups
- Simplify display logic

* fix: use white color for Relevant value in metadata panel

* refactor: rename DiscoverOptions to SuggestOptions
2026-02-03 17:28:29 +03:00
Fahreddin Özcan ee5b457de0 feat: add Context7 plugin for Cursor marketplace (#1659)
* feat: add Context7 plugin for Cursor marketplace

Adds a Cursor plugin with MCP server (OAuth), rules, skills, and agent
for up-to-date library documentation lookup via Context7.

* chore: update Cursor plugin author to Context7
2026-02-02 05:52:43 -08:00
github-actions[bot] d27c85982b chore(release): version packages (#1657)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.2.2
2026-02-02 15:49:48 +03:00
Fahreddin Özcan 6328ed154e feat(cli): improve skill search display and revamp generate UX (#1618)
* feat(cli): add trust score column and improve skill search display

Add trust score and installs columns with aligned headers to skill search results.
Trust scores use yellow/red color coding (0-10 scale).

* chore: add changeset for trust score column

* feat(cli): auto-login when generate requires authentication

Extract login flow into reusable `performLogin()` function.
Generate command now triggers OAuth login automatically instead of
showing an error asking the user to run 'ctx7 login' manually.

* feat(cli): show recommended option first in generate questions

Reorder options so the recommended answer is always displayed at
position 1 with cursor starting on it, regardless of original index.

* feat(cli): open generated skill in default editor instead of inline view

Replace inline terminal "View full skill" with "View skill" that opens
the content in the system default editor ($EDITOR or 'open' fallback)
via a temp file.

* feat(cli): revamp generate UX with improved copy and examples

Update skill generation flow:
- Show do/don't examples (✕/✓) for skill descriptions
- Rename "libraries" to "sources" in user-facing text
- Add explanation of what sources are used for
- Update spinner text for questions and generation steps
- Remove unused libraryNames variable

* chore: update changeset to include generate UX changes

* fix(cli): show dash placeholder for missing installs and trust scores

* feat(cli): add external link icon to terminal hyperlinks and show dash for empty fields

* feat(cli): improve view/edit skill with persistent edits and preview cleanup

Save preview files to ~/.context7/previews/ instead of OS temp dir, read
edits back before install, and clean up preview files on exit.

* feat(cli): improve generate UX copy and flow polish

Update skill generation flow with clearer descriptions, better spinner
messages, and improved finalize menu options.

* fix(cli): fix stale editor preview, install count side effect, and editor spawn

- Reset previewFileWritten between regeneration cycles so editor shows fresh content
- Add placeholder param to formatInstallCount to avoid showing "-" in list command
- Replace execFile with spawn for proper $EDITOR support (terminal editors, args)
- Move trustScore to Skill base type and remove redundant installCount from SkillSearchResult
2026-02-02 15:46:34 +03:00