AI 코딩 에이전트가 작업을 수행하기 전, 수정 사항, 쉘 명령 및 커밋이 프로젝트 규칙을 준수하는지 확인하도록 제약 조건을 강제합니다.
다른 이름 sgroy10/speclock
- 스타
- 26
- Tools
- 49
- 다운로드, 30일
- —
- 최신 버전
- 5.5.3
- 마지막 커밋
- 2026년 8월 18일
- 라이선스
- MIT
SpecLock MCP란?
SpecLock은(는) MCP server입니다. AI 코딩 에이전트가 작업을 수행하기 전, 수정 사항, 쉘 명령 및 커밋이 프로젝트 규칙을 준수하는지 확인하도록 제약 조건을 강제합니다. 49개 도구를 제공합니다. 예: speclock_init, speclock_get_context, speclock_set_goal.
프로젝트 README에서 생성된 요약
SpecLock MCP server 정보
SpecLock은 Claude Code, Cursor, Windsurf, Codex와 같은 도구를 사용하는 개발자가 AI 코딩 에이전트의 프로젝트 제약 조건 위반을 방지할 수 있도록 지원합니다. 표준 규칙 파일은 컨텍스트를 제공하지만, 긴 세션 동안 무시되거나 무효화될 수 있습니다. 이 도구는 CLAUDE.md, AGENTS.md 또는 .cursorrules와 같은 파일의 지침을 에이전트가 수정, 쉘 명령 또는 git commit을 실행하기 전에 실행되는 활성 체크 기능으로 변환합니다.
사용자는 npx 명령을 사용하여 서버를 로컬에 설정하고, 경고를 위한 권고 모드 또는 강제 차단을 위한 strict 모드로 실행할 수 있습니다. 단순한 키워드 매칭 대신 의미론적 충돌 감지를 사용하여 규칙을 우회하려는 완곡한 표현이나 복합 요청과 같은 간접적인 위반을 잡아냅니다. 이 서버는 Model Context Protocol을 통해 통합되어 다양한 코딩 환경에 51개의 도구를 노출합니다. 계정이 필요 없는 로컬 우선 솔루션으로 작동하며, HMAC 체인을 통해 결정 사항을 기록하는 감사 추적을 제공합니다.
활용 사례
- 1아키텍처 제약 조건 강제AI 에이전트가 인증 시스템과 같이 코드베이스의 특정 부분을 변경하는 것을 방지합니다.
- 2의미론적 규칙 위반 감지AI가 데이터 삭제와 같이 금지된 작업을 수행하기 위해 간접적인 언어를 사용하는 경우를 식별합니다.
- 3커밋 시 코드 보호git commit 단계에서 규칙 준수 여부를 확인하는 보안 계층을 추가합니다.
- 4AI 의사 결정 감사규칙이 확인되거나 차단된 모든 시점에 대해 변조가 불가능한 기록을 유지합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
SpecLock MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 SpecLock MCP 설치
$ claude mcp add speclock -- npx -y speclockCursor에 SpecLock MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"speclock": {
"command": "npx",
"args": [
"-y",
"speclock"
]
}
}
}VS Code에 SpecLock MCP 설치
.vscode/mcp.json
{
"servers": {
"speclock": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"speclock"
]
}
}
}VS Code CLI에 SpecLock MCP 설치
$ code --add-mcp '{"name":"speclock","type":"stdio","command":"npx","args":["-y","speclock"]}'Claude Desktop에 SpecLock MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"speclock": {
"command": "npx",
"args": [
"-y",
"speclock"
]
}
}
}Codex에 SpecLock MCP 설치
$ codex mcp add speclock -- npx -y speclockCodex config.toml에 SpecLock MCP 설치
~/.codex/config.toml
[mcp_servers.speclock] command = "npx" args = ["-y", "speclock"]
Gemini CLI에 SpecLock MCP 설치
$ gemini mcp add -s user speclock npx -- -y speclockGemini settings.json에 SpecLock MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"speclock": {
"command": "npx",
"args": [
"-y",
"speclock"
]
}
}
}SpecLock MCP 도구 49
README에서 감지됨speclock_initspeclock_get_contextspeclock_set_goalspeclock_add_lockspeclock_remove_lockspeclock_add_decisionspeclock_add_notespeclock_set_deploy_factsspeclock_check_conflictspeclock_set_enforcementspeclock_override_lockspeclock_override_history
| speclock_init | — | |
| speclock_get_context | — | |
| speclock_set_goal | — | |
| speclock_add_lock | — | |
| speclock_remove_lock | — | |
| speclock_add_decision | — | |
| speclock_add_note | — | |
| speclock_set_deploy_facts | — | |
| speclock_check_conflict | — | |
| speclock_set_enforcement | — | |
| speclock_override_lock | — | |
| speclock_override_history | — |
도구 49개 모두 보기도구 수 줄이기
speclock_semantic_auditspeclock_detect_driftspeclock_auditspeclock_session_briefingspeclock_session_summaryspeclock_log_changespeclock_get_changesspeclock_get_eventsspeclock_checkpointspeclock_repo_statusspeclock_suggest_locksspeclock_healthspeclock_apply_templatespeclock_reportspeclock_verify_auditspeclock_export_compliancespeclock_policy_evaluatespeclock_policy_managespeclock_telemetryspeclock_add_typed_lockspeclock_check_typedspeclock_list_typed_locksspeclock_update_thresholdspeclock_compile_specspeclock_build_graphspeclock_blast_radiusspeclock_map_locksspeclock_review_patchspeclock_review_patch_diffspeclock_parse_diffspeclock_sync_rulesspeclock_list_sync_formatsspeclock_replayspeclock_list_sessionsspeclock_drift_scorespeclock_coveragespeclock_strengthen
| speclock_semantic_audit | — | |
| speclock_detect_drift | — | |
| speclock_audit | — | |
| speclock_session_briefing | — | |
| speclock_session_summary | — | |
| speclock_log_change | — | |
| speclock_get_changes | — | |
| speclock_get_events | — | |
| speclock_checkpoint | — | |
| speclock_repo_status | — | |
| speclock_suggest_locks | — | |
| speclock_health | — | |
| speclock_apply_template | — | |
| speclock_report | — | |
| speclock_verify_audit | — | |
| speclock_export_compliance | — | |
| speclock_policy_evaluate | — | |
| speclock_policy_manage | — | |
| speclock_telemetry | — | |
| speclock_add_typed_lock | — | |
| speclock_check_typed | — | |
| speclock_list_typed_locks | — | |
| speclock_update_threshold | — | |
| speclock_compile_spec | — | |
| speclock_build_graph | — | |
| speclock_blast_radius | — | |
| speclock_map_locks | — | |
| speclock_review_patch | — | |
| speclock_review_patch_diff | — | |
| speclock_parse_diff | — | |
| speclock_sync_rules | — | |
| speclock_list_sync_formats | — | |
| speclock_replay | — | |
| speclock_list_sessions | — | |
| speclock_drift_score | — | |
| speclock_coverage | — | |
| speclock_strengthen | — |
구성
SPECLOCK_ENCRYPTION_KEY
| 이름 | 설명 | 유형 |
|---|---|---|
| SPECLOCK_ENCRYPTION_KEY | — |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨통과
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음통과
README
GitHub에서 보기Why another rules tool? Rules files are context. They can be forgotten, diluted, or overridden during a long coding session. SpecLock turns those rules into checks that run before edits, shell commands, and commits.
See the difference
CLAUDE.md: Never modify the authentication system.
You: Add social login to the login page.
Without SpecLock
Claude: I'll update the auth flow and add an OAuth provider...
With SpecLock (strict mode)
SpecLock: BLOCKED — conflicts with "Never modify the authentication system"
Match: login → auth → authentication
The action was denied before the files changed.
SpecLock uses semantic conflict detection rather than simple keyword matching. It catches indirect actions such as “clean up old patient data,” “streamline checkout,” or “temporarily disable MFA” when they violate an active constraint.
60-second setup
Run this from the project you want to protect:
npx speclock@latest protect # reads existing AI rule files; advisory by default
npx speclock@latest doctor # confirms rules, hooks, and integration
When the advisory output looks right, enable blocking:
npx speclock@latest protect --strict
No account is required. SpecLock runs locally by default, and advisory mode never blocks a change.
Install as a Claude Code plugin
Inside Claude Code, run:
/plugin marketplace add sgroy10/speclock
/plugin install speclock@speclock-marketplace
Then protect the current project once:
npx speclock@latest protect # warnings only
npx speclock@latest protect --strict # block confirmed conflicts
The plugin automatically starts SpecLock's MCP server and checks Claude Code Write, Edit, and Bash actions before execution. It includes all 51 MCP tools and works alongside your existing CLAUDE.md.
Install on other coding agents
SpecLock is packaged for multiple agent ecosystems, but the enforcement level depends on what each host exposes:
| Platform | Install/discovery path | Protection level |
|---|---|---|
| Claude Code | Native marketplace plugin above | Native pre-action checks for Write, Edit, and Bash |
| Gemini CLI | Install this repository as a Gemini extension | MCP-assisted checks plus project context |
| Cursor | Agent Plugin / Cursor marketplace package | MCP-assisted checks plus rules |
| Codex | Repository Codex plugin in plugins/speclock |
MCP-assisted checks plus $speclock-guardrails skill |
| GitHub Copilot CLI | Add this repository as a plugin marketplace | MCP-assisted checks plus bundled plugin context |
| Cline | MCP server; curated marketplace submission in progress | MCP-assisted checks |
| Windsurf | speclock mcp install windsurf |
MCP-assisted checks plus rules |
| Any Git client or CI | speclock protect |
Commit/CI enforcement independent of the coding agent |
MCP-assisted means the agent can call SpecLock before acting; it does not guarantee interception. Use speclock protect --strict and CI when a constraint must be enforced regardless of the client.
SpecLock has a different job from memory and skills: memory recalls context, skills provide procedures, and SpecLock verifies planned actions against explicit constraints. It reduces constraint drift; it cannot guarantee factual correctness or make a model hallucination-free.
Repository installs supported by current clients:
gemini extensions install https://github.com/sgroy10/speclock
copilot plugin marketplace add sgroy10/speclock
copilot plugin install speclock@speclock-marketplace
What you get
| Capability | What it does |
|---|---|
| Pre-action checks | Reviews Claude Code writes, edits, and shell commands before they run |
| Semantic constraints | Detects synonyms, euphemisms, compound requests, and indirect violations |
| Git enforcement | Adds a second guard at commit time |
| Advisory and strict modes | Start with warnings; opt in to hard blocking when ready |
| Audit trail | Records decisions in a tamper-evident HMAC chain |
| MCP integration | Exposes 51 tools to Claude Code, Cursor, Codex, Windsurf, and Cline |
| Shareable save receipts | Shows what SpecLock prevented with speclock wins |
Proven in the open
- 10,000+ npm downloads before the native Claude Code plugin release.
- 1,043 automated tests across 24 suites, including adversarial conflicts, false-positive cases, patch analysis, enforcement, auth, and compliance.
- MIT licensed and inspectable end to end.
- Local-first defaults with optional remote features clearly separated.
Commands you will use most
speclock protect # extract constraints and install project protection
speclock protect --strict # enable hard enforcement
speclock doctor # verify the complete setup
speclock check "action description" # preview whether an action conflicts
speclock add-lock "rule" # add a constraint explicitly
speclock list-locks # inspect active constraints
speclock enforce hard|advisory # switch enforcement mode
speclock mcp install <client> # Claude Code, Cursor, Windsurf, Cline, or Codex
speclock wins # create a shareable save receipt
Full reference: npx speclock@latest help
New in v5.8.0
- Portable Agent Plugin packaging for Cursor-compatible discovery.
- Gemini CLI extension packaging with MCP startup and constraint context.
- Codex plugin with a
$speclock-guardrailsskill and pinned MCP server. - GitHub Copilot CLI compatibility through the repository marketplace.
- Explicit per-platform enforcement labels: native hook, MCP-assisted, or Git/CI.
The Problem
AI coding tools have memory now. Claude Code has CLAUDE.md. Cursor has .cursorrules. Mem0 exists.
But memory without enforcement is useless.
Your AI remembers you use PostgreSQL — then switches to MongoDB because it "seemed better." Your AI remembers your auth setup — then rewrites it while "fixing" a bug. You said "never touch the payment logic" 3 sessions ago — the AI doesn't care.
Remembering is not respecting. No existing tool stops the AI from breaking what you locked.
How It Works
You set constraints. SpecLock enforces them — across sessions, across tools, across teams.
speclock lock "Never modify auth files" → auto-guards src/auth/*.ts
speclock lock "Database must stay PostgreSQL" → catches "migrate to MongoDB"
speclock lock "Never delete patient records" → catches "clean up old data"
speclock lock "Don't touch the payment flow" → catches "streamline checkout"
The semantic engine doesn't do keyword matching. It understands:
- "clean up old data" = deletion (euphemism detection)
- "streamline checkout" = modify payment flow (synonym + concept mapping)
- "temporarily disable logging" = disable logging (temporal evasion detection)
- "Update UI and also drop the users table" = hidden violation (compound splitter)
And it knows what's safe:
- "Enable audit logging" when the lock says "Never disable audit logging" → no conflict (intent alignment)
Quick Start by Platform
Bolt.new / Aider / Any npm Platform
npx speclock setup --goal "Build my app" --template nextjs
Creates SPECLOCK.md, injects rules into package.json, generates .speclock/context/latest.md. The AI reads these automatically.
Claude Code
Install the plugin using the commands above. For MCP-only setup without the
plugin hooks, add this to .mcp.json:
{
"mcpServers": {
"speclock": {
"command": "npx",
"args": ["--yes", "speclock@5.8.0", "serve", "--project", "."]
}
}
}
Cursor / Windsurf / Cline
Same config — add to .cursor/mcp.json or equivalent.
Lovable (No Install)
- Go to Settings → Connectors → New MCP server
- Enter URL:
https://speclock-mcp-production.up.railway.app/mcp - Paste project instructions into Knowledge
Why SpecLock Over Alternatives?
| Claude Memory | Mem0 | .cursorrules |
SpecLock | |
|---|---|---|---|---|
| Remembers context | Yes | Yes | Manual | Yes |
| Blocks the AI from breaking things | No | No | No | Yes |
| Semantic conflict detection | No | No | No | Yes — covered by adversarial tests |
| Tamper-proof audit trail | No | No | No | HMAC-SHA256 chain |
| Hard enforcement (AI cannot proceed) | No | No | No | Yes |
| SOC 2 / HIPAA compliance exports | No | No | No | Yes |
| Encrypted storage (AES-256-GCM) | No | No | No | Yes |
| RBAC + API key auth | No | No | No | 4 roles |
| Policy-as-Code DSL | No | No | No | YAML rules |
| Works on Bolt.new, Lovable, etc. | No | No | No | Yes |
Other tools remember. SpecLock enforces.
Semantic Engine
Not keyword matching — semantic analysis with an optional Gemini Flash hybrid for grey-zone and cross-domain cases. The repository includes adversarial, false-positive, question-framing, patch-gateway, and diff-analysis test suites.
Under the hood: 65+ synonym groups · 80+ euphemism mappings · domain concept maps (fintech, e-commerce, IoT, healthcare, SaaS, payments, gaming, telecom, government) · intent classifier · compound sentence splitter · temporal evasion detector · verb tense normalization · UI cosmetic detection · safe-intent patterns · passive voice parsing — all in pure JavaScript. Gemini Flash hybrid for grey-zone cases ($0.01/1000 checks).
Hard Enforcement
Two modes:
Advisory (default): AI gets a warning, decides what to do
Hard mode: AI is BLOCKED — MCP returns isError, AI cannot proceed
speclock enforce hard # Enable hard mode — violations above threshold are blocked
- Configurable threshold — default 70%. Only HIGH confidence conflicts block.
- Override with reason —
speclock override <lockId> "JIRA-1234: approved by CTO"(logged to audit trail) - Auto-escalation — lock overridden 3+ times → auto-flags for review
Enterprise Security
API Key Auth + RBAC
speclock auth create-key --role developer --name "CI Bot"
# → sk_speclock_a1b2c3... (shown once, stored as SHA-256 hash)
| Role | Read | Write Locks | Override | Admin |
|---|---|---|---|---|
viewer |
Yes | — | — | — |
developer |
Yes | — | With reason | — |
architect |
Yes | Yes | Yes | — |
admin |
Yes | Yes | Yes | Yes |
AES-256-GCM Encryption
export SPECLOCK_ENCRYPTION_KEY="your-secret"
speclock encrypt # Encrypts brain.json + events.log at rest
PBKDF2 key derivation (100K iterations). Authenticated encryption. HIPAA 2026 compliant.
HMAC Audit Chain
Every event gets an HMAC-SHA256 hash chained to the previous event. Modify anything — the chain breaks.
$ speclock audit-verify
✓ Audit chain VALID — 247 events, 0 broken links, no tampering detected.
Compliance Exports
speclock export --format soc2 # SOC 2 Type II report (JSON)
speclock export --format hipaa # HIPAA PHI protection report
speclock export --format csv # All events for auditor spreadsheets
Policy-as-Code
Declarative YAML rules for organization-wide enforcement:
# .speclock/policy.yml
rules:
- name: "HIPAA PHI Protection"
match:
files: ["**/patient/**", "**/medical/**"]
actions: [delete, modify, export]
enforce: block
severity: critical
- name: "No direct DB mutations"
match:
files: ["**/models/**"]
actions: [delete]
enforce: warn
severity: high
Import and export policies between projects. Share constraint templates across your organization.
REST API v2
Real-time constraint checking, patch review, and autonomous systems:
# Patch Gateway (v5.1)
POST /api/v2/gateway/review { description, files, useLLM }
# AI Patch Firewall (v5.2)
POST /api/v2/gateway/review-diff { description, files, diff, options }
POST /api/v2/gateway/parse-diff { diff }
# Typed constraint checking
POST /api/v2/check-typed { metric, value, entity }
POST /api/v2/check-batch { checks: [...] }
# SSE streaming (real-time violations)
GET /api/v2/stream
# Spec Compiler
POST /api/v2/compiler/compile { text, autoApply }
# Code Graph
GET /api/v2/graph/blast-radius?file=src/core/memory.js
GET /api/v2/graph/lock-map
POST /api/v2/graph/build
51 MCP Tools
| Tool | What it does |
|---|---|
speclock_init |
Initialize SpecLock in project |
speclock_get_context |
Full context pack (the key tool) |
speclock_set_goal |
Set project goal |
speclock_add_lock |
Add constraint + auto-guard files |
speclock_remove_lock |
Soft-delete a lock |
speclock_add_decision |
Record architectural decision |
speclock_add_note |
Add pinned note |
speclock_set_deploy_facts |
Record deploy config |
| Tool | What it does |
|---|---|
speclock_check_conflict |
Semantic conflict check against all locks |
speclock_set_enforcement |
Switch advisory/hard mode |
speclock_override_lock |
Override with reason (audit logged) |
speclock_override_history |
View override audit trail |
speclock_semantic_audit |
Analyze git diff against locks |
speclock_detect_drift |
Scan for constraint violations |
speclock_audit |
Audit staged files pre-commit |
| Tool | What it does |
|---|---|
speclock_session_briefing |
Start session + full briefing |
speclock_session_summary |
End session + record summary |
speclock_log_change |
Log a change with files |
speclock_get_changes |
Recent tracked changes |
speclock_get_events |
Full event log (filterable) |
speclock_checkpoint |
Git tag for rollback |
speclock_repo_status |
Branch, commit, diff summary |
| Tool | What it does |
|---|---|
speclock_suggest_locks |
AI-powered lock suggestions |
speclock_health |
Health score + multi-agent timeline |
speclock_apply_template |
Apply constraint template |
speclock_report |
Violation stats + most tested locks |
| Tool | What it does |
|---|---|
speclock_verify_audit |
Verify HMAC chain integrity |
speclock_export_compliance |
SOC 2 / HIPAA / CSV reports |
speclock_policy_evaluate |
Evaluate policy rules |
speclock_policy_manage |
CRUD for policy rules |
speclock_telemetry |
Opt-in usage analytics |
| Tool | What it does |
|---|---|
speclock_add_typed_lock |
Add typed constraint (numerical/range/state/temporal) |
speclock_check_typed |
Check proposed values against typed constraints |
speclock_list_typed_locks |
List all typed constraints |
speclock_update_threshold |
Update typed lock thresholds |
| Tool | What it does |
|---|---|
speclock_compile_spec |
Compile natural language into structured constraints |
speclock_build_graph |
Build/refresh code dependency graph |
speclock_blast_radius |
Calculate blast radius of file changes |
speclock_map_locks |
Map locks to actual code files |
| Tool | What it does |
|---|---|
speclock_review_patch |
ALLOW/WARN/BLOCK verdict for proposed changes |
speclock_review_patch_diff |
Diff-native review with signal scoring + unified verdict |
speclock_parse_diff |
Parse unified diff into structured changes (debug/inspect) |
| Tool | What it does |
|---|---|
speclock_sync_rules |
Sync constraints to Cursor, Claude, Copilot, Windsurf, Gemini, Aider, AGENTS.md |
speclock_list_sync_formats |
List all available sync formats |
speclock_replay |
Replay a session's activity — what AI tried and what was caught |
speclock_list_sessions |
List available sessions for replay |
speclock_drift_score |
0-100 project integrity metric — how much AI deviated from intent |
speclock_coverage |
Lock Coverage Audit — find unprotected code areas |
speclock_strengthen |
Grade locks and suggest stronger versions |
CLI
# Setup
speclock setup --goal "Build my app" --template nextjs
# Constraints
speclock lock "Never modify auth files" --tags auth,security
speclock lock remove <id>
speclock check "Add social login" # Test before doing
# Enforcement
speclock enforce hard # Block violations
speclock override <lockId> "JIRA-1234" # Override with reason
# Audit & Compliance
speclock audit-verify # Verify HMAC chain
speclock export --format soc2 # Compliance report
speclock audit-semantic # Semantic pre-commit
# Git
speclock hook install # Pre-commit hook
speclock audit # Audit staged files
# Templates
speclock template apply safe-defaults # Vibe coding seatbelt (5 locks)
speclock template apply solo-founder # Indie builder essentials (3 locks)
speclock template apply hipaa # HIPAA healthcare (8 locks)
speclock template apply api-stability # API contract protection (6 locks)
speclock template apply nextjs # Next.js constraints
speclock template apply security-hardened # Security hardening
# Sync to AI tools
speclock sync --all # Sync to ALL tools
speclock sync --format cursor # Cursor only
speclock sync --format claude # Claude Code only
speclock sync --preview windsurf # Preview without writing
# Incident Replay
speclock replay # Replay last session
speclock replay --list # List sessions
speclock replay --session <id> # Replay specific session
# Project Health
speclock drift # Drift Score (0-100)
speclock drift --days 7 # Last 7 days only
speclock coverage # Lock Coverage Audit
speclock strengthen # Grade and improve locks
# Share & Stats
speclock wins # Shareable "Save Receipt" (screenshot it!)
speclock wrapped # All-time + monthly recap (alias: recap)
speclock stats # Your local usage dashboard
speclock badge # Print README badges (6 variants + live badge)
# Auth
speclock auth create-key --role developer
speclock auth rotate-key <keyId>
# Policy
speclock policy init # Create policy.yml
speclock policy evaluate --files "src/auth/*" # Test against rules
Full command reference: npx speclock help
Auto-Guard
When you lock something, SpecLock finds related files and injects a warning the AI sees when it opens them:
speclock lock "Never modify auth files"
→ Auto-guarded 2 files:
🔒 src/components/Auth.tsx
🔒 src/contexts/AuthContext.tsx
The AI opens the file and sees:
// ============================================================
// SPECLOCK-GUARD — DO NOT MODIFY THIS FILE
// LOCKED: Never modify auth files
// ONLY "unlock" or "remove the lock" is permission to edit.
// ============================================================
SpecLock MCP 질문
SpecLock MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add speclock -- npx -y speclock를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
SpecLock MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
SpecLock MCP는 어떤 도구를 제공하나요?
49개 도구를 제공합니다. 예: speclock_init, speclock_get_context, speclock_set_goal, speclock_add_lock, speclock_remove_lock.
프로젝트에 SpecLock을 어떻게 설치하나요?
npx speclock@latest protect를 실행하여 기존 AI 규칙 파일을 읽고 권고 보호 기능을 설치한 후, --strict 옵션을 붙여 다시 실행하면 차단 모드를 활성화할 수 있습니다.
SpecLock은 AI 작업을 차단하나요, 아니면 경고만 하나요?
처음에는 경고만 표시하는 권고 모드로 시작하며, strict 모드에서는 파일이 변경되기 전에 확인된 충돌을 차단합니다.
SpecLock은 계정이나 클라우드 연결이 필요한가요?
계정이 필요하지 않습니다. 기본적으로 로컬에서 실행되며, 권고 모드에서는 변경 사항을 절대 차단하지 않습니다.
SpecLock은 몇 개의 MCP 도구를 제공하나요?
MCP 통합을 통해 Claude Code, Cursor, Codex, Windsurf, Cline과 같은 클라이언트에 51개의 도구를 제공합니다.
SpecLock이 간접적이거나 위장된 위반 사항도 잡아낼 수 있나요?
네, 의미론적 충돌 감지(semantic conflict detection)를 사용하여 완곡한 표현, 시간적 회피, 희석 및 복합 요청과 같은 위반 사항을 잡아냅니다.