Git Analytics เครื่องมือนักพัฒนาDev tools
upstash/context7

Context7 แพลตฟอร์มสำหรับปรับปรุงเอกสารโค้ด LLMs และเครื่องมือ AIContext7: Platform for Updating LLMs and AI Code Editor Documentation

เครื่องมือนักพัฒนาDev tools 62,566 ดาวStars 3,041 TypeScript MIT อัปเดตล่าสุดLast push 30 ก.ย. 256930 Sept 2026
upstash/context7

Context7 ช่วยให้เอกสารโค้ดทันสมัยสำหรับ LLMs และ AI โค้ดอีดิเตอร์ ด้วยการใช้เอกสารที่เป็นปัจจุบันจากแหล่งข้อมูลโดยตรง

Context7 ensures up-to-date code documentation for LLMs and AI code editors by utilizing current resources directly from sources.

ไว้ทำอะไร

Context7 แก้ปัญหาเอกสารโค้ดที่ล้าสมัย ซึ่งมักเกิดเมื่อใช้ LLM ในการพัฒนาโปรแกรม โดยดึงข้อมูลและตัวอย่างโค้ดล่าสุดจากแหล่งข้อมูล ทำให้โปรแกรมอ่านเข้าใจเอกสารที่ทันสมัยและถูกต้อง

ทำงานอย่างไร

Context7 ประกอบด้วยสองโหมดการทำงาน: CLI + Skills และ MCP โหมดแรกใช้คำสั่ง 'ctx7' สำหรับค้นหาและดึงเอกสาร ส่วนโหมด MCP ใช้สำหรับการเรียกเครื่องมือเอกสารทางตรง MCP server ให้บริการฟังก์ชันการแปลงชื่อห้องสมุดและการดึงเอกสารในแบบ Context7 CLI รองรับการสืบค้นที่เกี่ยวกับห้องสมุดและคืนค่าพร้อมเอกสาร

โครงสร้างโค้ด

  • packages/cli — คำสั่ง CLI สำหรับการดึงเอกสาร
  • packages/mcp — การทำงานของ MCP server
  • docs/ — เอกสารและไกด์ใช้งาน
  • plugins/ — ปลั๊กอินสำหรับบูรณาการ
  • README.md — คู่มือการใช้งานและการติดตั้งเบื้องต้น

เริ่มใช้งาน

npx ctx7 setup

เหมาะกับงานแบบไหน

  • การดึงเอกสารโค้ดสำหรับโครงการ Next.js หรือ Supabase
  • การปรับปรุงตัวอย่างโค้ดและ API ให้เป็นปัจจุบัน
  • การตั้งค่าสกิลของเอเย่นต์เพื่อการเรียกเอกสาร

ข้อควรรู้

  • แพลตฟอร์มนี้ชุมชนมีส่วนร่วม และอาจไม่สามารถรับรองความถูกต้องของเอกสารทุกชุด
  • รองรับ API key เพื่อความพร้อมในการใช้งานที่สูงขึ้น

What it is for

Context7 addresses the problem of outdated code documentation commonly encountered when using LLMs in software development by fetching the latest information and code examples directly from the sources, ensuring developers work with accurate and current documentation.

How it works

Context7 operates in two modes: CLI + Skills, and MCP. The CLI uses 'ctx7' commands to search and retrieve documentation, while the MCP mode allows direct tool invocation for documentation. The MCP server offers functionalities to resolve library names and fetch documents using Context7-specific methods. The CLI handles library-related queries by returning relevant documentation entries.

Code structure

  • packages/cli — CLI commands for documentation retrieval
  • packages/mcp — MCP server functionality
  • docs/ — Documentation and usage guides
  • plugins/ — Plugins for integration
  • README.md — Usage and installation directions

Getting started

npx ctx7 setup

Good fit for

  • Fetching code documentation for Next.js or Supabase projects
  • Updating code examples and APIs to be current
  • Configuring agent skills for documentation invocation

Things to know

  • The platform is community-driven and may not guarantee the accuracy of all documentation
  • API keys are recommended for higher availability and usage limits

บทวิเคราะห์นี้สร้างจาก README และโค้ดของ repo โดย AI ของ Oneable — ตรวจสอบ license และเอกสารต้นทางก่อนนำไปใช้งานจริงThis breakdown was generated from the repository's README and code by Oneable's AI — check the license and upstream docs before using it in production.

#llm#mcp#mcp-server#vibe-coding

repo อื่นในหมวดเดียวกันMore in this category