Commit Graph

740 Commits

Author SHA1 Message Date
github-actions[bot] 1dfb931d0e chore(release): version packages (#2217)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.6
2026-03-16 13:25:53 +03:00
Fahreddin Özcan 4b63117e5f fix(cli): reorder setup mode choices to show MCP server first (#2243)
* fix(cli): reorder setup mode choices to show MCP server first

* chore: add changeset for setup mode reorder
2026-03-16 13:18:11 +03:00
Fahreddin Özcan f7a79a9489 feat(docs): split deployment into dedicated Docker and Kubernetes guides (#2222)
The single deployment.mdx page implied Kubernetes-only deployment. Split it into
a deployment/ folder with separate Docker and Kubernetes guides, and simplify the
on-premise getting started page to link to them via Mintlify cards.
2026-03-16 13:05:42 +03:00
Fahreddin Özcan 18b3292d01 fix(cli): add token refresh and centralize auth constants (#2210)
* fix(cli): add token refresh support and centralize auth constants

Expired OAuth tokens are now automatically refreshed via getValidAccessToken()
instead of silently failing. CLI_CLIENT_ID moved to constants.ts to avoid
duplication across auth.ts and setup.ts.

* refactor(cli): internalize baseUrl and clientId in refreshAccessToken

Make refreshAccessToken a private function that resolves getBaseUrl()
and CLI_CLIENT_ID internally instead of requiring them as parameters.

* test(cli): add unit tests for auth utilities and commands

Add comprehensive vitest test suite covering OAuth PKCE flow, token
persistence, token refresh, and CLI auth commands (login/logout/whoami).

* chore: add changeset for CLI auth improvements

* refactor: move CLI auth tests to src/__tests__/

Move auth test files from colocated __tests__ directories to a
centralized src/__tests__/ directory, adjusting mock import paths
accordingly.
2026-03-16 13:03:33 +03:00
enesakar 800afc31fc fix images 2026-03-14 18:44:43 -07:00
Enes Akar d806b9fb5d chore: broaden find-docs skill description to cover all developer technologies (#2224)
The previous description was scoped to "programming library or framework",
causing the skill to be skipped for CLI tools, cloud services, APIs, platforms,
and general technical questions. The new description covers any developer
technology and includes common trigger scenarios to improve auto-invocation.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:32:13 -07:00
Fahreddin Özcan 099715b657 Add Kubernetes deployment guide for on-premise (#2219)
New deployment.mdx page under the On-Premise section covering
StatefulSet, Service, Ingress manifests, registry auth, networking
requirements, operations, and troubleshooting for K8s deployments.
2026-03-13 16:46:16 +03:00
Fahreddin Özcan fae61278d2 feat(cli): add teamspace name to whoami command (#2209)
* feat(cli): add teamspace name to whoami command

Replace direct Clerk userinfo call with new /api/dashboard/whoami
endpoint that returns name, email, and active teamspace in one request.

* chore: add changeset for whoami teamspace feature
2026-03-13 12:21:48 +03:00
enesakar e4be37a880 readme update 2026-03-11 22:47:45 -07:00
enesakar ce63d4b00c cli updates 2026-03-11 22:45:51 -07:00
Elif Nur Deniz 22babf2e44 chore: update library verification docs (#2199) 2026-03-12 00:40:44 +01:00
github-actions[bot] c3728bbd01 chore(release): version packages (#2198)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.5
2026-03-12 01:02:02 +03:00
Fahreddin Özcan 7e60d05551 feat(cli): track install count events on setup command (#2197) 2026-03-11 15:00:45 -07:00
github-actions[bot] 87892eda99 chore(release): version packages (#2190)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ctx7@0.3.4
2026-03-11 17:14:59 +03:00
Fahreddin Özcan 62dc278b76 feat(cli): enumerate popularity and trust in skill search results (#2192)
* feat(cli): enumerate popularity and trust in skill search results

Replace raw install counts with star-based popularity rating (★☆☆/★★☆/★★★)
and numeric trust scores with High/Medium/Low labels in skill search,
install, and suggest commands. Show install range and raw trust score
in the hover description. Also reorder setup command to show CLI before MCP.

* feat(cli): use 4-star popularity scale matching install count ranges

* fix(cli): replace hardcoded "docs" with "find-docs" in setup output

* chore: add changeset for skill search enumeration and find-docs rename
2026-03-11 17:05:58 +03:00
Fahreddin Özcan 04130b5596 refactor(skills): consolidate skills under /skills with canonical sources (#2191)
* refactor(skills): consolidate skills under /skills with canonical sources

- Rename skills/docs → skills/find-docs (name: find-docs)
- Rename skills/ctx7-cli → skills/context7-cli (name: context7-cli)
- Add skills/context7-mcp as canonical MCP skill source
- Rename plugin skill folders to context7-mcp and unify name to context7-mcp
- MCP setup now downloads context7-mcp skill from GitHub instead of using hardcoded SKILL_CONTENT
- Remove SKILL_CONTENT from templates.ts — skills/context7-mcp/SKILL.md is the single source of truth
- Add Error Handling section to find-docs skill for quota errors
- Update agents.ts skill name: documentation-lookup → context7-mcp
- Update docs/clients/cli.mdx and setup references accordingly

* chore: add changeset for skills consolidation

* fix(skills): update plugin skill frontmatter name and setup docs to context7-mcp
2026-03-11 16:17:10 +03:00
Fahreddin Özcan d418405f85 feat(cli): add CLI + Skills mode to ctx7 setup (#2187)
* feat(cli): add CLI mode to ctx7 setup with docs skill installation

- Add MCP vs CLI mode selection prompt at the start of setup
- CLI mode authenticates user and installs docs skill via promptForInstallTargets
- Add --cli, --universal, --antigravity flags to setup command
- --yes skips the detected-locations confirmation prompt
- Default CLI install scope to global (override with --project)
- Fix checkbox selected choices to render in green (consistent with select prompt)
- Move Claude Code above Universal in IDE selection order
- Add forceUniversal=false option to promptForInstallTargets for setup flow
- Add yes? to AddOptions to support auto-confirm in promptForInstallTargets

* chore: add changeset for ctx7 setup CLI mode

* feat(cli): rename CLI mode to CLI + Skills, add --mcp flag, remove recommended label

* feat(cli): add --api-key support to CLI mode and update docs

- Pass apiKey through to resolveCliAuth in CLI mode setup
- Store provided API key as bearer token for subsequent API calls
- Update cli.mdx and setup.md to reflect both MCP and CLI + Skills modes

* docs: update setup docs to reflect --api-key for both modes and --cursor for CLI

- --api-key works in both MCP and CLI + Skills mode (not MCP-only)
- --oauth clarified as MCP-only
- Added --cursor to CLI + Skills mode examples (Cursor has a skills directory)
- Updated auth table row for ctx7 setup

* fix(cli): improve library ID validation and add telemetry headers

- Validate /owner/repo format locally before spinner starts, showing
  consistent error + hint for both "react" and "/react" inputs
- Send X-Context7-Source, X-Context7-Client-IDE, X-Context7-Client-Version,
  and X-Context7-Transport headers on library/docs requests so CLI
  appears in the admin telemetry dashboard
2026-03-11 14:05:15 +03:00
pablo 4f3363b228 fix: update broken links in i18n READMEs (#2175)
Co-authored-by: Maeve <maeve@wrkr.sh>
2026-03-11 04:41:36 +03:00
github-actions[bot] 945f9aec8b chore(release): version packages (#2183)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@upstash/context7-mcp@2.1.4 ctx7@0.3.3
2026-03-10 17:20:02 +03:00
Fahreddin Özcan 9aae852681 feat(cli): show source repo in skill search results (#2185)
* feat(cli): show source repo next to skill name in search and suggest results

Adds the project repo in parentheses after each skill name to help
disambiguate skills with identical names from different repositories.

* chore: add changeset for repo display in skill search

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:19:12 +03:00
Enes Gules 9de3f0627c feat: add searchFilterApplied field to LibrarySearchResponse and SearchResponse interfaces; add warnings to cli and mcp (#2160) 2026-03-10 17:15:55 +03:00
Fahreddin Özcan 05a440600a fix(cli): remove default universal selection on skills install prompt (#2184) 2026-03-10 16:17:13 +03:00
Fahreddin Özcan 31b4fb8435 feat(cli): add docs skill and align CLI output with MCP format (#2176)
* feat(docs): add dedicated docs skill and restructure CLI documentation

- Add new `docs` skill as a single-file skill for documentation retrieval
- Align skill prompts with MCP tool descriptions (selection process, query guidance, 3-call limit)
- Enrich CLI docs page with result fields, query tips, and version-specific IDs
- Move CLI page to Overview section in docs nav
- Make `query` required for `ctx7 library` across all skills and docs
- Update trust score display label in skills.mdx

* feat(cli): align library output format with MCP labels

Use labeled fields and categorical Source Reputation labels
(High/Medium/Low/Unknown) instead of numeric trust scores to match
the MCP transport format.

* refactor: move skills from .agents/skills to skills/ at repo root

Source-control location for skills — users install them into
.agents/, .claude/, etc. via the CLI. Also updates install
instructions to use `npm install -g ctx7@latest` or `npx ctx7@latest`.

* docs: use natural-language query examples across skills and CLI docs

Replace keyword-style queries ("useEffect cleanup") with full
question-style queries ("How to clean up useEffect with async
operations") to better demonstrate how the query parameter works.

* docs: fix trust score description to show numeric range
2026-03-10 16:04:05 +03:00
enesakar 4ac6e3e549 fix docs 2026-03-09 14:13:21 -07:00
enesakar 27ccb7efba ee folder 2026-03-09 14:04:59 -07:00
Enes Akar 96bee80768 Update project name in README 2026-03-09 12:50:23 -07:00
Fahreddin Özcan 9bb8321f41 feat(docs): add dedicated CLI reference page and restructure skills docs (#2159)
Replaces the cli.mdx redirect stub with a full CLI reference covering library
documentation, setup, authentication, and all skills commands. Trims skills.mdx
to conceptual content only with a reference back to the CLI page. Updates the
ctx7-cli skill's docs reference with selection algorithm and query quality
guidance from the MCP tool prompts.
2026-03-09 16:25:18 +03:00
Fahreddin Özcan 14f7655f9f feat(skills): expand ctx7-cli skill into folder structure with full CLI coverage (#2157)
Restructures the ctx7-cli skill from a single flat file into a folder with
reference files, and adds coverage for the skills management commands, setup,
and authentication that were previously undocumented.
2026-03-09 14:37:29 +03:00
Enes Gules 37e49f9467 feat(docs): add gitToken field to API specification for private repository access (#2138) 2026-03-09 13:44:57 +03:00
Fahreddin Özcan c796a74ee4 chore: add ctx7-cli skill and unignore .agents/skills (#2129) 2026-03-06 06:58:18 -08:00
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