You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting started with SpecLock MCP tools (51 tools explained)
SpecLock ships as an MCP (Model Context Protocol) server with 51 tools that give AI assistants persistent memory and constraint enforcement. Here's a quick overview of the key categories.
Session Management
These tools handle cross-session continuity:
Tool
What it does
speclock_session_briefing
Loads all project context at session start — goal, locks, decisions, history
speclock_list_sessions
Shows previous session history
speclock_session_summary
Generates a summary of what happened in the current session
speclock_set_goal
Sets or updates the project's current goal
Constraint Management (Locks)
The core of SpecLock — persistent, enforceable rules:
Tool
What it does
speclock_add_lock
Creates a new constraint (e.g., "Never remove auth middleware")
speclock_add_typed_lock
Creates a typed constraint (architecture, security, data, etc.)
speclock_remove_lock
Removes a constraint (with confirmation)
speclock_list_typed_locks
Lists all constraints by type
speclock_strengthen
Makes an existing constraint stricter
speclock_override_lock
Temporarily overrides a constraint with audit trail
Protection & Auditing
Detect violations before they ship:
Tool
What it does
speclock_protect
Scans codebase for constraint violations
speclock_check_conflict
Checks if a proposed change conflicts with any lock
speclock_check_typed
Checks a specific typed constraint
speclock_semantic_audit
Deep semantic analysis — catches euphemisms and indirect violations
speclock_audit
Full audit report
speclock_verify_audit
Verifies audit integrity
Code Review
Integrate into your review workflow:
Tool
What it does
speclock_review_patch
Reviews a patch/PR against all constraints
speclock_review_patch_diff
Reviews a git diff against constraints
speclock_parse_diff
Parses a diff to understand what changed
speclock_blast_radius
Analyzes impact of a proposed change
Decision Tracking
Remember why choices were made:
Tool
What it does
speclock_add_decision
Records a technology or design decision with rationale
speclock_add_note
Adds a general note to the project context
speclock_log_change
Logs what was changed and why
Drift Detection
Catch slow erosion of your architecture:
Tool
What it does
speclock_detect_drift
Detects architectural drift from original design
speclock_drift_score
Quantifies how much the project has drifted
speclock_coverage
Shows which parts of the codebase are covered by constraints
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Getting started with SpecLock MCP tools (51 tools explained)
SpecLock ships as an MCP (Model Context Protocol) server with 51 tools that give AI assistants persistent memory and constraint enforcement. Here's a quick overview of the key categories.
Session Management
These tools handle cross-session continuity:
speclock_session_briefingspeclock_list_sessionsspeclock_session_summaryspeclock_set_goalConstraint Management (Locks)
The core of SpecLock — persistent, enforceable rules:
speclock_add_lockspeclock_add_typed_lockspeclock_remove_lockspeclock_list_typed_locksspeclock_strengthenspeclock_override_lockProtection & Auditing
Detect violations before they ship:
speclock_protectspeclock_check_conflictspeclock_check_typedspeclock_semantic_auditspeclock_auditspeclock_verify_auditCode Review
Integrate into your review workflow:
speclock_review_patchspeclock_review_patch_diffspeclock_parse_diffspeclock_blast_radiusDecision Tracking
Remember why choices were made:
speclock_add_decisionspeclock_add_notespeclock_log_changeDrift Detection
Catch slow erosion of your architecture:
speclock_detect_driftspeclock_drift_scorespeclock_coverageConnecting to Claude Code
Add to your Claude Code MCP config:
{ "mcpServers": { "speclock": { "command": "npx", "args": ["-y", "speclock", "mcp"] } } }Connecting to Cursor
Add to
.cursor/mcp.jsonin your project:{ "mcpServers": { "speclock": { "command": "npx", "args": ["-y", "speclock", "mcp"] } } }Once connected, the AI assistant automatically uses SpecLock tools to maintain context and enforce your rules.
SpecLock is free and MIT licensed. Install:
npx speclock initBeta Was this translation helpful? Give feedback.
All reactions