Skip to content

Context7 Platform -- Up-to-date docs for AI agents

docs: update get-library-docs parameter from tokens to page

enesgulesdea13d122be8
diff --git a/README.md b/README.md
index ea91a9e0..144f66e0 100644
--- a/README.md
+++ b/README.md
@@ -1263,7 +1263,7 @@ Context7 MCP provides the following tools that LLMs can use:
- `get-library-docs`: Fetches documentation for a library using a Context7-compatible library ID.
- `context7CompatibleLibraryID` (required): Exact Context7-compatible library ID (e.g., `/mongodb/docs`, `/vercel/next.js`)
- `topic` (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
- - `tokens` (optional, default 5000): Max number of tokens to return. Values less than 1000 are automatically increased to 1000.
+ - `page` (optional, default 1): Page number for pagination (1-10). If the context is not sufficient, try page=2, page=3, etc. with the same topic.
## 🛟 Tips
diff --git a/i18n/README.ar.md b/i18n/README.ar.md
index 68b2d859..367bce7f 100644
--- a/i18n/README.ar.md
+++ b/i18n/README.ar.md
@@ -227,29 +227,13 @@ docker build -t context7-mcp .
}
```
-### المتغيرات البيئية
-
-```json
-{
- "mcpServers": {
- "context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp@latest"],
- "env": {
- "DEFAULT_MINIMUM_TOKENS": "10000"
- }
- }
- }
-}
-```
-
### الأدوات المتوفرة
- `resolve-library-id`: يحول اسم مكتبة عام إلى معرف متوافق مع Context7.
- `get-library-docs`: يستخرج التوثيق حسب المعرف.
- `context7CompatibleLibraryID`: مطلوب
- `topic`: موضوع معين مثل "routing"
- - `tokens`: الحد الأعلى لعدد الرموز
+ - `page` (اختياري، افتراضي 1): رقم الصفحة للترقيم (1-10). إذا كان السياق غير كافٍ، جرب page=2، page=3، إلخ مع نفس الموضوع.
## التطوير
diff --git a/i18n/README.de.md b/i18n/README.de.md
index 4dd06ce3..d0327e6b 100644
--- a/i18n/README.de.md
+++ b/i18n/README.de.md
@@ -288,7 +288,7 @@ Wenn du den MCP-Server lieber in einem Docker-Container ausführen möchtest:
- `get-library-docs`: Ruft die Dokumentation für eine Bibliothek mit einer Context7-kompatiblen Bibliotheks-ID ab.
- `context7CompatibleLibraryID` (erforderlich)
- `topic` (optional): Fokussiert die Dokumentation auf ein bestimmtes Thema (z.B. "routing", "hooks")
- - `tokens` (optional, Standard 10000): Maximale Anzahl von zurückzugebenden Tokens. Werte unter 10000 werden automatisch auf 10000 erhöht.
+ - `page` (optional, Standard 1): Seitennummer für die Paginierung (1-10). Wenn der Kontext nicht ausreicht, versuchen Sie page=2, page=3 usw. mit demselben Thema.
## Entwicklung
diff --git a/i18n/README.es.md b/i18n/README.es.md
index e327bfad..64aa3538 100644
--- a/i18n/README.es.md
+++ b/i18n/README.es.md
@@ -215,7 +215,7 @@ Si el archivo `mcp-config.json` no existe, créalo.
- `get-library-docs`: Obtiene documentación para una biblioteca utilizando un ID de biblioteca compatible con Context7.
- `context7CompatibleLibraryID` (requerido)
- `topic` (opcional): Enfoca la documentación en un tema específico (p. ej., "routing", "hooks")
- - `tokens` (opcional, por defecto 10000): Número máximo de tokens a devolver. Los valores inferiores a 10000 se aumentan automáticamente a 10000.
+ - `page` (opcional, por defecto 1): Número de página para la paginación (1-10). Si el contexto no es suficiente, intente page=2, page=3, etc. con el mismo tema.
## Desarrollo
diff --git a/i18n/README.fr.md b/i18n/README.fr.md
index 0eb4ad70..5c8c9a40 100644
--- a/i18n/README.fr.md
+++ b/i18n/README.fr.md
@@ -315,26 +315,6 @@ La configuration sous Windows est légèrement différente par rapport à Linux
}
```
-### Variables d'environnement
-
-- `DEFAULT_MINIMUM_TOKENS`: Définissez le nombre minimum de tokens pour la récupération de documentation (par défaut: 10000).
-
-Exemples:
-
-```json
-{
- "mcpServers": {
- "context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp@latest"],
- "env": {
- "DEFAULT_MINIMUM_TOKENS": "10000"
- }
- }
- }
-}
-```
-
### Outils disponibles
- `resolve-library-id` : Résout un nom de bibliothèque général en un ID compatible Context7.
@@ -342,7 +322,7 @@ Exemples:
- `get-library-docs` : Récupère la documentation d’une bibliothèque via un ID Context7.
- `context7CompatibleLibraryID` (obligatoire)
- `topic` (optionnel) : Focaliser la doc sur un sujet précis (ex : "routing", "hooks")
- - `tokens` (optionnel, par défaut 10000) : Nombre max de tokens à retourner. Les valeurs < 10000 sont automatiquement augmentées à 10000.
+ - `page` (optionnel, par défaut 1) : Numéro de page pour la pagination (1-10). Si le contexte n'est pas suffisant, essayez page=2, page=3, etc. avec le même sujet.
## Développement
diff --git a/i18n/README.id-ID.md b/i18n/README.id-ID.md
index c04f3f36..70d67fe6 100644
--- a/i18n/README.id-ID.md
+++ b/i18n/README.id-ID.md
@@ -761,7 +761,7 @@ Context7 MCP menyediakan alat berikut yang dapat digunakan oleh LLM:
- `get-library-docs`: Mengambil dokumentasi untuk pustaka menggunakan ID pustaka yang kompatibel dengan Context7.
- `context7CompatibleLibraryID` (wajib): ID pustaka yang kompatibel dengan Context7 (contoh: `/mongodb/docs`, `/vercel/next.js`)
- `topic` (opsional): Fokuskan dokumen pada topik tertentu (contoh: "routing", "hooks")
- - `tokens` (opsional, default 10000): Jumlah maksimum token yang dikembalikan. Nilai kurang dari nilai default 10000 secara otomatis dinaikkan menjadi 10000.
+ - `page` (opsional, default 1): Nomor halaman untuk pagination (1-10). Jika konteksnya tidak cukup, coba page=2, page=3, dll. dengan topik yang sama.
## 🛟 Tips
diff --git a/i18n/README.it.md b/i18n/README.it.md
index 7d03e09b..33fb631b 100644
--- a/i18n/README.it.md
+++ b/i18n/README.it.md
@@ -290,7 +290,7 @@ Se preferisci eseguire il server MCP in un contenitore Docker:
- `get-library-docs`: Recupera la documentazione per una libreria utilizzando un ID di libreria compatibile con Context7.
- `context7CompatibleLibraryID` (obbligatorio)
- `topic` (opzionale): Concentra la documentazione su un argomento specifico (es., "routing", "hooks")
-- `tokens` (opzionale, predefinito 10000): Numero massimo di token da restituire. I valori inferiori a 10000 vengono automaticamente aumentati a 10000.
+- `page` (opzionale, predefinito 1): Numero di pagina per la paginazione (1-10). Se il contesto non è sufficiente, prova page=2, page=3, ecc. con lo stesso argomento.
## Sviluppo
diff --git a/i18n/README.ja.md b/i18n/README.ja.md
index 0d8badf9..762f5802 100644
--- a/i18n/README.ja.md
+++ b/i18n/README.ja.md
@@ -618,7 +618,7 @@ Context7 MCP は LLM が使用できる以下のツールを提供します:
- `get-library-docs`:Context7 互換のライブラリ ID を使用してライブラリのドキュメントを取得します。
- `context7CompatibleLibraryID`(必須):正確な Context7 互換のライブラリ ID(例:`/mongodb/docs`、`/vercel/next.js`)
- `topic`(任意):ドキュメントの特定のトピックに焦点を当てます(例:"routing"、"hooks")
- - `tokens`(任意、デフォルト 10000):返すトークンの最大数。デフォルト値 10000 未満の値は自動的に 10000 に増加されます。
+ - `page`(任意、デフォルト 1):ページネーションのページ番号(1-10)。コンテキストが不十分な場合は、同じトピックでpage=2、page=3などを試してください。
## 💻 開発
diff --git a/i18n/README.ko.md b/i18n/README.ko.md
index 736aa710..59cb07d1 100644
--- a/i18n/README.ko.md
+++ b/i18n/README.ko.md
@@ -830,7 +830,7 @@ Context7 MCP는 LLM이 사용할 수 있는 다음 도구들을 제공합니다:
- `get-library-docs`: Context7이 인식하는 라이브러리 ID를 사용하여 해당 라이브러리의 문서를 가져옵니다.
- `context7CompatibleLibraryID` (필수): 정확한 Context7 호환 라이브러리 ID (예: `/mongodb/docs`, `/vercel/next.js`)
- `topic` (선택): 특정 주제에 대한 문서에 집중합니다 (예: "routing", "hooks")
- - `tokens` (선택, 기본값 10000): 가져올 문서의 최대 토큰 수. 기본값인 10000보다 작은 값은 자동으로 10000으로 증가합니다.
+ - `page` (선택, 기본값 1): 페이지네이션을 위한 페이지 번호 (1-10). 컨텍스트가 충분하지 않으면 동일한 주제로 page=2, page=3 등을 시도하세요.
## 🛟 팁
diff --git a/i18n/README.pt-BR.md b/i18n/README.pt-BR.md
index 72fe0e0c..094d4d9d 100644
--- a/i18n/README.pt-BR.md
+++ b/i18n/README.pt-BR.md
@@ -997,7 +997,7 @@ O Context7 MCP fornece as seguintes ferramentas que LLMs podem usar:
- `get-library-docs`: Busca documentação para uma biblioteca usando um ID compatível com o Context7.
- `context7CompatibleLibraryID` (obrigatório): ID exato compatível com Context7 (por exemplo, `/mongodb/docs`, `/vercel/next.js`)
- `topic` (opcional): Focar os docs em um tópico específico (por exemplo, "routing", "hooks")
- - `tokens` (opcional, padrão 10000): Número máximo de tokens para retornar. Valores menores que o padrão de 10000 são automaticamente aumentados para 10000.
+ - `page` (opcional, padrão 1): Número da página para paginação (1-10). Se o contexto não for suficiente, tente page=2, page=3, etc. com o mesmo tópico.
## 🛟 Dicas
diff --git a/i18n/README.ru.md b/i18n/README.ru.md
index 128203d3..a0d68e29 100644
--- a/i18n/README.ru.md
+++ b/i18n/README.ru.md
@@ -313,26 +313,6 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
}
```
-### Переменные окружения
-
-- `DEFAULT_MINIMUM_TOKENS`: минимальное количество токенов, необходимое для получения документации (по умолчанию: 10000).
-
-Examples:
-
-```json
-{
- "mcpServers": {
- "context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp"],
- "env": {
- "DEFAULT_MINIMUM_TOKENS": "10000"
- }
- }
- }
-}
-```
-
### Доступные инструменты
- `resolve-library-id`: преобразует общее название библиотеки в совместимый с Context7 идентификатор.
@@ -340,7 +320,7 @@ Examples:
- `get-library-docs`: получает документацию по библиотеке по совместимому с Context7 идентификатору.
- `context7CompatibleLibraryID` (обязательно)
- `topic` (необязательно): фокусирует документацию на определённой теме (например, "routing", "hooks")
- - `tokens` (необязательно, по умолчанию 10000): максимальное число токенов в ответе. Значения ниже заданного `DEFAULT_MINIMUM_TOKENS` будут автоматически увеличены до него.
+ - `page` (необязательно, по умолчанию 1): номер страницы для пагинации (1-10). Если контекста недостаточно, попробуйте page=2, page=3 и т.д. с той же темой.
## Разработка
diff --git a/i18n/README.tr.md b/i18n/README.tr.md
index d32be4cc..2299fa6d 100644
--- a/i18n/README.tr.md
+++ b/i18n/README.tr.md
@@ -246,26 +246,6 @@ MCP sunucusunu bir Docker konteynerinde çalıştırmayı tercih ederseniz:
_Not: Bu bir örnek yapılandırmadır. Yapıyı uyarlamak için MCP istemcinize (Cursor, VS Code vb.) özel örneklere bakın (örneğin, `mcpServers` ve `servers` farkı). Ayrıca, `args` içindeki görüntü adının `docker build` komutu sırasında kullanılan etiketle eşleştiğinden emin olun._
-### Çevre Değişkenleri
-
-- `DEFAULT_MINIMUM_TOKENS`: Belge alımı için minimum token sayısını ayarlayın (varsayılan: 10000).
-
-Örnekler:
-
-```json
-{
- "mcpServers": {
- "context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp@latest"],
- "env": {
- "DEFAULT_MINIMUM_TOKENS": "10000"
- }
- }
- }
-}
-```
-
### Kullanılabilir Araçlar
- `resolve-library-id`: Genel bir kütüphane adını Context7 uyumlu bir kütüphane ID'sine dönüştürür.
@@ -273,7 +253,7 @@ MCP sunucusunu bir Docker konteynerinde çalıştırmayı tercih ederseniz:
- `get-library-docs`: Context7 uyumlu bir kütüphane ID'si kullanarak bir kütüphane için belgeleri getirir.
- `context7CompatibleLibraryID` (gerekli)
- `topic` (isteğe bağlı): Belgeleri belirli bir konuya odaklayın (örn. "routing", "hooks")
- - `tokens` (isteğe bağlı, varsayılan 10000): Döndürülecek maksimum token sayısı. Yapılandırılmış `DEFAULT_MINIMUM_TOKENS` değerinden veya varsayılan 10000 değerinden düşük değerler otomatik olarak o değere yükseltilir.
+ - `page` (isteğe bağlı, varsayılan 1): Sayfalama için sayfa numarası (1-10). Bağlam yeterli değilse, aynı konu ile page=2, page=3, vb. deneyin.
## Geliştirme
diff --git a/i18n/README.uk.md b/i18n/README.uk.md
index a3754298..a381bd1d 100644
--- a/i18n/README.uk.md
+++ b/i18n/README.uk.md
@@ -762,7 +762,7 @@ Context7 MCP надає наступні інструменти, які можу
- `get-library-docs`: Отримує документацію для бібліотеки, використовуючи сумісний з Context7 ідентифікатор бібліотеки.
- `context7CompatibleLibraryID` (обов'язково): Точний сумісний з Context7 ідентифікатор бібліотеки (наприклад, `/mongodb/docs`, `/vercel/next.js`)
- `topic` (необов'язково): Сфокусувати документацію на конкретній темі (наприклад, "routing", "hooks")
- - `tokens` (необов'язково, за замовчуванням 10000): Максимальна кількість токенів для повернення. Значення менші за стандартне значення 10000 автоматично збільшуються до 10000.
+ - `page` (необов'язково, за замовчуванням 1): Номер сторінки для пагінації (1-10). Якщо контексту недостатньо, спробуйте page=2, page=3 тощо з тією ж темою.
## 🛟 Поради
diff --git a/i18n/README.vi.md b/i18n/README.vi.md
index 68b12a33..4e67ded0 100644
--- a/i18n/README.vi.md
+++ b/i18n/README.vi.md
@@ -864,7 +864,7 @@ Context7 MCP cung cấp các công cụ sau mà LLM có thể sử dụng:
- `get-library-docs`: Lấy tài liệu cho thư viện sử dụng Context7-compatible library ID.
- `context7CompatibleLibraryID` (bắt buộc): Context7-compatible library ID chính xác (ví dụ: `/mongodb/docs`, `/vercel/next.js`)
- `topic` (tùy chọn): Tập trung tài liệu vào một chủ đề cụ thể (ví dụ: "routing", "hooks")
- - `tokens` (tùy chọn, mặc định 10000): Số token tối đa để trả về. Giá trị nhỏ hơn giá trị mặc định 10000 sẽ tự động tăng lên 10000.
+ - `page` (tùy chọn, mặc định 1): Số trang cho phân trang (1-10). Nếu ngữ cảnh không đủ, hãy thử page=2, page=3, v.v. với cùng chủ đề.
## 🛟 Mẹo
diff --git a/i18n/README.zh-CN.md b/i18n/README.zh-CN.md
index 41a852e1..ed4774cb 100644
--- a/i18n/README.zh-CN.md
+++ b/i18n/README.zh-CN.md
@@ -1041,7 +1041,7 @@ Context7 MCP 提供以下 LLM 可以使用的工具:
- `get-library-docs`:使用 Context7 兼容的库 ID 获取库的文档。
- `context7CompatibleLibraryID`(必需):精确的 Context7 兼容库 ID(例如,`/mongodb/docs`、`/vercel/next.js`)
- `topic`(可选):将文档重点放在特定主题上(例如,"routing"、"hooks")
- - `tokens`(可选,默认 10000):返回的最大令牌数。小于默认值 10000 的值会自动增加到 10000。
+ - `page`(可选,默认 1):分页的页码(1-10)。如果上下文不够,请尝试使用相同主题的 page=2、page=3 等。
## 🛟 技巧
diff --git a/i18n/README.zh-TW.md b/i18n/README.zh-TW.md
index a82adec3..2bde614f 100644
--- a/i18n/README.zh-TW.md
+++ b/i18n/README.zh-TW.md
@@ -844,27 +844,6 @@ http_headers = { "CONTEXT7_API_KEY" = "YOUR_API_KEY" }
4. 可於右側 `Program` 下方或聊天框底部的插頭圖示切換 MCP 伺服器開關。
</details>
-## 🔧 環境變數
-
-Context7 MCP 伺服器支援下列環境變數:
-
-- `DEFAULT_MINIMUM_TOKENS`:設定文件擷取的最小 token 數(預設:10000)
-
-範例設定:
-
-```json
-{
- "mcpServers": {
- "context7": {
- "command": "npx",
- "args": ["-y", "@upstash/context7-mcp"],
- "env": {
- "DEFAULT_MINIMUM_TOKENS": "6000"
- }
- }
- }
-}
-```
## 🔨 可用工具
@@ -876,7 +855,7 @@ Context7 MCP 提供下列工具供 LLM 使用:
- `get-library-docs`:根據 Context7 相容的函式庫 ID 取得文件。
- `context7CompatibleLibraryID`(必填):Context7 相容的函式庫 ID(如 `/mongodb/docs`, `/vercel/next.js`)
- `topic`(選填):聚焦於特定主題(如 "routing", "hooks")
- - `tokens`(選填,預設 10000):最大回傳 token 數。小於預設或 `DEFAULT_MINIMUM_TOKENS` 的值會自動提升。
+ - `page`(選填,預設 1):分頁的頁碼(1-10)。如果上下文不足,請嘗試使用相同主題的 page=2、page=3 等。
## 💻 開發