Lintsure
Compliance readiness checks for code: EU AI Act, GDPR, SOC 2, ISO 27001. Local. Not legal advice.
作者提供的说明(英文原文)
Scan code for Korean compliance risks — PIPA/개인정보보호법, Network Act, Credit Info. Not legal advice.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 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"
]
}
}
}在终端中运行这条命令
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"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"klaws": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/rostradamus/klaws:0.1.6"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 rostradamus 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.6)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:Lintsure, INDEC Argentina (no oficial), EcuDataMCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Compliance readiness checks for code: EU AI Act, GDPR, SOC 2, ISO 27001. Local. Not legal advice.
Argentina's official statistics (INDEC): inflation, wages, poverty, trade, population. No signup.
Ecuador's open government data for AI assistants: CKAN, SRI, BCE, INEC, Supercias, SERCOP and more.
按原文从作者的仓库复制。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
只显示了开头部分;其余内容请在仓库中阅读