Soloknuckle logo

Soloknuckle

Local MCP guardrails for secret scanning, command blocking, test quality checks, flaky-test detection, and machine-readable verdicts.

Install Soloknuckle

Run the project’s own setup commands, in order.

Setup steps from the project

Soloknuckle installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Run
    npx soloknuckle init
    
  2. 2. Install
    npm install -g soloknuckle
    
  3. 3. Install
    git clone https://github.com/z99wE/soloknuckle.git
    

Overview

Soloknuckle MCP server gives Claude Code local tools for production-hygiene checks during AI-assisted development. It scans for secrets, intercepts destructive commands, evaluates test quality through mutation and context checks, detects flaky-test patterns, and returns machine-readable verdicts. The same local engines can also run through the CLI, CI, git hooks, shell, and webhook-based rollback workflows. Reach for it when an agent needs enforceable checks rather than advisory documentation, especially before committing, pushing, or shipping generated code.

Use cases

  • Scan generated diffs for leaked credentials before committing
  • Block destructive shell and git commands issued by an agent
  • Score whether tests detect meaningful code mutations
  • Detect flaky tests and estimate their maintenance cost
  • Gate AI-authored changes with machine-readable verdicts

Key features

  • Local secret scanning for staged code and diffs
  • Destructive-command interception with reasons
  • Mutation testing and context-aware test validation
  • Flaky-test detection with reruns
  • Supply-chain and AI-authorship checks
  • Feature flags, rollback, SBOM, and compliance tooling

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commitTodayMost recent push to the default branch.
MaintenanceActively maintainedStatus declared by the project or listing owner.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Soloknuckle works

What Soloknuckle does

Soloknuckle adds local safety and quality gates around AI-assisted software development. Its MCP interface gives an agent structured results from checks that are easy to overlook when a model writes both implementation and tests. The project is designed for Node.js 20 or newer and runs without an API key.

Its checks cover several distinct risks:

  • Secret exposure in staged files and diffs, including API keys, tokens, and PII.
  • Destructive shell and version-control commands such as recursive removal, force pushes, unsafe permissions, shell-piped downloads, and SQL drops.
  • Weak test suites that achieve line coverage without demonstrating useful behavior.
  • Tests with missing assertions, hardcoded values, absent mocks, or real network calls.
  • Calls whose arguments and return expectations do not match the underlying signature.
  • Flaky patterns involving timers, randomness, dates, and network activity.

Additional project capabilities include AI-authorship telemetry, dependency supply-chain checks, AI commit quarantine, rollback automation, feature-flag control, SBOM generation, and compliance checks.

How it works

The MCP tools call the same local engines used by the command-line and automation surfaces. Results are returned as machine-readable verdicts that an agent can act on. For example, a secret check reports whether the scan is clean and includes violations when it is not; command interception reports whether an operation was blocked and why.

Mutation testing changes code using operator, return, boundary, boolean, and string mutations, then checks whether the test suite detects those changes. The flaky-test detector looks for known sources of nondeterminism and can rerun tests to identify intermittent failures. Supply-chain checks combine behavioral dependency analysis with npm audit modes ranging from quick to deep.

The wider system can apply the same checks in the CLI, CI, git hooks, shell commands, IDE rules, and webhook-triggered rollback flows. Webhook handling supports signed inputs from Sentry, GitHub, and generic webhook sources.

Setup and configuration

The project is intended to start with a single initialization command:

Terminal
npx soloknuckle init

Initialization scaffolds project-level gates, including git hooks, agent instructions, and IDE rules. The checks run locally, use zero configuration for the basic setup, and do not require an API key. Node.js 20 or newer is required.

The command-line surface can also run strict checks directly:

Terminal
npx soloknuckle check --strict

To inspect a shell operation before execution, use the interception command:

Terminal
npx soloknuckle intercept rm -rf x

Tools and capabilities

The MCP surface includes tools for secret scanning, command interception, scoring, and feature-flag control. The project describes nine MCP tools in total, including score and intercept operations. Feature flags are managed through a versioned flags.json file.

The broader hygiene engine provides mutation scoring, context-aware test validation, caller-contract checking, flaky-test detection, AI-versus-human telemetry, dependency supply-chain analysis, AI commit watching, signed-webhook rollback, SBOM creation, and an 11-check self-audit.

Limitations and notes

Soloknuckle is focused on local production hygiene for AI-assisted development. Its enforcement depends on the agent or workflow invoking the relevant MCP tool or gate. The project reports bounded mutation work of up to 10 mutations and two reruns, with a stated target of less than two minutes of CI impact. It is open source under the ISC license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Soloknuckle

Soloknuckle is an MCP server that connects AI coding agents to local production-hygiene checks. Its main tools scan for secrets, intercept destructive commands, score code and tests, and control feature flags, returning structured verdicts that agents can use before committing, pushing, or shipping changes.

Run `npx soloknuckle init` to initialize Soloknuckle in a project. The setup is intended to require no configuration or API key and can scaffold git hooks, agent instructions, and IDE rules. Node.js 20 or newer is required.

Soloknuckle scans staged code and diffs for API keys, tokens, and PII. It also checks for destructive commands, weak or misleading tests, flaky-test patterns, suspicious dependency behavior, and other risks associated with AI-generated changes.

Yes. Claude Code is the named agent integration for Soloknuckle, which exposes its checks as MCP tools with machine-readable results. The same underlying engines can also run through the CLI, CI, git hooks, shell, and other project automation surfaces.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSoloknuckle AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/soloknuckle?style=directory)](https://allmcps.com/mcp/soloknuckle)
HTML Embed
<a href="https://allmcps.com/mcp/soloknuckle"><img src="https://allmcps.com/api/badge/soloknuckle?style=directory" alt="Soloknuckle on AllMCPs" /></a>