Commit Graph

172 Commits

Author SHA1 Message Date
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
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
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
Enes Gules 37e49f9467 feat(docs): add gitToken field to API specification for private repository access (#2138) 2026-03-09 13:44:57 +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
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
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
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
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
Enes Gules 62d6bd66e1 add chat-widget how-to documentation entry (#1813) 2026-02-13 18:03:03 +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
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
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
mamaruo 7d7e042795 docs: updated the Chinese README and Qwen Code installation guide (#1553)
Co-authored-by: mamaruo <37480168+mamaruo@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-01-28 14:33:37 +03:00
Fahreddin Özcan 88242f5b47 docs: library verification docs with imgs (#1548) 2026-01-26 09:27:44 -08:00
enesakar 33bfbcdb9b cli and skills docs 2026-01-22 09:56:09 -08:00
enesakar 27a3338587 update docs 2026-01-17 12:17:31 -08:00
Fahreddin Özcan e3146aa3e5 docs(CTX7-1058): improve oauth docs steps (#1448) 2026-01-15 16:48:01 +03:00
enesakar 3299ad311a docs menu update 2026-01-12 14:45:23 -08:00
Fahreddin Özcan b5942ddade docs: fix claude installation guides with correct args location (#1438) 2026-01-13 01:01:05 +03:00
Fahreddin Özcan 51996f2489 docs(CTX7-1040): add OpenCode to clients list (#1432)
* docs(CTX7-1040): add OpenCode to clients list

* remove api key warnign
2026-01-12 18:12:19 +03:00
Fahreddin Özcan 35611d5075 docs(CTX7-1039): fix broken links (#1423) 2026-01-11 23:22:51 +03:00
Fahreddin Özcan 3553cb2023 fix: claude code plugin name and details image (#1417)
* fix: claude code plugin name and details image

* fix: claude code plugin name and details image

* update skill prompt

* fix: update plugin.json name and improve agent/skill instructions

* fix: update plugin README with correct install commands

* fix: remove max 3 calls warning
2026-01-10 22:24:20 +03:00
Fahreddin Özcan b41e7c8482 docs: add dedicated Cursor and Claude Code client guides with plugin marketplace (#1385)
* feat(plugins): add Context7 plugin for Claude Code

Add the context7 plugin with:
- MCP server configuration (.mcp.json)
- Plugin metadata (.claude-plugin/plugin.json)
- docs-researcher agent for focused documentation lookups
- /context7:docs command for manual queries
- documentation-lookup skill for auto-triggering

* docs(clients): add dedicated Cursor and Claude Code guides

Add comprehensive client-specific documentation:

Cursor:
- One-click and manual installation (remote/local)
- Rules setup via settings and .cursorrules
- Library IDs, version pinning, example prompts
- Tips for Composer integration

Claude Code:
- CLI installation commands
- Plugin installation (skills, agents, commands)
- docs-researcher agent usage
- /context7:docs command reference
- CLAUDE.md rules setup

Uses Mintlify components: Tabs, Steps, Cards, Accordions

* docs: add Clients navigation and cross-references

- Add "Clients" group to docs.json navigation
- Add note in all-clients.mdx linking to dedicated guides

* update warnings

* docs: redesign claude client docs

* docs: update cursor docs with images

* docs: update cursor installation ui

* feat: add claude marketplace docs

* update marketplace

* update mp-plugin name

* finalize cc plugin installation

* update using context7 section

* feat: make claude code oauth default
2026-01-10 10:47:09 -08:00
Enes Gules 84c546208c Reorder clients list (#1411) 2026-01-10 20:13:41 +03:00
Fahreddin Özcan 8edda6b070 docs: remove invalid oauth warning (#1407) 2026-01-09 12:23:03 -08:00
Fahreddin Özcan f0e42a9099 fix(docs): reoder claude installation guide (#1405)
* fix(docs): reoder claude installation guide

* fix(docs): reoder claude installation guide
2026-01-09 09:54:50 -08:00
Fahreddin Özcan f0ee85d0c7 CTX7-879: Context7 Vercel AI SDK Docs (#1155)
* feat: context7 vercel ai sdk tools package

* ci: remove master target condition on test action

* ci: manual actions trigger for test

* ci: always run all tests

* update tests and imports

* ci: typecheck command

* fix: tests

* docs: add readme

* update folder structure and tool descriptions

* docs: context7-ai-sdk

* tests: fix test env vars

* ci: bump pnpm version

* update ai sdk step count api

* Add stopWhen to docstring examples

* update tests

* update prompt name

* update context7 agent name

* update tool description var to description

* make context7agent config optional

* ci: add changeset

* make context7-sdk peer deps

* update pnpm-lock.yaml

* update package name to @upstash/context7-tools-ai-sdk

* remove check workflow

* update pnpm lock

* make the agent a class instead of function

* replace all name instances

* add agent generate test

* update docs with latest changes and updated veai sdk examples

* finalize docs

* docs: remove duplicate H1 headers from AI SDK documentation pages

* simplify agent config

* fix refs

* remove changeset

* feat: update diagram with query param

* fix: address reviews

---------

Co-authored-by: enesgules <abdullah.enes.gules@gmail.com>
2026-01-08 21:15:35 +03:00
Fahreddin Özcan ef82f3057c CTX7-884: OAuth Support for MCP (#1176)
Co-authored-by: enesgules <abdullah.enes.gules@gmail.com>
2026-01-08 20:17:19 +03:00
Fahreddin Özcan 9412e62487 feat(sdk): update default format (#1377)
* feat(sdk): update default format

* chore: add changeset

* chore(release): revert version
2026-01-07 13:37:31 +03:00
Fahreddin Özcan b3cd38a32c CTX7-982: Update Context7 SDK with API v3 (#1335)
* feat: update sdk with API v3

* feat: simplify sdk types

* feat: simplify return types and fields

* fmt

* chore: seperate type and utils locations

* chore: update sdk readme

* docs: update sdk docs with new updates

* fix: update vitest config

* chores

* update tools-ai-sdk package

* update tests with proper types

* feat: update tools-ai-sdk package tools

* chore: update tools-ai-sdk changeset

* update changesets
2026-01-05 17:34:51 +03:00
Enes Akar 101caf0e91 Update installation URL in documentation 2025-12-31 17:57:08 -08:00
Fahreddin Özcan eeddc37b27 CTX7-989: Update API Docs with v2 (#1333)
Co-authored-by: enesgules <abdullah.enes.gules@gmail.com>
2025-12-31 12:37:43 +03:00
enesakar 912b16fe5e update docs and readme 2025-12-30 14:23:45 -08:00
enesakar f13e3a1bec docs fixes 2025-12-29 21:51:20 -08:00
enesakar 853003de24 docs updates 2025-12-29 21:39:14 -08:00
Enes Gules e859a6b990 feat: add contextual options for copy, view, ChatGPT, and Claude to docs config (#1272) 2025-12-19 11:36:26 +03:00