Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Cross-project knowledge graph for MCP — map features across mobile, backend, and admin codebases.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"project-knowledge": {
"command": "npx",
"args": [
"-y",
"project-knowledge-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add project-knowledge -- npx -y project-knowledge-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"project-knowledge": {
"command": "npx",
"args": [
"-y",
"project-knowledge-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"project-knowledge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"project-knowledge-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ผู้ลงทะเบียน (batook22) ไม่ใช่เจ้าของ repo (punic-pillars) อาจเป็นคนอื่นที่นำมาลงต่อ
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 0 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.6) เข้า registry 6 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A cross-project knowledge graph for the Model Context Protocol (MCP). Map features across mobile, backend, and admin codebases so your AI agent has full-stack context when testing, writing code, debugging, or adding features.
npx -y project-knowledge-mcp --knowledge-file ./project-knowledge.json
Then add to your MCP settings:
{
"mcpServers": { "project-knowledge": { "command": "npx", "args": [ "-y", "project-knowledge-mcp", "--knowledge-file", "C:\\projects\\project-knowledge.json" ], "autoApprove": [] } } }
When working on a project with multiple codebases — for example, a React Native mobile app, a NestJS backend, and a Next.js admin panel — the AI agent has no awareness of how a single feature flows across all three. This leads to incomplete context, missed dependencies, and breaking changes that could have been caught earlier.
This MCP server stores a knowledge graph of your features, mapping each workflow step to the relevant screens, endpoints, controllers, and files in every project. The AI agent can then query this graph to understand end-to-end feature flows, detect cross-project impacts before editing files, and keep type definitions synchronized across codebases.
ProductCreateDto ↔ ProductFormSchema)npm install --save-dev project-knowledge-mcp
Or run directly without installing:
npx -y project-knowledge-mcp --knowledge-file ./project-knowledge.json
git clone https://github.com/punic-pillars/project-knowledge-mcp.git
cd project-knowledge-mcp npm install npm run build
All configuration is provided via CLI arguments. No environment variables or configuration files are required.
| Flag | Description | Default |
|---|---|---|
--backend-path | Absolute path to the backend project | — |
--backend-framework | Backend framework (nestjs, nextjs, react-native, or auto) | auto |
--backend-name | Custom name for the backend project | backend |
--mobile-path | Absolute path to the mobile project | — |
--mobile-framework | Mobile framework | auto |
--mobile-name | Custom name for the mobile project | mobile |
--admin-path | Absolute path to the admin project | — |
--admin-framework | Admin framework | auto |
--admin-name | Custom name for the admin project | admin |
--knowledge-file | Absolute path to persist the knowledge JSON | ./project-knowledge.json |
Basic setup — register projects at runtime via tools:
{
"mcpServers": { "project-knowledge": { "command": "npx", "args": [ "-y", "project-knowledge-mcp", "--knowledge-file", "C:\\projects\\project-knowledge.json" ], "autoApprove": [] } } }
Bootstrap setup — pre-register projects at startup:
{
"mcpServers": { "project-knowledge": { "command": "npx", "args": [ "-y", "project-knowledge-mcp", "--knowledge-file", "C:\\projects\\project-knowledge.json", "--backend-path", "C:\\projects\\backend", "--mobile-path", "C:\\projects\\mobile", "--admin-path", "C:\\projects\\admin" ], "autoApprove": [] } } }
The knowledge file is a plain JSON file that stores all registered projects, feature workflows, and type mappings. Understanding where it lives is essential for maintaining a consistent knowledge graph.
If your fullstack projects live in separate directories (e.g., backend/, mobile/, admin/), each IDE window starts the MCP server from a different working directory. Without --knowledge-file, each instance creates its own fragment:
backend/
└── project-knowledge.json ← only backend context
mobile/ └── project-knowledge.json ← only mobile context
admin/ └── project-knowledge.json ← only admin context
This defeats the purpose of cross-project awareness. Always use `--knowledge-file` with an absolute path to point all IDE windows to the same file:
projects/
├── project-knowledge.json ← single source of truth ├── backend/ ├── mobile/ └── admin/
Use the same `--knowledge-file` path in every IDE window, regardless of which sub-project you have open. All instances read and write to the same file, keeping the knowledge graph complete and consistent.
The default path (no --knowledge-file) is only safe when you open the monorepo root — the single directory containing all sub-projects:
my-monorepo/ ← open this in your IDE
├── project-knowledge.json ← created here, covers everything ├── backend/ ├── mobile/ └── admin/
If your projects are in separate repositories or directories, always use --knowledge-file.
Since the knowledge file is plain JSON, you can commit it to version control and share it with your team:
# Track the knowledge graph
git add project-knowledge.json git commit -m "chore: add project knowledge graph"
echo "project-knowledge.json" >> .gitignore
Guideline: One fullstack project = one knowledge file. Use
--knowledge-filewith an absolute path whenever your projects live in separate directories.
| Tool | Description |
|---|---|
register_project | Register a project with name, path, and framework |
remove_project | Remove a registered project |
scan_project | Auto-discover endpoints, screens, or pages from a project |
| Tool | Description |
|---|---|
register_feature | Define a feature with its multi-project workflow steps |
remove_feature | Remove a feature |
get_feature | Retrieve full feature details (compact or verbose, with optional health check) |
| Tool | Description |
|---|---|
search | Search across features, endpoints, files, and screens |
reverse_lookup | Find all cross-project references to a file (graph-registered + scan-discovered), plus which features reference it |
get_context | Retrieve cross-project context for a feature or step (with optional impact analysis) |
| Tool | Description |
|---|---|
register_type_mappings | Register one or more type mappings (accepts single object or array) |
check_type_mapping | Find all files across projects that define or reference a type |
suggest_type_mappings | Auto-detect potential type mappings by scanning all projects |
| Tool | Description |
|---|---|
get_architecture | Explore a project's directory tree with optional filter (path keyword), highlight (content keyword with ★ marker), and showAll (full tree with matches marked) |
| Tool | Description |
|---|---|
validate_knowledge | Check all registered file paths for stale entries; optionally auto-fix with fix=true |
| Tool | Description |
|---|---|
export_knowledge | Confirm the knowledge file path and trigger an explicit save (auto-persist handles this after every mutation) |
import_knowledge | Load knowledge from a JSON file (merge or replace, with preview) |
This walkthrough demonstrates the core workflow using a real multi-project setup (NestJS backend, React Native mobile, Next.js admin panel). Domain names have been anonymized — "products" instead of "stations", "orders" instead of "reports" — but every command shown was run against actual projects.
register_project { name: "backend", path: "C:/projects/backend", framework: "nestjs" }
register_project { name: "mobile", path: "C:/projects/mobile", framework: "react-native" } register_project { name: "admin", path: "C:/projects/admin", framework: "auto" }
Discover endpoints, screens, and pages automatically:
scan_project { projectName: "backend" }
scan_project { projectName: "mobile" } scan_project { projectName: "admin" }
The scanners discover 150+ endpoints, 200+ screens, and multiple admin pages across all registered projects.
Register an auth feature — a straightforward flow that touches all three projects:
register_feature {
name: "auth", description: "Authentication flow — login, register, forgot password, email confirmation", workflow: [ { step: 1, name: "Login", description: "User logs in with email and password", mobile: { screen: "LoginScreen", api: "POST /api/v1/auth/email/login" }, backend: { endpoint: "POST /api/v1/auth/email/login", controller: "AuthController", file: "src/auth/auth.controller.ts" }, admin: { page: "/login", file: "src/pages/Login" } }, { step: 2, name: "Register", description: "User registers a new account", mobile: { screen: "RegisterScreen", api: "POST /api/v1/auth/email/register" }, backend: { endpoint: "POST /api/v1/auth/email/register", controller: "AuthController", file: "src/auth/auth.controller.ts" } }, { step: 3, name: "Email Confirmation", description: "Confirm email address", mobile: { api: "POST /api/v1/auth/email/confirm" }, backend: { endpoint: "POST /api/v1/auth/email/confirm", controller: "AuthController", file: "src/auth/auth.controller.ts" } }, { step: 4, name: "Forgot Password", description: "Request password reset", mobile: { screen: "ForgotPasswordScreen", api: "POST
ตัดมาแค่ช่วงต้น อ่านต่อใน repo