ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

AI Context Kit

โดย ofershapรุ่น 0.1.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ofershap/ai-context-kit

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Lint, measure, and sync AI context files across Cursor, Claude Code, Copilot.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "ai-context-kit": {
      "command": "npx",
      "args": [
        "-y",
        "ai-context-kit"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add ai-context-kit -- npx -y ai-context-kit

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "ai-context-kit": {
      "command": "npx",
      "args": [
        "-y",
        "ai-context-kit"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "ai-context-kit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ai-context-kit"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ofershap ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32476 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 4% ของอีก 32476 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32476 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

AI Context Kit ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 8 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, zanadir

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

zanadir

โดย MustacheCase

Find what a repository's CI is missing, and which security checks cannot fail the build.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

ai-context-kit

How do you measure the token cost of your context?

You spent hours writing the perfect .md context file, just to find out that your agent got worse .

That's not a bug. That's what happens when nobody measures the cost of context.


You write a CLAUDE.md. Then someone adds .cursor/rules/. Then a teammate drops in an AGENTS.md. Then someone copies in a .cursorrules file from a blog post. Nobody removes the old ones.

Six months later your project has four context files that overlap, contradict each other, and dump 8,000 tokens of directory listings and "follow best practices" into every conversation. Your agent follows all of it. It gets slower. It gets confused. You blame the model.

An ETH Zurich study (February 2026) measured what actually happens when you give agents context files:

  • Auto-generated context files reduced task success compared to providing nothing
  • Human-written ones only improved accuracy by 4%
  • Inference costs jumped 20%+ from wasted tokens
  • Performance dropped on some models because agents got too obedient - following unnecessary instructions instead of solving the actual problem

I kept hitting this in my own projects, so I built ai-context-kit - a toolkit to treat context like a budget. Measure it, trim it, inject only what the current task needs.

import { loadRules, measure, lint, select } from "ai-context-kit";

const rules = await loadRules("./");

measure(rules, 4000); // what does your context cost? lint(rules); // conflicts? duplicates? dead weight? select(rules, { task: "fix auth bug", // only inject what matters budget: 2000, // stay within token budget });


Quick Start

npm install ai-context-kit

Run the CLI on any project to see what you're actually injecting:

npx ai-context-kit measure
ai-context-kit measure - 6 rule file(s)

Total: 4,821 tokens

############ 2,100 tokens (44%) - .cursor/rules/conventions.mdc ######## 1,200 tokens (25%) - CLAUDE.md

890 tokens (18%) - .cursor/rules/api-patterns.mdc

340 tokens (7%) - AGENTS.md

180 tokens (4%) - .cursor/rules/testing.mdc

111 tokens (2%) - .github/copilot-instructions.md

Then lint it:

npx ai-context-kit lint
ai-context-kit lint - 6 rule file(s)

[!] .cursor/rules/conventions.mdc Rule is 2100 tokens. Consider splitting to keep each file under 2000 tokens.

[x] CLAUDE.md Conflicts with AGENTS.md: "always use semicolons" vs "never use semicolons"

[!] CLAUDE.md Duplicated line also found in .cursor/rules/conventions.mdc. Duplicates waste tokens.

[i] AGENTS.md Contains vague instruction matching "follow best practices". Specific instructions produce better results than general advice.

Score: 70/100 (FAILED)

That's the difference between guessing and knowing.


What's Different

Other approachesai-context-kit
Context costNobody measures itToken count per file with budget check
ConflictsYou find out when the agent does something weirdDetects contradictions across all files automatically
DuplicatesSame rule in 3 files, 3x the tokensFlagged and scored
Task relevanceEvery rule injected every timeselect() picks only what matters for the current task
Multi-toolLocked to one IDE's formatWorks across Cursor, Claude Code, Copilot, Windsurf, Cline
CIHope for the bestlint exits with code 1 on errors. Drop it in your pipeline

What This Answers

  1. How much context am I injecting? Token count per file, percentage breakdown, budget check
  2. Are my rules fighting each other? Conflict detection across all files and formats
  3. What's wasting tokens? Directory listings, duplicate content, vague advice
  4. Which rules matter for this task? Task-relevant selection with token budget

How It Works

ai-context-kit reads every context file format in the ecosystem, parses frontmatter, estimates token cost, and gives you tools to analyze and manage them.

loadRules()Auto-detects .cursor/rules/, .cursorrules, CLAUDE.md, AGENTS.md, copilot-instructions.md, .windsurfrules, .clinerules
measure()Token cost per rule, percentage of total, budget check
lint()Conflicts, duplicates, bloat, vague instructions, useless directory trees. Scores 0-100
select()Picks rules relevant to the current task. Respects a token budget. alwaysApply rules first, then by relevance
sync()Single source of truth. Write once in .cursor/rules/, sync to CLAUDE.md, AGENTS.md, and the rest
init()Starter template with tips from the research

API

loadRules(rootDir?)
const rules = await loadRules("./");

// Finds every context file in the project

const rules = await loadRules(".cursor/rules/"); // Or load from a specific directory

Returns RuleFile[] with parsed frontmatter, body, format, path, and token count.

measure(rules, budget?)
const report = measure(rules, 4000);

report.totalTokens; // 3847 report.overBudget; // false report.rules; // sorted by size, each with tokens + percentage

lint(rules)
const report = lint(rules);

report.score; // 85/100 report.passed; // true (no errors, warnings don't fail) report.issues; // array of { rule, path, severity, message }

What the linter catches:

RuleSeverityWhat it finds
token-budgetwarning/errorFiles over 2,000 tokens (warning) or 5,000 (error)
empty-rulewarningFiles too short to do anything
duplicate-contentwarningSame instruction repeated across files
conflicterror"always use X" in one file, "never use X" in another
directory-listingwarning10+ line directory trees that agents don't need
vague-instructioninfo"follow best practices", "write clean code", "be consistent"
select(rules, options)

The core insight from the research: don't inject everything. Pick what matters.

const relevant = select(rules, {

task: "fix auth bug in /api/auth", budget: 2000, tags: ["security", "api"], exclude: ["style"], });

Scoring: alwaysApply: true in frontmatter gets highest priority. Then task words matched against file paths and content. Then tag matches. Budget is respected - highest-scored rules are included first until the budget runs out.

sync(options)

Write rules once, sync everywhere.

await sync({

source: ".cursor/rules/", targets: ["CLAUDE.md", "AGENTS.md", ".github/copilot-instructions.md"], });

Supports dryRun: true to preview changes without writing.

init(options?)
await init({ format: "cursor-rules" });

// Creates .cursor/rules/conventions.mdc with research-backed starter template


CLI

npx ai-context-kit lint                    # find issues

npx ai-context-kit lint --json # machine-readable output npx ai-context-kit measure # token cost breakdown npx ai-context-kit measure --budget 4000 # check against budget npx ai-context-kit sync --source .cursor/rules/ --target CLAUDE.md,AGENTS.md npx ai-context-kit init # scaffold starter rules npx ai-context-kit init --format claude-md

All commands support --path to point at a different project root. lint exits with code 1 on errors (warnings pass).


Use with Vercel AI SDK / LangChain / Custom Agents

This isn't just for Cursor. If you're building agents with Vercel AI SDK, LangChain, or your own framework, ai-context-kit solves the same problem: how much context are you stuffing into the system prompt, and is it helping or hurting?

import { loadRules, select } from "ai-context-kit";

import { generateText } from "ai";

const allRules = await loadRules("./rules");

const relevant = select(allRules, { task: userMessage, budget: 3000, });

const systemPrompt = relevant.map((r) => r.body).join("\n\n");

const { text } = await generateText({ model: openai("gpt-4o"), system: systemPrompt, prompt: userMessage, });

Any framework that takes a system prompt string. Any rules stored as markdown files.


Supported Formats

FormatFileUsed by

| Cursor (modern) | .cursor/rules/*.mdc

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx