Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Scan code for Korean compliance risks — PIPA/개인정보보호법, Network Act, Credit Info. Not legal advice.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"klaws": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/rostradamus/klaws:0.1.6"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add klaws -- docker run -i --rm ghcr.io/rostradamus/klaws:0.1.6วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"klaws": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/rostradamus/klaws:0.1.6"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"klaws": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/rostradamus/klaws:0.1.6"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub rostradamus ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.6) เข้า registry 4 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Docker ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Verbaly
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.
i18n for coding agents: extract, check and translate an app's text, with drafts a person approves
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
한국어
Korean law compliance risk scanner for codebases. Scans source code for patterns that may indicate compliance risks under Korean law and maps findings to specific legal provisions. Runs as an MCP server (so AI coding assistants can scan on request) and as a standalone CLI.
Currently covers PIPA (Personal Information Protection Act), the Network Act (정보통신망법), the Credit Information Act (신용정보법), and the E-Commerce Act (전자상거래법).
Disclaimer: klaws identifies possible compliance risks for review. It does not constitute legal advice. Consult qualified legal counsel for definitive guidance.
Privacy: klaws analyzes code locally and transmits nothing. The only outbound network call is the optional
--livelaw lookup to law.go.kr; without that flag it is fully offline. See Privacy & Security.
# Scan the current directory with Docker — no install needed
docker run --rm -v "$PWD":/src:ro ghcr.io/rostradamus/klaws scan /src
klaws scan ./my-project # scan a directory klaws scan ./MyService.java # scan a single file
No toolchain required — the image is published to GitHub Container Registry and works identically on macOS, Linux, and Windows:
# Scan the current directory (mount it read-only at /src)
docker run --rm -v "$PWD":/src:ro ghcr.io/rostradamus/klaws scan /src
docker run --rm -v "$PWD":/src:ro ghcr.io/rostradamus/klaws:0.1.6 scan /src
Download the archive for your platform from the latest release, extract it, and move klaws onto your PATH.
go install github.com/rostradamus/klaws/cmd/klaws@latest
Requirements: Go 1.23+
git clone https://github.com/rostradamus/klaws.git
cd klaws go build -o klaws ./cmd/klaws/
Verify the install:
klaws --version
# Scan a directory (default: *.java files)
klaws scan ./src
klaws scan ./src --pattern "*.kt"
klaws scan ./src --format text
klaws scan ./src --format sarif > klaws.sarif
klaws scan ./src --fail-on HIGH
klaws scan ./src --laws ./my-laws.yaml
klaws scan report
Target: ./testdata Files: 4 Findings: 7
--- Finding 1 --- Detector: PIPA-CST-001 Risk: HIGH Location: testdata/MemberController.java:10 Snippet: @PostMapping("/register") Message: Endpoint accepts possible personal data without apparent consent mechanism — may require review under PIPA Article 15 Laws: PIPA-15
--- Finding 2 --- Detector: PIPA-ENC-001 Risk: HIGH Location: testdata/MemberEntity.java:11 Snippet: private String residentNumber; Message: Possible unencrypted personal identifier (residentNumber) — may require review under PIPA Article 24-2 Laws: PIPA-24-2, PIPA-29
--- Finding 3 --- Detector: PIPA-LOG-001 Risk: MEDIUM Location: testdata/UserService.java:11 Snippet: log.info("User registered: " + email); Message: Possible personal data (email) in log output — may require review under PIPA Article 29 Laws: PIPA-29
# Look up from bundled database
klaws law PIPA-15
klaws law PIPA-15 --live
klaws detectors
[
{ "id": "PIPA-LOG-001", "name": "Personal Data Logging Risk", "description": "Detects log statements that may contain personal data fields", "related_laws": ["PIPA-29"] }, { "id": "PIPA-ENC-001", "name": "Unencrypted Personal Data Risk", "description": "Detects personal identifier fields stored without apparent encryption", "related_laws": ["PIPA-24-2", "PIPA-29"] }, { "id": "PIPA-CST-001", "name": "Missing Consent Check Risk", "description": "Detects endpoints accepting personal data without apparent consent verification", "related_laws": ["PIPA-15"] } ]
| ID | Name | What it looks for | Risk | Related Law |
|---|---|---|---|---|
PIPA-LOG-001 | Personal Data Logging | log.*() calls containing personal data field names (email, phone, SSN, password) | MEDIUM | PIPA Art. 29 |
PIPA-ENC-001 | Unencrypted Personal Data | Sensitive identifier fields (resident number, SSN) without encryption annotations or calls | HIGH | PIPA Art. 24-2, 29 |
PIPA-CST-001 | Missing Consent Check | @PostMapping/@PutMapping endpoints accepting personal data without consent verification | HIGH | PIPA Art. 15 |
NIA-MKT-001 | Marketing Message Consent | Advertising/marketing message dispatch (send/push) without an apparent opt-in consent check | MEDIUM | Network Act Art. 50 |
CIA-ENC-001 | Unprotected Credit Information | Credit/financial identifier fields (card number, account number, credit score) without encryption or masking | HIGH | Credit Information Act Art. 19 |
ECA-RET-001 | Transaction Record Retention | Transaction record fields (order/payment IDs) stored without apparent retention or preservation handling | MEDIUM | E-Commerce Act Art. 6 |
PIPA-RET-001 | Personal Data Retention | Personal data fields (email, phone, resident number) stored without apparent destruction or retention-limit handling | MEDIUM | PIPA Art. 21 |
PIPA-XBR-001 | Third-Party Data Transfer | Personal data sent to a third-party or external endpoint (outbound call to an external URL/partner) without an apparent consent check | HIGH | PIPA Art. 17 |
Detectors use regex-based pattern matching. They support both English and Korean field names (e.g., email/이메일, residentNumber/주민번호, consent/동의).
klaws can run as an MCP server, making its scanning capabilities available to AI coding assistants.
klaws serve
| Tool | Description |
|---|---|
scan_directory | Scan a directory for compliance risks |
scan_file | Scan a single file |
list_detectors | List all available detectors |
get_law_reference | Look up a Korean law provision by ID |
All clients use the same launch command: klaws serve over stdio. Use the absolute path to the binary (run which klaws, or where klaws on Windows, to find it), or just klaws if it is on your PATH. Prefer not to install anything? Use the Docker variant below — it works in any client that supports stdio MCP servers.
Claude Code — ~/.claude/settings.json:
{
"mcpServers": { "klaws": { "command": "klaws", "args": ["serve"] } } }
Or add it in one command:
claude mcp add klaws -- klaws serve
Claude Desktop — claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": { "klaws": { "command": "klaws", "args": ["serve"] } } }
Cursor — ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": { "klaws": { "command": "klaws", "args": ["serve"] } } }
VS Code — .vscode/mcp.json:
{
"servers": { "klaws": { "command": "klaws", "args": ["serve"] } } }
Once connected, ask your assistant something like *"scan this directory for Korean compliance risks with klaws."*
No binary install needed — swap the command/args for a docker run that mounts the code you want scannable. The -i flag keeps stdin open for the stdio transport; --scan-root /src confines scans to the mounted directory:
{
"mcpServers": { "klaws": { "command": "docker", "args": [ "run", "--rm", "-i", "-v", "/absolute/path/to/your/project:/src:ro", "ghcr.io/rostradamus/klaws:latest", "serve", "--scan-root", "/src" ] } } }
Point the assistant at paths under /src (the container-side mount), e.g. *"scan /src for Korean compliance risks."*
By default klaws serve uses stdio (local). To run it as a remote MCP server over HTTP, pass --http:
klaws serve --http :8080
docker run --rm -p 8080:8080 ghcr.io/rostradamus/klaws serve --http :8080
The MCP endpoint is then available at http:// :8080/mcp (Streamable HTTP transport). Point an HTTP-capable MCP client at that URL.
klaws serve --http :8080 \
--auth-token "$(openssl rand -hex 32)" \ --scan-root /workspace
--auth-token — requires Authorization: Bearer on every HTTP request; unauthenticated requests get 401. Can also be supplied via the KLAWS_AUTH_TOKEN environment variable. Applies to --http only.--scan-root — restricts scan_directory / scan_file to paths within ; requests for paths outside it are rejected. (Also honored in stdio mode.)Notes:
-
--auth-tokenprovides bearer auth but not TLS. For untrusted networks, still terminate TLS at a reverse proxy / gateway in front of klaws.
- The
scan_directoryandscan_filetools read the server's filesystem (the paths you pass resolve on the host running klaws). For remote scanning, run klaws where the code lives (e.g. a CI runner with the repo checked out) and set--scan-rootto that checkout. Theget_law_referenceandlist_detectorstools have no filesystem dependency.
klaws ships with 40 articles across 4 Korean laws embedded in the binary (no external files needed):
| ID | Article | Topic |
|---|---|---|
PIPA-15 | Art. 15 | Collection and use of personal information |
PIPA-17 | Art. 17 | Provision to third parties |
PIPA-18 | Art. 18 | Restriction on use beyond purpose |
PIPA-21 | Art. 21 | Destruction of personal information |
PIPA-23 | Art. 23 | Restriction on sensitive information |
PIPA-24 | Art. 24 | Restriction on unique identification info |
PIPA-24-2 | Art. 24-2 | Restrictions on resident registration numbers |
PIPA-29 | Art. 29 | Duty of safety measures |
PIPA-30 | Art. 30 | Privacy policy |
PIPA-34 | Art. 34 | Notification of data breach |
| ID | Article | Topic |
|---|---|---|
NIA-22 | Art. 22 | Consent for collection/use of personal info |
NIA-23 | Art. 23 | Restriction on collection |
NIA-23-2 | Art. 23-2 | Restriction on resident registration numbers |
NIA-24 | Art. 24 | Restriction on use |
| NIA-24-2 | Art
ตัดมาแค่ช่วงต้น อ่านต่อใน repo