# chaoz23/inkcheck [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/chaoz23/inkcheck  
**GitHub Stars:** 2  
**npm Downloads (last month):** 115  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chaoz23-inkcheck

## Description
CI for ink interactive-fiction stories. Compiles, exhaustively playtests every branch, and finds runtime errors (with a repro path), unreachable knots, and every distinct ending — so an agent can verify the story it wrote. Writes no prose. claude mcp add inkcheck -- npx -y inkcheck mcp

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

```json
"mcpServers": {
  "inkcheck": {
    "command": "npx",
    "args": ["-y","inkcheck"]
  }
}
```

## Documentation

## What chaoz23/inkcheck MCP server does

chaoz23/inkcheck provides mechanical QA for stories written in Ink, the interactive-fiction language from inkle. It is intended to check story content that already exists, not to write, rewrite, or evaluate prose stylistically. The same checks can be run from a local command line, CI, or an MCP-capable agent.

Its checks cover compilation, reachable branch exploration, runtime failures, unreachable knots, dead content, and distinct story endings. Runtime findings include a path that reproduces the failure, making an issue easier to rerun after a fix. Reports also indicate when exploration was partial rather than presenting bounded coverage as proof that a large story is bug-free.

## How it works

The checker uses Ink’s official compiler and runtime together with deterministic, bounded exploration of reachable story states. Choice paths are explored within explicit limits, which makes runs repeatable while keeping the search finite. Loops, variables, randomness, and host-game code can produce more states than a run can visit, so the result describes the evidence found under the selected limits.

MCP agents can select named campaign postures such as `quick`, `balanced`, `deep`, `overnight`, or `campaign`. The `balanced` posture is the default for a fresh agent, while `fixed` preserves explicit legacy controls. Campaigns can use bounded limits for states, time, memory, disk, and deadlines, and can prioritize broad QA, runtime assertions, outcomes, or approved goals.

Durable campaigns can save and resume result windows. Optional assertion and goal checks require validated inputs, and evidence reports can preserve approved runtime, assertion, or goal witnesses for rechecking after an edit. These features do not replace a fresh bounded run for broad verification.

## Setup and configuration

Node.js 18 or newer is required for local use. Run a story directly with:

```sh
npx -y inkcheck path/to/main.ink
```

To register the MCP entry with Claude Code, use:

```sh
claude mcp add inkcheck -- npx -y inkcheck mcp
```

The server can also be used in CI. Agent campaigns accept named modes or bounded resource and search controls, allowing teams to choose a repeatable posture instead of relying on unconstrained exploration.

## Tools and capabilities

- Compile Ink stories with the official Ink compiler.
- Explore reachable choice branches within explicit bounds.
- Report runtime errors with exact reproduction paths.
- Detect unreachable knots and other dead content.
- Enumerate distinct endings reached during exploration.
- Check declared numeric invariants during ordinary bounded QA and report a replay witness when a rule is violated.

## Limitations and notes

Inkcheck is a QA tool, not a writing assistant. It does not generate prose, rewrite story text, train on source files, or send story content to an AI service. Its checking logic is deterministic code driven by the compiler, runtime, and bounded exploration.

A bounded run cannot establish that every path in a large interactive story works. Combinatorial state growth, loops, randomness, and behavior supplied by host-game code can limit coverage. Reports distinguish partial exploration from completed evidence, and the configured limits determine which states and paths are examined.

Declared rules must use supported grammar and valid types. Unknown variables and invalid configurations fail before exploration, and temporary rule configuration is removed with the upload in the hosted flow. Assertion-directed specialist exploration remains opt-in and experimental rather than part of the default search budget.

_Full upstream README: https://allmcps.com/mcp/chaoz23-inkcheck/readme_

