# Stepgate [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Chaarangan/stepgate  
**GitHub Stars:** 15  
**npm Downloads (last month):** 270  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/stepgate

## Description
Agents can't skip steps: runs gated stepfiles on the client's own model.

## Tools
Capabilities this server exposes over MCP:

- **stepgate_call** — Calls one of the current step's operations for a Stepgate run and returns its result. Stepgate makes the request and adds any credentials.
- **stepgate_submit** — Submits the current step's output for a Stepgate run. Returns the next step, the gate failures to fix, or the finished run's outputs.
- **stepgate_guide** — Returns how to write a stepfile: the authoring workflow, the full format reference and the JSON Schema. Call it before writing or editing a stepfile.
- **stepgate_examples** — Lists the catalog's stepfiles, or with a name returns that stepfile's YAML and README, to copy a working pattern from.
- **stepgate_validate** — Checks a draft stepfile against the schema and every load-time rule. Returns each issue with its path, or the stepfile's identity and whether stepgate_try accepts it.
- **stepgate_inspect_api** — Fetches a public OpenAPI document or MCP server without credentials and reports what a stepfile needs: the document's sha256, servers, security schemes and operationIds, or an MCP server's tools and their schema_sha256.
- **stepgate_outline** — Turns a SKILL.md or markdown SOP into a skeleton stepfile: one step per numbered item or second-level heading, each rule it states marked as a gate to write, and TODO markers where only an author can decide. stepgate_validate lists the markers left.
- **stepgate_try** — Starts a run of a draft stepfile from its text, without adding it to the server. Drive it with stepgate_call and stepgate_submit. Drafts may call only public https URLs, and use only the credentials and settings the operator granted to drafts.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "stepgate": {
    "command": "npx",
    "args": ["-y","stepgate"],
    "env": {
      "TAVILY_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `TAVILY_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Stepgate MCP server does

Stepgate MCP server turns a YAML stepfile into an MCP tool for a procedural agent workflow. A stepfile declares its inputs, credentials, permitted remote tools, ordered steps, expected outputs, and gates. The server exposes the procedure to an MCP client instead of asking the model to follow an unstructured plan in its conversation.

Each step is presented separately. The agent receives the current instructions and available operations, submits an output, and can continue only after that output passes its gates. Later steps remain hidden until earlier steps succeed. This structure suits workflows such as research reports, CVE triage, or ticket preparation where a skipped action or invented value matters.

## How it works

The server makes the API and MCP calls required by a step, attaches the credentials configured for that step, and checks the resulting output. Gates can validate JSON Schema, evaluate JSONLogic predicates, or call an HTTP verifier. A gate can also compare submitted values with data returned by an API, helping reject unsupported or fabricated results.

Failed gates return a diagnosis to the model for a configured number of retries. Some steps can be mechanical: they make calls and construct output from a template without model involvement. Derived fields can calculate values such as counts or lookups after submission. An approval gate pauses before a later write and asks a person to confirm the step output through MCP elicitation.

## Setup and configuration

Run Stepgate with Node.js 22.18 or later through `npx`, and add it to the configuration of an MCP client. The server command can name catalog stepfiles or use absolute paths to custom `.stepfile.yaml` files. A typical configuration passes credentials through the client environment, while the stepfile identifies the credential name and the hosts allowed to use it.

For example, the documented market-research workflow uses `TAVILY_API_KEY` and connects to Tavily through its MCP endpoint. The client then receives a tool named for the selected stepfile and can invoke it with the declared input object. Stepfiles can also be created and checked with the server’s stepfile-authoring tools; the package includes a JSON Schema for editor validation.

## Tools and capabilities

Stepgate MCP server provides:

- Ordered execution with only the current step exposed to the agent.
- `stepgate_call` and `stepgate_submit` operations for progressing through a run.
- Remote API and MCP-server calls defined by the stepfile.
- Output checks using JSON Schema, JSONLogic, or HTTP verification.
- Human confirmation before selected write operations.
- Credential attachment performed by the server rather than the model.
- Host restrictions based on declarations in the stepfile.
- A hash-chained ledger containing steps, calls, gate results, and retries.

## Limitations and notes

The client must support MCP and be able to start the server with Node.js 22.18 or newer. Stepgate does not provide a model key or select a model; reasoning runs on the model already used by the MCP client. The procedure’s credentials still need to be supplied through the client environment or another supported configuration.

Approval forms depend on client support for MCP elicitation, so not every client necessarily presents them. Remote access is limited to hosts declared by the stepfile. The ledger can be checked with `stepgate --verify`; editing it after a run breaks its hash chain.

_Full upstream README: https://allmcps.com/mcp/stepgate/readme_

