BusinessMCP
SpecLock AI Constraint Engine logo

SpecLock AI Constraint Engine

Free forever

sgroy10 · Dev Tools

2k installs

Connect in 1 click

SpecLock AI Constraint Engine is a developer-focused MCP server built to keep AI coding assistants inside the guardrails you define, before code ever reaches production. It ships with 42 MCP tools centered on an AI Patch Firewall — a layer that inspects, validates, and constrains the diffs, patches, and file edits that AI copilots propose. If you're running Claude Code, Cursor, Windsurf, or Cline against a real codebase, SpecLock acts as the policy layer between "the AI wants to change this" and "this change is actually allowed," enforcing spec adherence, dependency rules, and change scope so autonomous coding sessions don't silently drift outside intended boundaries.

At its core, SpecLock is an AI constraint engine: you define specs, invariants, and boundaries (which files, which modules, which architectural rules are off-limits or require review), and the engine evaluates every proposed patch against those constraints before it's applied. This is especially valuable for teams doing multi-file refactors, agentic coding loops, or long-running autonomous sessions where a coding agent might otherwise touch code outside its assigned task. The AI Patch Firewall specifically targets the failure mode where an LLM-based coding tool makes a plausible-looking but out-of-scope or unsafe edit — catching it at the patch level rather than after a broken PR lands.

Hosted through BusinessMCP.com, SpecLock becomes one tool among many exposed through a single unified MCP endpoint at /api/mcp, authenticated with your mcph_* Bearer key. Instead of wiring SpecLock separately into Claude, Cursor, Windsurf, and Cline and managing four different integrations, you connect it once through BusinessMCP and every model-agnostic AI agent your team uses can call its 42 tools consistently. That unification is the point: your constraint policies, patch history, and firewall decisions become visible in the same business-intelligence dashboard where you already track usage across your other connected tools, databases, and revenue sources — so engineering leadership can see how often AI-proposed patches were blocked, modified, or approved, alongside the rest of company activity, without standing up separate infrastructure.

Teams typically reach for SpecLock when AI coding agents are given broad repo access but need scoped permission to specific directories, modules, or change types — for example, allowing an agent to modify test files freely while requiring human review for anything touching authentication or billing code. It's also useful for enforcing coding standards and architectural specs across a team using multiple AI coding tools, since the constraint rules live centrally rather than being re-implemented per editor. Because it's cookieless and GDPR-friendly by design, it fits naturally into engineering environments with data-handling requirements, and because it's model-agnostic, switching from one coding assistant to another (or running several in parallel) doesn't require re-establishing your constraint policies — they travel with the hosted MCP server, not the client.

$ npx mcphosting-cli add sgroy10-speclock

Just say it in a thread

No configs, no docs. Once connected, these are the kinds of messages your agents act on.

"Checks a proposed code patch against defined constraint rules and returns pass/fail with violation details — and give me the highlights."

"Creates or updates a spec/constraint policy scoping which files, modules, or change types are allowed for me, then post a summary in the thread."

"Blocks an in-flight ai-proposed file edit that violates the active firewall policy and flag anything that needs my approval."

What teams use it for

  • Restrict an AI coding agent to specific directories or file types during an autonomous refactor session
  • Enforce architectural or dependency rules automatically before AI-generated patches are applied
  • Give engineering leads visibility into how often AI patches were blocked, flagged, or approved via the BI dashboard
  • Standardize constraint policies once and apply them consistently across Claude Code, Cursor, Windsurf, and Cline
  • Require human review triggers for AI-proposed changes to sensitive modules like auth or billing

Agent-callable tools

validate_patch_against_spec

Checks a proposed code patch against defined constraint rules and returns pass/fail with violation details.

define_constraint_policy

Creates or updates a spec/constraint policy scoping which files, modules, or change types are allowed.

block_unauthorized_edit

Blocks an in-flight AI-proposed file edit that violates the active firewall policy.

list_active_constraints

Returns the current set of constraint rules and scope boundaries applied to a given repo or session.

flag_for_human_review

Marks a patch as requiring manual approval before it can be merged or applied.

get_patch_history

Retrieves a log of previously evaluated patches, including approvals, blocks, and rule matches.

scan_repo_for_violations

Runs a full repository scan to identify existing code that violates current constraint policies.

update_firewall_rules

Modifies the AI Patch Firewall ruleset to add, remove, or adjust enforcement conditions.

Your data stays yours

Credentials live in your vault. We route requests — we never store, log, or train on your data.

Works with every AI

Connect once — portable across Claude, GPT, Gemini, and every local agent you run.

Frequently asked questions

What does the AI Patch Firewall actually block?

It evaluates proposed AI-generated patches against your defined specs and constraints, flagging or blocking edits that fall outside allowed scope, files, or architectural rules before they're applied.

Do I need separate integrations for Cursor, Claude Code, Windsurf, and Cline?

No — when hosted through BusinessMCP, SpecLock is exposed once via the unified /api/mcp endpoint, so any connected coding assistant can call the same 42 tools under one constraint policy.

Can I see constraint decisions alongside my other business data?

Yes, patch approvals, blocks, and firewall activity surface in the same BusinessMCP business-intelligence dashboard used for your other connected tools, so engineering activity isn't siloed from the rest of the company view.

Give your AI team the SpecLock AI Constraint Engine skill

Free forever plan, no credit card. Connected and working in under five minutes.

Connect SpecLock AI Constraint Engine free