Gherkin Ai
FreeMaintainedEnterprise-Grade Closed-Loop Agentic Orchestration Engine & Spec-Driven Verification Framework for AI Coding Agents.
About
Enterprise-Grade Closed-Loop Agentic Orchestration Engine & Spec-Driven Verification Framework for AI Coding Agents.
README
The Closed-Loop Agentic Testing & Orchestration Engine for Enterprise Full-Stack Applications. Turn product requirements into verifiable Gherkin specifications, execute dual-stack implementations (React + Java Spring Boot), and run self-healing agent loops with zero regressions.
🌟 Strategic Capabilities (v2.6.1 Stable Patch Release)
While basic AI spec tools only generate text prompts, gherkin-ai acts as an executable contract and verification harness between Product Intent, AI Agents (Cursor, Claude Code, Windsurf, Antigravity), Code Implementation, and CI/CD Quality Gates:
- 🤖 True Agentic Engine & Self-Healing (
ghk verify --auto-fix&ghk autopilot): Natively connects with LLMs (OpenAI, Anthropic, Ollama). It doesn't just log output; it actively writes and modifies your source code, intercepts test failures, and recursively applies repairs in a true Closed-Loop. - 🌐 Web Studio UI (
ghk web): Launch a premium local graphical interface to interactively generate your Gherkin specifications, detect your stack, and orchestrate agent prompts visually. - 🌳 Official Cucumber AST Parser: 100% compliant with the Gherkin standard using the official
@cucumber/gherkinpackage. Flawlessly parses DataTables, DocStrings, and advanced scenarios for semantic extraction. - 🔗 AST Step Definitions Indexer: Prevents AI hallucinations by statically analyzing your E2E project (Cypress/Playwright/Cucumber-JS) via
ts-morph, extracting existingGiven/When/Thensteps, and forcing the LLM to reuse them. - 🛡️ Semantically Typed Contracts: Extracts variables straight from your Gherkin data tables (like
@validate:email) and outputs strictly typed Zod DTOs instead of generic objects. - ⚙️ Headless CI/CD Mode: Fully decoupled non-interactive mode (
--yes,--non-interactive,--project <dir>) designed for frictionless integration into GitHub Actions, Azure DevOps, and automated pipelines. - 📋 Pre-flight Requirement Validation: Built-in semantic validator inside
ghk autopilotthat analyzes requirements before triggering LLM agents, preventing token waste on vague features. - 🔌 Native MCP Server & Cursor Skills (
ghk mcp install&ghk skill): Zero-config Model Context Protocol (MCP) server. The newghk skillcommand injects native Cursor and Windsurf.cursorrulesto let your IDE automatically invoke Gherkin AI as an internal skill. - 📦 Context Engineering & Guardrails Engine (
ghk context): Structurally packages project architecture, conventions, and security policies into.ghe/, enforcing strict path protection and agent change limits. - 🏗️ DOM & Data Model Anchor: Automatically extracts
schema.prismamodels and Page Object Model (POM)data-testselectors, injecting them into the agent's context to ensure generated tests are grounded in technical reality. - 🏆 Dynamic Quality Gate Index (
ghk quality): Measures spec coverage, unit tests, E2E, type safety, and security dynamically by parsing your real test coverage (coverage-summary.json) and linter outputs. - ☕ Enterprise Java, React, Rust & Go Templates: Extensive boilerplate support. Scaffolds Spring Boot, Next.js, Rust Axum, Go Fiber, and mobile (Flutter/React Native) architectures out-of-the-box.
- 🕵️ Interactive Stack & Pattern Detection (
ghk detect): Auto-detects existing brownfield architectures and intelligently injects industry-standard design patterns (e.g., Hooks, CQRS, MVC) into Agent prompts. - 📡 Event-Driven & AsyncAPI Support: Automatically extracts domain events from Gherkin and scaffolds standard
asyncapi.jsoncontracts. - 🔍 Deep AST Drift Detection (
ghk diff): Validates in CI/CD pipelines if the implemented DTOs and code have drifted from the.featurefile. Now cross-references semantic fields, HTTP status codes, and API Endpoints.
📥 Installation & Execution (v2.6.1)
You can use gherkin-ai via global npm installation, on-demand zero-install npx, or as a project local dev dependency:
Option 1: Global Installation (npm)
npm install -g gherkin-ai
Once installed globally, you can use ghk or gherkin-ai CLI commands directly:
ghk mcp install
ghk verify --auto-fix
ghk context build
ghk quality
Option 2: Zero-Install On-Demand (npx)
Run any gherkin-ai command instantly without global installation:
# Auto-install MCP server for Cursor & Claude Desktop
npx -y gherkin-ai mcp install
# Run closed-loop verification test harness
npx -y gherkin-ai verify --auto-fix
# Build project context & guardrails (.ghe/)
npx -y gherkin-ai context build
# Calculate feature quality score index
npx -y gherkin-ai quality
Option 3: Local Project Dev Dependency
Add to your project's devDependencies:
npm install --save-dev gherkin-ai
Then invoke via npx or add scripts to your package.json:
{
"scripts": {
"test:verify": "ghk verify --auto-fix",
"quality:check": "ghk quality"
}
}
🚀 Quick Start Commands
# 1. Setup MCP Server for Cursor & Claude Desktop
ghk mcp install # (or: npx -y gherkin-ai mcp install)
# 2. Closed-Loop Test Verification with Auto-Fix Loop
ghk verify --auto-fix
# 3. Create a feature using Caveman Mode (skip wizard)
ghk create --caveman
# 4. Auto-detect project stack & suggest design patterns
ghk detect
# 5. Build Project Context & Policy Engine (.ghe/)
ghk context build
📖 Comprehensive Documentation
- CLI Commands Reference Guide
- Model Context Protocol (MCP) Integration Guide
- Closed-Loop Verification & Auto-Repair Guide
- Architecture & Agent Pipeline Design
- Live Web SPA Playground
📄 License
Distributed under the MIT License. Created by Fenner Eduardo.
Install Gherkin Ai in Claude Desktop, Claude Code & Cursor
unyly install gherkin-aiInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add gherkin-ai -- npx -y gherkin-aiStep-by-step: how to install Gherkin Ai
FAQ
Is Gherkin Ai MCP free?
Yes, Gherkin Ai MCP is free — one-click install via Unyly at no cost.
Does Gherkin Ai need an API key?
No, Gherkin Ai runs without API keys or environment variables.
Is Gherkin Ai hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Gherkin Ai in Claude Desktop, Claude Code or Cursor?
Open Gherkin Ai on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Gherkin Ai with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
