Skip to content

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

chore: format docs

enesgulesca6963862ca7
diff --git a/docs/README.ar.md b/docs/README.ar.md
index 1d562e05..079b3a93 100644
--- a/docs/README.ar.md
+++ b/docs/README.ar.md
@@ -175,10 +175,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp@latest
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.de.md b/docs/README.de.md
index 58698a57..8b4da218 100644
--- a/docs/README.de.md
+++ b/docs/README.de.md
@@ -171,7 +171,6 @@ Füge dies zu deiner Claude Desktop `claude_desktop_config.json` Datei hinzu. Si
}
```
-
### Installation im Copilot Coding Agent
Füge die folgende Konfiguration zum Abschnitt `mcp` deiner Copilot Coding Agent-Konfigurationsdatei hinzu (Repository->Settings->Copilot->Coding agent->MCP configuration):
@@ -182,10 +181,7 @@ Füge die folgende Konfiguration zum Abschnitt `mcp` deiner Copilot Coding Agent
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.es.md b/docs/README.es.md
index 637a9e95..a520b13c 100644
--- a/docs/README.es.md
+++ b/docs/README.es.md
@@ -163,10 +163,7 @@ Agrega la siguiente configuración a la sección `mcp` de tu archivo de configur
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
@@ -174,7 +171,6 @@ Agrega la siguiente configuración a la sección `mcp` de tu archivo de configur
Para más información, consulta la [documentación oficial de GitHub](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/extending-copilot-coding-agent-with-mcp).
-
### Herramientas Disponibles
- `resolve-library-id`: Resuelve un nombre de una biblioteca general en un ID de biblioteca compatible con Context7.
diff --git a/docs/README.fr.md b/docs/README.fr.md
index 294a5201..6c7b0bb6 100644
--- a/docs/README.fr.md
+++ b/docs/README.fr.md
@@ -156,8 +156,6 @@ Exécutez cette commande. Voir la [documentation Claude Code MCP](https://docs.a
claude mcp add context7 -- npx -y @upstash/context7-mcp@latest
```
-
-
### Installation dans Claude Desktop
Ajoutez ceci à votre fichier `claude_desktop_config.json`. Voir la [documentation Claude Desktop MCP](https://modelcontextprotocol.io/quickstart/user).
@@ -200,10 +198,7 @@ Ajoutez la configuration suivante à la section `mcp` de votre fichier de config
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.id-ID.md b/docs/README.id-ID.md
index 48a5c7e3..9fff061c 100644
--- a/docs/README.id-ID.md
+++ b/docs/README.id-ID.md
@@ -1,33 +1,44 @@
# Context7 MCP - Dokumentasi Kode Terkini Untuk Setiap Permintaan
+
[![Website](https://img.shields.io/badge/Website-context7.com-blue)](https://context7.com) [![smithery badge](https://smithery.ai/badge/@upstash/context7-mcp)](https://smithery.ai/server/@upstash/context7-mcp) [<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Context7%20MCP&color=0098FF">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22context7%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40upstash%2Fcontext7-mcp%40latest%22%5D%7D)
[![English](https://img.shields.io/badge/docs-English-blue)](./README.md) [![繁體中文](https://img.shields.io/badge/docs-繁體中文-yellow)](./docs/README.zh-TW.md) [![简体中文](https://img.shields.io/badge/docs-简体中文-yellow)](./docs/README.zh-CN.md) [![日本語](https://img.shields.io/badge/docs-日本語-b7003a)](./docs/README.ja.md) [![한국어 문서](https://img.shields.io/badge/docs-한국어-green)](./docs/README.ko.md) [![Documentación en Español](https://img.shields.io/badge/docs-Español-orange)](./docs/README.es.md) [![Documentation en Français](https://img.shields.io/badge/docs-Français-blue)](./docs/README.fr.md) [![Documentação em Português (Brasil)](<https://img.shields.io/badge/docs-Português%20(Brasil)-purple>)](./docs/README.pt-BR.md) [![Documentazione in italiano](https://img.shields.io/badge/docs-Italian-red)](./docs/README.it.md) [![Dokumentasi Bahasa Indonesia](https://img.shields.io/badge/docs-Bahasa%20Indonesia-pink)](./docs/README.id-ID.md) [![Dokumentation auf Deutsch](https://img.shields.io/badge/docs-Deutsch-darkgreen)](./docs/README.de.md) [![Документация на русском языке](https://img.shields.io/badge/docs-Русский-darkblue)](./docs/README.ru.md) [![Українська документація](https://img.shields.io/badge/docs-Українська-lightblue)](./docs/README.uk.md) [![Türkçe Doküman](https://img.shields.io/badge/docs-Türkçe-blue)](./docs/README.tr.md) [![Arabic Documentation](https://img.shields.io/badge/docs-Arabic-white)](./docs/README.ar.md)
## ❌ Tanpa Context7
+
LLM bergantung pada informasi yang sudah usang atau generik tentang pustaka yang Anda gunakan. Anda mendapatkan:
+
- ❌ Contoh kode yang sudah usang dan berdasarkan data pelatihan dari tahun lalu
- ❌ API yang diimajinasikan tidak pernah ada
- ❌ Jawaban generik untuk versi paket yang lama
## ✅ Dengan Context7
+
Context7 MCP mengambil dokumentasi dan contoh kode terkini yang spesifik versi langsung dari sumbernya — dan menempatkannya langsung ke dalam prompt Anda.
Tambahkan `use context7` ke prompt Anda di Cursor:
+
```txt
Buat middleware Next.js yang memeriksa JWT valid di cookie dan mengarahkan pengguna yang tidak terautentikasi ke `/login`. use context7
```
+
```txt
Konfigurasikan skrip Cloudflare Worker untuk menyimpan respons API JSON selama lima menit. use context7
```
+
Context7 mengambil contoh kode dan dokumentasi terkini langsung ke konteks LLM.
+
- 1️⃣ Tulis permintaan Anda secara alami
- 2️⃣ Beri tahu LLM untuk `use context7`
- 3️⃣ Dapatkan jawaban kode yang berfungsi
-Tidak perlu berpindah tab, tidak ada API yang diimajinasikan yang tidak ada, tidak ada hasil kode usang.
+ Tidak perlu berpindah tab, tidak ada API yang diimajinasikan yang tidak ada, tidak ada hasil kode usang.
## 📚 Menambahkan Proyek
+
Kunjungi [panduan penambahan proyek](./docs/adding-projects.md) untuk mempelajari cara menambahkan (atau memperbarui) pustaka favorit Anda ke Context7.
## 🛠️ Instalasi
+
### Persyaratan
+
- Node.js >= v18.0.0
- Cursor, Windsurf, Claude Desktop, atau klien MCP lainnya
@@ -47,7 +58,9 @@ Menyalin konfigurasi berikut ke file `~/.cursor/mcp.json` Anda adalah pendekatan
> Sejak Cursor 1.0, Anda dapat mengklik tombol instal di bawah untuk instalasi satu klik instan.
#### Koneksi Server Remote Cursor
+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=context7&config=eyJ1cmwiOiJodHRwczovL21jcC5jb250ZXh0Ny5jb20vbWNwIn0%3D)
+
```json
{
"mcpServers": {
@@ -59,7 +72,9 @@ Menyalin konfigurasi berikut ke file `~/.cursor/mcp.json` Anda adalah pendekatan
```
#### Koneksi Server Lokal Cursor
+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IC15IEB1cHN0YXNoL2NvbnRleHQ3LW1jcCJ9)
+
```json
{
"mcpServers": {
@@ -107,6 +122,7 @@ Menyalin konfigurasi berikut ke file `~/.cursor/mcp.json` Anda adalah pendekatan
Tambahkan ini ke file konfigurasi MCP Windsurf Anda. Lihat [dokumentasi MCP Windsurf](https://docs.windsurf.com/windsurf/mcp) untuk info lebih lanjut.
#### Koneksi Server Remote Windsurf
+
```json
{
"mcpServers": {
@@ -118,6 +134,7 @@ Tambahkan ini ke file konfigurasi MCP Windsurf Anda. Lihat [dokumentasi MCP Wind
```
#### Koneksi Server Lokal Windsurf
+
```json
{
"mcpServers": {
@@ -128,6 +145,7 @@ Tambahkan ini ke file konfigurasi MCP Windsurf Anda. Lihat [dokumentasi MCP Wind
}
}
```
+
</details>
<details>
@@ -136,6 +154,7 @@ Gunakan fitur Tambah secara manual dan isi informasi konfigurasi JSON untuk serv
Untuk detail lebih lanjut, kunjungi [dokumentasi Trae](https://docs.trae.ai/ide/model-context-protocol?_lang=en).
#### Koneksi Server Remote Trae
+
```json
{
"mcpServers": {
@@ -147,19 +166,18 @@ Untuk detail lebih lanjut, kunjungi [dokumentasi Trae](https://docs.trae.ai/ide/
```
#### Koneksi Server Lokal Trae
+
```json
{
"mcpServers": {
"context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ]
+ "args": ["-y", "@upstash/context7-mcp"]
}
}
}
```
+
</details>
<details>
@@ -170,6 +188,7 @@ Untuk detail lebih lanjut, kunjungi [dokumentasi Trae](https://docs.trae.ai/ide/
Tambahkan ini ke file konfigurasi MCP VS Code Anda. Lihat [dokumentasi MCP VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) untuk info lebih lanjut.
#### Koneksi Server Remote VS Code
+
```json
"mcp": {
"servers": {
@@ -182,6 +201,7 @@ Tambahkan ini ke file konfigurasi MCP VS Code Anda. Lihat [dokumentasi MCP VS Co
```
#### Koneksi Server Lokal VS Code
+
```json
"mcp": {
"servers": {
@@ -193,6 +213,7 @@ Tambahkan ini ke file konfigurasi MCP VS Code Anda. Lihat [dokumentasi MCP VS Co
}
}
```
+
</details>
<details>
@@ -279,18 +300,23 @@ Jika objek `mcpServers` tidak ada, buatlah.
Jalankan perintah ini. Lihat [dokumentasi MCP Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp) untuk info lebih lanjut.
#### Koneksi Server Remote Claude Code
+
```sh
claude mcp add --transport http context7 https://mcp.context7.com/mcp
```
+
Atau menggunakan transport SSE:
+
```sh
claude mcp add --transport sse context7 https://mcp.context7.com/sse
```
#### Koneksi Server Lokal Claude Code
+
```sh
claude mcp add context7 -- npx -y @upstash/context7-mcp
```
+
</details>
<details>
@@ -399,6 +425,7 @@ Konfigurasi di Windows sedikit berbeda dibandingkan Linux atau macOS (_`Cline` d
Untuk mengonfigurasi Context7 MCP di Augment Code, Anda dapat menggunakan antarmuka grafis atau konfigurasi manual.
### **A. Menggunakan UI Augment Code**
+
1. Klik menu hamburger.
2. Pilih **Pengaturan**.
3. Navigasikan ke bagian **Alat**.
@@ -409,14 +436,17 @@ Untuk mengonfigurasi Context7 MCP di Augment Code, Anda dapat menggunakan antarm
```
6. Beri nama MCP: **Context7**.
7. Klik tombol **Tambah**.
-Setelah server MCP ditambahkan, Anda dapat mulai menggunakan fitur dokumentasi kode terkini Context7 langsung di Augment Code.
+ Setelah server MCP ditambahkan, Anda dapat mulai menggunakan fitur dokumentasi kode terkini Context7 langsung di Augment Code.
---
+
### **B. Konfigurasi Manual**
+
1. Tekan Cmd/Ctrl Shift P atau pergi ke menu hamburger di panel Augment
2. Pilih Edit Pengaturan
3. Di bawah Lanjutan, klik Edit di settings.json
4. Tambahkan konfigurasi server ke array `mcpServers` di objek `augment.advanced`
+
```json
"augment.advanced": {
"mcpServers": [
@@ -428,7 +458,9 @@ Setelah server MCP ditambahkan, Anda dapat mulai menggunakan fitur dokumentasi k
]
}
```
+
Setelah server MCP ditambahkan, restart editor Anda. Jika Anda menerima kesalahan, periksa sintaks untuk memastikan tanda kurung atau koma penutup tidak hilang.
+
</details>
<details>
@@ -436,6 +468,7 @@ Setelah server MCP ditambahkan, restart editor Anda. Jika Anda menerima kesalaha
Tambahkan ini ke file konfigurasi MCP Roo Code Anda. Lihat [dokumentasi MCP Roo Code](https://docs.roocode.com/features/mcp/using-mcp-in-roo) untuk info lebih lanjut.
#### Koneksi Server Remote Roo Code
+
```json
{
"mcpServers": {
@@ -448,6 +481,7 @@ Tambahkan ini ke file konfigurasi MCP Roo Code Anda. Lihat [dokumentasi MCP Roo
```
#### Koneksi Server Lokal Roo Code
+
```json
{
"mcpServers": {
@@ -458,6 +492,7 @@ Tambahkan ini ke file konfigurasi MCP Roo Code Anda. Lihat [dokumentasi MCP Roo
}
}
```
+
</details>
<details>
@@ -561,6 +596,7 @@ Lihat [Dokumentasi Protokol Konteks Model Warp](https://docs.warp.dev/knowledge-
Tambahkan ini ke file konfigurasi Opencode Anda. Lihat [dokumentasi MCP Opencode](https://opencode.ai/docs/mcp-servers) untuk info lebih lanjut.
#### Koneksi Server Remote Opencode
+
```json
"mcp": {
"context7": {
@@ -572,6 +608,7 @@ Tambahkan ini ke file konfigurasi Opencode Anda. Lihat [dokumentasi MCP Opencode
```
#### Koneksi Server Lokal Opencode
+
```json
{
"mcp": {
@@ -583,6 +620,7 @@ Tambahkan ini ke file konfigurasi Opencode Anda. Lihat [dokumentasi MCP Opencode
}
}
```
+
</details>
<details>
@@ -647,11 +685,14 @@ command = "npx"
Lihat [Dukungan MCP LM Studio](https://lmstudio.ai/blog/lmstudio-v0.3.17) untuk informasi lebih lanjut.
#### Instal satu klik:
+
[![Add MCP Server context7 to LM Studio](https://files.lmstudio.ai/deeplink/mcp-install-light.svg)](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)
#### Pengaturan manual:
+
1. Navigasikan ke `Program` (sisi kanan) > `Instal` > `Edit mcp.json`.
2. Tempel konfigurasi yang diberikan di bawah:
+
```json
{
"mcpServers": {
@@ -662,12 +703,15 @@ Lihat [Dukungan MCP LM Studio](https://lmstudio.ai/blog/lmstudio-v0.3.17) untuk
}
}
```
+
3. Klik `Simpan` untuk menerapkan perubahan.
4. Aktifkan/nonaktifkan server MCP dari sisi kanan, di bawah `Program`, atau dengan mengklik ikon colokan di bagian bawah kotak obrolan.
</details>
## 🔨 Alat yang Tersedia
+
Context7 MCP menyediakan alat berikut yang dapat digunakan oleh LLM:
+
- `resolve-library-id`: Mengubah nama pustaka umum menjadi ID pustaka yang kompatibel dengan Context7.
- `libraryName` (wajib): Nama pustaka yang ingin dicari
- `get-library-docs`: Mengambil dokumentasi untuk pustaka menggunakan ID pustaka yang kompatibel dengan Context7.
@@ -676,41 +720,57 @@ Context7 MCP menyediakan alat berikut yang dapat digunakan oleh LLM:
- `tokens` (opsional, default 10000): Jumlah maksimum token yang dikembalikan. Nilai kurang dari nilai default 10000 secara otomatis dinaikkan menjadi 10000.
## 🛟 Tips
+
### Tambahkan Aturan
+
> Jika Anda tidak ingin menambahkan `use context7` ke setiap permintaan, Anda dapat menentukan aturan sederhana di file `.windsurfrules` Anda di Windsurf atau dari bagian `Cursor Settings > Rules` di Cursor (atau yang setara di klien MCP Anda) untuk memanggil Context7 secara otomatis pada setiap pertanyaan kode:
+>
> ```toml
> [[calls]]
> match = "when the user requests code examples, setup or configuration steps, or library/API documentation"
> tool = "context7"
> ```
+>
> Mulai saat itu, Anda akan mendapatkan dokumen Context7 dalam setiap percakapan terkait tanpa mengetik sesuatu tambahan. Anda dapat menambahkan kasus penggunaan Anda ke bagian match.
### Gunakan ID Pustaka
+
> Jika Anda sudah tahu persis pustaka mana yang ingin digunakan, tambahkan ID Context7-nya ke permintaan Anda. Dengan begitu, server MCP Context7 dapat melewati langkah pencocokan pustaka dan langsung mengambil dokumen.
+>
> ```txt
> implementasikan otentikasi dasar dengan supabase. gunakan pustaka /supabase/supabase untuk api dan docs
> ```
+>
> Sintaks garis miring memberi tahu alat MCP pustaka mana yang harus dimuat dokumennya.
## 💻 Pengembangan
+
Salin proyek dan instal dependensi:
+
```bash
bun i
```
+
Bangun:
+
```bash
bun run build
```
+
Jalankan server:
+
```bash
bun run dist/index.js
```
### Argumen CLI
+
`context7-mcp` menerima bendera CLI berikut:
+
- `--transport <stdio|http|sse>` – Transportasi yang digunakan (`stdio` secara default).
- `--port <number>` – Port yang didengarkan saat menggunakan transport `http` atau `sse` (default `3000`).
-Contoh dengan transport http dan port 8080:
+ Contoh dengan transport http dan port 8080:
+
```bash
bun run dist/index.js --transport http --port 8080
```
@@ -737,6 +797,7 @@ npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp
</details>
## 🚨 Pemecahan Masalah
+
<details>
<summary><b>Kesalahan Modul Tidak Ditemukan</b></summary>
Jika Anda mengalami `ERR_MODULE_NOT_FOUND`, coba gunakan `bunx` alih-alih `npx`:
@@ -792,15 +853,19 @@ Gunakan bendera `--experimental-fetch` untuk melewati masalah terkait TLS:
</details>
## ⚠️ Penafian
+
Proyek Context7 dikontribusikan oleh komunitas dan meskipun kami berusaha menjaga kualitas tinggi, kami tidak dapat menjamin keakuratan, kelengkapan, atau keamanan semua dokumentasi pustaka. Proyek yang terdaftar di Context7 dikembangkan dan dikelola oleh pemilik masing-masing, bukan oleh Context7. Jika Anda menemukan konten yang mencurigakan, tidak pantas, atau berpotensi membahayakan, gunakan tombol "Laporkan" di halaman proyek untuk segera memberi tahu kami. Kami memperlakukan semua laporan dengan serius dan akan segera meninjau konten yang dilaporkan untuk menjaga integritas dan keamanan platform kami. Dengan menggunakan Context7, Anda mengakui bahwa Anda melakukannya atas kebijaksanaan dan risiko Anda sendiri.
## 🤝 Terhubung dengan Kami
+
Tetap terbaru dan bergabunglah dengan komunitas kami:
+
- 📢 Ikuti kami di [X](https://x.com/context7ai) untuk berita dan pembaruan terbaru
- 🌐 Kunjungi [Situs Web](https://context7.com) kami
- 💬 Bergabunglah dengan [Komunitas Discord](https://upstash.com/discord) kami
## 📺 Context7 Di Media
+
- [Better Stack: "Free Tool Makes Cursor 10x Smarter"](https://youtu.be/52FC3qObp9E)
- [Cole Medin: "This is Hands Down the BEST MCP Server for AI Coding Assistants"](https://www.youtube.com/watch?v=G7gK8H6u7Rs)
- [Income Stream Surfers: "Context7 + SequentialThinking MCPs: Is This AGI?"](https://www.youtube.com/watch?v=-ggvzyLpK6o)
@@ -811,7 +876,9 @@ Tetap terbaru dan bergabunglah dengan komunitas kami:
- [Sean Kochel: "5 MCP Servers For Vibe Coding Glory (Just Plug-In & Go)"](https://www.youtube.com/watch?v=LqTQi8qexJM)
## ⭐ Sejarah Bintang
+
[![Star History Chart](https://api.star-history.com/svg?repos=upstash/context7&type=Date)](https://www.star-history.com/#upstash/context7&Date)
## 📄 Lisensi
-MIT
\ No newline at end of file
+
+MIT
diff --git a/docs/README.it.md b/docs/README.it.md
index 72bb8228..7b77dda6 100644
--- a/docs/README.it.md
+++ b/docs/README.it.md
@@ -183,10 +183,7 @@ Aggiungi la seguente configurazione alla sezione `mcp` del file di configurazion
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.ja.md b/docs/README.ja.md
index b2588061..cd6d5fc4 100644
--- a/docs/README.ja.md
+++ b/docs/README.ja.md
@@ -124,7 +124,12 @@ Smithery キーは [Smithery.ai Web ページ](https://smithery.ai/server/@upsta
"mcpServers": {
"context7": {
"command": "deno",
- "args": ["run", "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION", "--allow-net", "npm:@upstash/context7-mcp"]
+ "args": [
+ "run",
+ "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
+ "--allow-net",
+ "npm:@upstash/context7-mcp"
+ ]
}
}
}
@@ -240,6 +245,7 @@ Smithery キーは [Smithery.ai Web ページ](https://smithery.ai/server/@upsta
```
詳細情報とトラブルシューティングについては、[Visual Studio MCP サーバードキュメント](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022) を参照してください。
+
</details>
<details>
@@ -331,10 +337,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
@@ -514,11 +517,8 @@ Zencoder で Context7 MCP を設定するには、以下の手順に従います
```json
{
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp@latest"
- ]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
}
```
@@ -541,6 +541,7 @@ MCP サーバーが追加されたら、簡単に使用を続けることがで
}
}
```
+
</details>
## 🔨 利用可能なツール
diff --git a/docs/README.ko.md b/docs/README.ko.md
index 46657f45..f072c75c 100644
--- a/docs/README.ko.md
+++ b/docs/README.ko.md
@@ -124,7 +124,12 @@ Smithery 키는 [Smithery.ai 웹페이지](https://smithery.ai/server/@upstash/c
"mcpServers": {
"context7": {
"command": "deno",
- "args": ["run", "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION", "--allow-net", "npm:@upstash/context7-mcp"]
+ "args": [
+ "run",
+ "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
+ "--allow-net",
+ "npm:@upstash/context7-mcp"
+ ]
}
}
}
@@ -191,10 +196,7 @@ Windsurf MCP 설정 파일에 다음을 추가하세요. 자세한 내용은 [Wi
"mcpServers": {
"context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ]
+ "args": ["-y", "@upstash/context7-mcp"]
}
}
}
@@ -276,6 +278,7 @@ Visual Studio MCP 설정 파일에 다음을 추가하세요(자세한 내용은
```
자세한 정보 및 문제 해결은 [Visual Studio MCP 서버 문서](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022)를 참조하세요.
+
</details>
<details>
@@ -422,10 +425,7 @@ Claude Desktop의 `claude_desktop_config.json` 파일에 다음을 추가하세
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
@@ -605,11 +605,8 @@ Zencoder에서 Context7 MCP를 설정하려면 다음 단계를 따르세요:
```json
{
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp@latest"
- ]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
}
```
@@ -632,6 +629,7 @@ Amazon Q Developer CLI 설정 파일에 다음을 추가하세요. 자세한 내
}
}
```
+
</details>
<details>
@@ -641,7 +639,7 @@ Amazon Q Developer CLI 설정 파일에 다음을 추가하세요. 자세한 내
1. VSCode 또는 IntelliJ에서 Qodo Gen 채팅 패널을 엽니다.
2. 더 많은 도구 연결을 클릭합니다.
-3. + 새 MCP 추가를 클릭합니다.
+3. - 새 MCP 추가를 클릭합니다.
4. 다음 설정을 추가합니다:
```json
@@ -653,6 +651,7 @@ Amazon Q Developer CLI 설정 파일에 다음을 추가하세요. 자세한 내
}
}
```
+
</details>
<details>
@@ -693,10 +692,7 @@ Amazon Q Developer CLI 설정 파일에 다음을 추가하세요. 자세한 내
{
"Context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
+ "args": ["-y", "@upstash/context7-mcp"],
"env": {},
"working_directory": null,
"start_on_launch": true
@@ -728,7 +724,6 @@ Opencode 설정 파일에 다음을 추가하세요. 자세한 내용은 [Openco
#### Opencode 로컬 서버 연결
```json
-
{
"mcp": {
"context7": {
@@ -755,18 +750,14 @@ Opencode 설정 파일에 다음을 추가하세요. 자세한 내용은 [Openco
{
"mcpServers": {
"Context7": {
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
- "env": {},
- "disabled": false,
- "autoApprove": []
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp"],
+ "env": {},
+ "disabled": false,
+ "autoApprove": []
}
}
}
-
```
4. `Save`을 클릭하여 변경 사항을 적용합니다.
@@ -803,23 +794,27 @@ Context7 MCP는 LLM이 사용할 수 있는 다음 도구들을 제공합니다:
## 🛟 팁
### 규칙 추가
+
> 모든 프롬프트에 `use context7`을 추가하고 싶지 않다면, Windsurf의 `.windsurfrules` 파일이나 Cursor의 `Cursor Settings > Rules` 섹션(또는 사용 중인 MCP 클라이언트의 해당 기능)에서 간단한 규칙을 정의하여 코드 관련 질문에 Context7을 자동으로 호출할 수 있습니다:
+>
> ```toml
> [[calls]]
> match = "when the user requests code examples, setup or configuration steps, or library/API documentation"
> tool = "context7"
> ```
+>
> 그러면 추가 입력 없이도 관련 대화에서 Context7의 문서를 얻을 수 있습니다. match 부분에 여러분의 사용 사례를 추가할 수 있습니다.
### 라이브러리 ID 사용
+
> 사용하려는 라이브러리를 이미 정확히 알고 있다면, 프롬프트에 해당 라이브러리의 Context7 ID를 추가하세요. 이렇게 하면 Context7 MCP 서버가 라이브러리 매칭 단계를 건너뛰고 바로 문서 검색을 진행할 수 있습니다.
+>
> ```txt
> supabase로 기본 인증을 구현해줘. API와 문서는 /supabase/supabase 라이브러리를 사용해줘
> ```
+>
> 슬래시 구문은 MCP 도구에게 어떤 라이브러리의 문서를 로드할지 정확히 알려줍니다.
-
-
## 💻 개발
프로젝트를 복제하고 의존성을 설치하세요:
diff --git a/docs/README.pt-BR.md b/docs/README.pt-BR.md
index 35205a9d..a7152c32 100644
--- a/docs/README.pt-BR.md
+++ b/docs/README.pt-BR.md
@@ -183,10 +183,7 @@ Adicione a seguinte configuração à seção `mcp` do seu arquivo de configura
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.ru.md b/docs/README.ru.md
index 52dfec50..9f58a17c 100644
--- a/docs/README.ru.md
+++ b/docs/README.ru.md
@@ -196,10 +196,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.tr.md b/docs/README.tr.md
index 689647b4..5cc9b9cb 100644
--- a/docs/README.tr.md
+++ b/docs/README.tr.md
@@ -183,10 +183,7 @@ Aşağıdaki yapılandırmayı Copilot Coding Agent'ın `mcp` bölümüne ekleyi
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.uk.md b/docs/README.uk.md
index 55ca804c..7304f0d3 100644
--- a/docs/README.uk.md
+++ b/docs/README.uk.md
@@ -124,7 +124,12 @@ npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME>
"mcpServers": {
"context7": {
"command": "deno",
- "args": ["run", "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION", "--allow-net", "npm:@upstash/context7-mcp"]
+ "args": [
+ "run",
+ "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
+ "--allow-net",
+ "npm:@upstash/context7-mcp"
+ ]
}
}
}
@@ -368,7 +373,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
1. Відкрийте **Cline**.
2. Натисніть значок меню гамбургер (☰), щоб увійти до розділу **MCP Servers**.
-3. Використовуйте панель пошуку у вкладці **Marketplace**, щоб знайти *Context7*.
+3. Використовуйте панель пошуку у вкладці **Marketplace**, щоб знайти _Context7_.
4. Натисніть кнопку **Install**.
</details>
@@ -559,11 +564,8 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
```json
{
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp@latest"
- ]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
}
```
@@ -647,10 +649,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
{
"Context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
+ "args": ["-y", "@upstash/context7-mcp"],
"env": {},
"working_directory": null,
"start_on_launch": true
@@ -713,23 +712,23 @@ Context7 MCP надає наступні інструменти, які можу
### Додайте правило
> Якщо ви не хочете додавати `use context7` до кожного промпту, ви можете визначити просте правило у вашому файлі `.windsurfrules` в Windsurf або в розділі `Cursor Settings > Rules` в Cursor (або еквівалентному у вашому MCP-клієнті), щоб автоматично викликати Context7 для будь-яких запитань про код:
->
+>
> ```toml
> [[calls]]
> match = "when the user requests code examples, setup or configuration steps, or library/API documentation"
> tool = "context7"
> ```
->
+>
> Відтоді ви отримуватимете документацію Context7 у будь-якій пов'язаній розмові без введення будь-чого додаткового. Ви можете додати свої випадки використання до частини match.
### Використовуйте ідентифікатор бібліотеки
> Якщо ви вже точно знаєте, яку бібліотеку хочете використовувати, додайте її ідентифікатор Context7 до вашого промпту. Таким чином Context7 MCP-сервер може пропустити крок пошуку бібліотеки та одразу перейти до отримання документації.
->
+>
> ```txt
> implement basic authentication with supabase. use library /supabase/supabase for api and docs
> ```
->
+>
> Синтаксис із слешем повідомляє MCP-інструменту точно, для якої бібліотеки завантажувати документацію.
## 💻 Розробка
diff --git a/docs/README.vi.md b/docs/README.vi.md
index 6ca3386d..e6f778c0 100644
--- a/docs/README.vi.md
+++ b/docs/README.vi.md
@@ -124,7 +124,12 @@ Paste cấu hình sau vào file Cursor `~/.cursor/mcp.json` là cách được k
"mcpServers": {
"context7": {
"command": "deno",
- "args": ["run", "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION", "--allow-net", "npm:@upstash/context7-mcp"]
+ "args": [
+ "run",
+ "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",
+ "--allow-net",
+ "npm:@upstash/context7-mcp"
+ ]
}
}
}
@@ -191,10 +196,7 @@ Sử dụng tính năng Add manually và điền thông tin cấu hình JSON cho
"mcpServers": {
"context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ]
+ "args": ["-y", "@upstash/context7-mcp"]
}
}
}
@@ -276,6 +278,7 @@ Hoặc, cho local server:
```
Để biết thêm thông tin và khắc phục sự cố, tham khảo [tài liệu Visual Studio MCP Servers](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022).
+
</details>
<details>
@@ -386,7 +389,7 @@ Bạn có thể dễ dàng cài đặt Context7 thông qua [Cline MCP Server Mar
1. Mở **Cline**.
2. Click biểu tượng menu hamburger (☰) để vào phần **MCP Servers**.
-3. Sử dụng thanh tìm kiếm trong tab **Marketplace** để tìm *Context7*.
+3. Sử dụng thanh tìm kiếm trong tab **Marketplace** để tìm _Context7_.
4. Click nút **Install**.
</details>
@@ -581,11 +584,8 @@ Thêm cấu hình này vào file cấu hình Roo Code MCP của bạn. Xem [tài
```json
{
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp@latest"
- ]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
}
```
@@ -608,6 +608,7 @@ Thêm cấu hình này vào file cấu hình Amazon Q Developer CLI của bạn.
}
}
```
+
</details>
<details>
@@ -629,6 +630,7 @@ Xem [tài liệu Qodo Gen](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo
}
}
```
+
</details>
<details>
@@ -670,10 +672,7 @@ Xem [Tài liệu Warp Model Context Protocol](https://docs.warp.dev/knowledge-an
{
"Context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
+ "args": ["-y", "@upstash/context7-mcp"],
"env": {},
"working_directory": null,
"start_on_launch": true
@@ -705,7 +704,6 @@ Thêm cấu hình này vào file cấu hình Opencode của bạn. Xem [tài li
#### Kết nối Opencode Local Server
```json
-
{
"mcp": {
"context7": {
@@ -733,10 +731,7 @@ Thêm cấu hình sau vào phần `mcp` trong file cấu hình Copilot Coding Ag
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
@@ -760,18 +755,14 @@ Xem [Tài liệu Kiro Model Context Protocol](https://kiro.dev/docs/mcp/configur
{
"mcpServers": {
"Context7": {
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
- "env": {},
- "disabled": false,
- "autoApprove": []
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp"],
+ "env": {},
+ "disabled": false,
+ "autoApprove": []
}
}
}
-
```
4. Click `Save` để áp dụng thay đổi.
@@ -797,12 +788,14 @@ command = "npx"
Xem [LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) để biết thêm thông tin.
#### Cài đặt một cú click:
+
[![Add MCP Server context7 to LM Studio](https://files.lmstudio.ai/deeplink/mcp-install-light.svg)](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)
#### Thiết lập thủ công:
1. Điều hướng đến `Program` (bên phải) > `Install` > `Edit mcp.json`.
2. Paste cấu hình được cung cấp bên dưới:
+
```json
{
"mcpServers": {
@@ -813,6 +806,7 @@ Xem [LM Studio MCP Support](https://lmstudio.ai/blog/lmstudio-v0.3.17) để bi
}
}
```
+
3. Click `Save` để áp dụng thay đổi.
4. Bật/tắt MCP server từ bên phải, dưới `Program`, hoặc bằng cách click biểu tượng plug ở cuối hộp chat.
@@ -834,19 +828,25 @@ Context7 MCP cung cấp các công cụ sau mà LLM có thể sử dụng:
## 🛟 Mẹo
### Thêm Quy Tắc
+
> Nếu bạn không muốn thêm `use context7` vào mỗi prompt, bạn có thể định nghĩa một quy tắc đơn giản trong file `.windsurfrules` của bạn trong Windsurf hoặc từ phần `Cursor Settings > Rules` trong Cursor (hoặc tương đương trong MCP client của bạn) để tự động gọi Context7 trên bất kỳ câu hỏi code nào:
+>
> ```toml
> [[calls]]
> match = "when the user requests code examples, setup or configuration steps, or library/API documentation"
> tool = "context7"
> ```
+>
> Từ đó bạn sẽ nhận được tài liệu Context7 trong bất kỳ cuộc hội thoại liên quan nào mà không cần gõ thêm gì. Bạn có thể thêm các trường hợp sử dụng của mình vào phần match.
### Sử dụng Library Id
+
> Nếu bạn đã biết chính xác thư viện nào muốn sử dụng, hãy thêm Context7 ID của nó vào prompt của bạn. Cách đó, Context7 MCP server có thể bỏ qua bước matching thư viện và trực tiếp tiếp tục với việc lấy tài liệu.
+>
> ```txt
> implement basic authentication with supabase. use library /supabase/supabase for api and docs
> ```
+>
> Cú pháp dấu gạch chéo nói với MCP tool chính xác thư viện nào cần load tài liệu.
## 💻 Phát Triển
@@ -1004,4 +1004,4 @@ Cập nhật và tham gia cộng đồng của chúng tôi:
## 📄 Giấy Phép
-MIT
\ No newline at end of file
+MIT
diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md
index 7fc52f09..95a0b327 100644
--- a/docs/README.zh-CN.md
+++ b/docs/README.zh-CN.md
@@ -181,10 +181,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp@latest
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
diff --git a/docs/README.zh-TW.md b/docs/README.zh-TW.md
index b32200b1..4cf679dd 100644
--- a/docs/README.zh-TW.md
+++ b/docs/README.zh-TW.md
@@ -185,10 +185,7 @@ npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME>
"mcpServers": {
"context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ]
+ "args": ["-y", "@upstash/context7-mcp"]
}
}
}
@@ -270,6 +267,7 @@ npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME>
```
如需更多資訊與疑難排解,請參閱 [Visual Studio MCP 伺服器文件](https://learn.microsoft.com/visualstudio/ide/mcp-servers?view=vs-2022)。
+
</details>
<details>
@@ -380,7 +378,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
1. 開啟 **Cline**。
2. 點擊漢堡選單圖示(☰)進入 **MCP 伺服器** 區段。
-3. 在 **市集** 分頁的搜尋欄中尋找 *Context7*。
+3. 在 **市集** 分頁的搜尋欄中尋找 _Context7_。
4. 點擊 **安裝** 按鈕。
</details>
@@ -418,10 +416,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
- "tools": [
- "get-library-docs",
- "resolve-library-id"
- ]
+ "tools": ["get-library-docs", "resolve-library-id"]
}
}
}
@@ -494,7 +489,7 @@ claude mcp add context7 -- npx -y @upstash/context7-mcp
<details>
<summary><b>在 Windows 安裝</b></summary>
-Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)。其他編輯器同理,請參考 `command` 與 `args` 設定。
+Windows 的設定與 Linux 或 macOS 略有不同(_範例以 Cline 為例_)。其他編輯器同理,請參考 `command` 與 `args` 設定。
```json
{
@@ -582,11 +577,8 @@ Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)
```json
{
- "command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp@latest"
- ]
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
}
```
@@ -609,6 +601,7 @@ Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)
}
}
```
+
</details>
<details>
@@ -630,6 +623,7 @@ Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)
}
}
```
+
</details>
<details>
@@ -671,10 +665,7 @@ Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)
{
"Context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
+ "args": ["-y", "@upstash/context7-mcp"],
"env": {},
"working_directory": null,
"start_on_launch": true
@@ -734,10 +725,7 @@ Windows 的設定與 Linux 或 macOS 略有不同(*範例以 Cline 為例*)
"mcpServers": {
"Context7": {
"command": "npx",
- "args": [
- "-y",
- "@upstash/context7-mcp"
- ],
+ "args": ["-y", "@upstash/context7-mcp"],
"env": {},
"disabled": false,
"autoApprove": []
@@ -769,12 +757,14 @@ command = "npx"
詳情請參考 [LM Studio MCP 支援](https://lmstudio.ai/blog/lmstudio-v0.3.17)。
#### 一鍵安裝:
+
[![將 MCP Server context7 加入 LM Studio](https://files.lmstudio.ai/deeplink/mcp-install-light.svg)](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)
#### 手動設定:
1. 前往 `Program`(右側)> `Install` > `Edit mcp.json`
2. 貼上以下設定:
+
```json
{
"mcpServers": {
@@ -785,6 +775,7 @@ command = "npx"
}
}
```
+
3. 點擊 `Save` 套用變更。
4. 可於右側 `Program` 下方或聊天框底部的插頭圖示切換 MCP 伺服器開關。