Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Motion sensor for AI agents: tells when a screen region changes or goes still. Scores, never pixels.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
PIR_CAPTURE_CMD, PIR_SELECT_CMD, PIR_WINDOW_GEOMETRY_CMD, PIR_PICK_WINDOW_CMD, PIR_MAX_WAIT_MSต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"pir": {
"command": "npx",
"args": [
"-y",
"pir-mcp"
],
"env": {
"PIR_CAPTURE_CMD": "ใส่ค่าของคุณ",
"PIR_SELECT_CMD": "ใส่ค่าของคุณ",
"PIR_WINDOW_GEOMETRY_CMD": "ใส่ค่าของคุณ",
"PIR_PICK_WINDOW_CMD": "ใส่ค่าของคุณ",
"PIR_MAX_WAIT_MS": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add pir --env PIR_CAPTURE_CMD='ใส่ค่าของคุณ' --env PIR_SELECT_CMD='ใส่ค่าของคุณ' --env PIR_WINDOW_GEOMETRY_CMD='ใส่ค่าของคุณ' --env PIR_PICK_WINDOW_CMD='ใส่ค่าของคุณ' --env PIR_MAX_WAIT_MS='ใส่ค่าของคุณ' -- npx -y pir-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"pir": {
"command": "npx",
"args": [
"-y",
"pir-mcp"
],
"env": {
"PIR_CAPTURE_CMD": "ใส่ค่าของคุณ",
"PIR_SELECT_CMD": "ใส่ค่าของคุณ",
"PIR_WINDOW_GEOMETRY_CMD": "ใส่ค่าของคุณ",
"PIR_PICK_WINDOW_CMD": "ใส่ค่าของคุณ",
"PIR_MAX_WAIT_MS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"pir": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pir-mcp"
],
"env": {
"PIR_CAPTURE_CMD": "ใส่ค่าของคุณ",
"PIR_SELECT_CMD": "ใส่ค่าของคุณ",
"PIR_WINDOW_GEOMETRY_CMD": "ใส่ค่าของคุณ",
"PIR_PICK_WINDOW_CMD": "ใส่ค่าของคุณ",
"PIR_MAX_WAIT_MS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
PIR_CAPTURE_CMD envPIR_SELECT_CMD envPIR_WINDOW_GEOMETRY_CMD envPIR_PICK_WINDOW_CMD envPIR_MAX_WAIT_MS envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Solteris-Dev ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, zanadir
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Find what a repository's CI is missing, and which security checks cannot fail the build.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A motion sensor for AI agents.
*"Gives your LLM agents enough info to be a helpful "watcher" without being a privacy nightmare like Windows Recall"* *-Solteris-Dev*
A PIR sensor tells you *that* something moved, never *what*. This is the same idea for a screen: an MCP server that watches named rectangles and answers "did this change?" and "has this gone still?" with a number, a size and a timestamp. No tool in it returns pixels, image files, or anything that could be turned back into a picture.
It exists because an agent driving a desktop keeps needing the same two things: *wake me when the build output moves* and *tell me if this status bar has stopped ticking*. Both are motion questions. Neither needs a screenshot.
still_for_ms, or time out. A short window means "the animation settled, safe to act". A long window on something that should keep changing means it is frozen, and still=true is the alarm.Every comparison reports two numbers over a coarse grid of averaged colour cells (at most 64 across, each at least 4 px), both 0 for identical and 1 for black against white:
metric=peak for a small thing that should tick inside a larger region.Averaging is what makes this a sensor rather than a camera: 64 cells cannot be read.
pir_pick_region carries a purpose line the agent has to write down before you draw.What it *does* reveal, so you can decide whether that is acceptable: that a given rectangle changed, at a given time, by a given magnitude. On a region covering a chat window that is presence information. Choose regions accordingly; the server has no opinion.
The capture itself is delegated to a command you configure, run with your privileges. The default is grim, so nothing here has screen access that you did not already give to grim.
It is on npm as pir-mcp and in the official MCP Registry as io.github.Solteris-Dev/pir-mcp, so most clients can run it with npx -y pir-mcp and no clone:
claude mcp add -s user pir -- npx -y pir-mcp
From source:
git clone https://github.com/Solteris-Dev/pir-mcp
cd pir-mcp && npm install && npm run build
Requires Node 20+ and a screenshot tool that can write binary PPM to stdout.
PIR_CAPTURE_CMD is a template; {x} {y} {w} {h} are substituted and the result runs under sh -c. It must print a binary PPM (P6) to stdout.
| environment | command | |
|---|---|---|
| wlroots / Hyprland / Sway (default) | grim -g "{x},{y} {w}x{h}" -t ppm - | |
| X11 with maim | `maim -g {w}x{h}+{x}+{y} -f png \ | magick png:- ppm:-` |
| X11 with ImageMagick | import -window root -crop {w}x{h}+{x}+{y} +repage ppm:- | |
| macOS | `screencapture -x -R{x},{y},{w},{h} -t png /dev/stdout \ | magick png:- ppm:-` |
Coordinates are whatever the capture tool uses. On a wlroots layout that is the global layout, so an output placed left of the primary has negative x.
PIR_SELECT_CMD runs when an agent calls pir_pick_region or pir_pick_mask and must print x,y wxh. Set it to an empty string to remove those tools entirely.
| environment | command |
|---|---|
| wlroots / Hyprland / Sway (default) | slurp -f "%x,%y %wx%h" |
| X11 | slop -f "%x,%y %wx%h" |
| macOS | see contrib/macos (untested) |
PIR_WINDOW_GEOMETRY_CMD gets {id} substituted and must print x,y wxh for that window; PIR_PICK_WINDOW_CMD must print the id of the window the person chose. Both default to Hyprland (via jq and slurp -r). Set either to an empty string to remove the corresponding tools. Window ids are limited to [A-Za-z0-9_.:-] before they reach a shell.
| environment | geometry | pick | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Hyprland (default) | `hyprctl -j clients \ | jq -r --arg id "{id}" '.[] \ | select(.address==$id) \ | "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"'` | visible windows as slurp boxes, prints the address | ||||
| Sway | `swaymsg -t get_tree \ | jq -r '.. \ | select(.id? == {id}) \ | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"'` | `swaymsg -t get_tree \ | jq -r '.. \ | select(.visible? == true) \ | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height) \(.id)"' \ | slurp -r -f '%l'` |
| X11 | `xdotool getwindowgeometry --shell {id} \ | awk -F= '/^X/{x=$2}/^Y/{y=$2}/^WIDTH/{w=$2}/^HEIGHT/{h=$2}END{print x","y" "w"x"h}'` | xdotool selectwindow |
Only the Hyprland pair has been run; the others are written from the tools' documentation.
claude mcp add -s user pir -- npx -y pir-mcp
claude mcp add -s user pir -- node /path/to/pir-mcp/dist/stdio.js
Blocking calls default to 55 s and are capped by PIR_MAX_WAIT_MS (540 s). Keep the cap under your host's MCP tool timeout; an agent that needs to watch for longer just calls again.
| variable | default | meaning |
|---|---|---|
PIR_REGIONS | unset | JSON file of regions to define at startup |
PIR_THRESHOLD | 0.05 | default change threshold |
PIR_INTERVAL_MS | 500 | default sampling period |
PIR_DEFAULT_WAIT_MS | 55000 | default timeout for blocking calls |
PIR_MAX_WAIT_MS | 540000 | cap for blocking calls |
PIR_CAPTURE_TIMEOUT_MS | 10000 | how long one capture may take |
PIR_SELECT_TIMEOUT_MS | 60000 | how long the person has to draw a selection |
PIR_MAX_CELLS | 64 | grid resolution on the long side; smaller is coarser and more private |
A regions file looks like:
[
{ "name": "bar", "x": 0, "y": 0, "w": 1920, "h": 26, "masks": [{ "x": 1690, "y": 0, "w": 110, "h": 26 }] } ]
The case that produced this: a status bar that occasionally froze for hours while its process looked healthy. The clock in it should change every minute, so a bar that is still for three minutes is a frozen bar.
pir_pick_region name=bar purpose="watch the status bar for a freeze"
pir_wait_for_stillness name=bar still_for_ms=180000 metric=peak timeout_ms=540000
still=true comes back only if the bar stopped; otherwise the call returns still=false at the timeout and the agent calls again. Nothing on the screen was ever seen, and the person drew the rectangle themselves.
contrib/macos/ holds an AppKit rectangle selector and capture recipe, written blind and untested. If you run it on a real Mac, fix what breaks and send it back.
npm test
MIT.