Skip to content

MCP and agent skills ​

Choose a client ​

See the versioned compatibility matrix for the distinction between configuration examples, protocol tests and live agent runs.

Add the local Node executable as a stdio server. The default mode provides detection, listing, plans, run summaries, evidence metadata, historical comparison and policy evaluation.

toml
[mcp_servers.shipwitness]
command = "node"
args = ["/absolute/path/to/ShipWitness/packages/cli/dist/cli.js", "-C", "/absolute/path/to/project", "mcp"]

The equivalent generic stdio client configuration uses command: "node" and the same argument array. Use absolute Windows paths with the escaping required by your client's configuration format.

For a trusted client, append --allow-execution to permit running previewed plans. Append --approve only for project script access, and --allow-network to permit endpoint checks and audits. An execution call must include the hash of the last plan for that connection. The server checks the hash again and consumes it before execution.

The source repository ships portable skills under skills/. Copy the selected skill directory into the skills directory supported by your agent. Each skill gives evidence and failure handling expectations. The workflows can also be followed in any agent that can invoke the CLI. See the repository benchmark for the scope of validation.

Skills installer ​

sh
npx skills add saifmodan2006/ShipWitness --list
npx skills add saifmodan2006/ShipWitness --agent codex --skill shipwitness-verification --yes

Use --agent claude-code for Claude Code. For a local test without installer telemetry, set DISABLE_TELEMETRY=1 in the calling environment.

Completion gate ​

Add at least one mandatory check in shipwitness.json, commit an initial Git revision, and run verification against the current tree.

sh
shipwitness verify --changed --base HEAD --approve
shipwitness gate

Add this Stop hook to Codex's project hooks configuration or Claude Code's project settings, following the agent's hook trust review. Supply an absolute CLI path if the executable is unavailable on the agent's PATH.

json
{
  "hooks": {
    "Stop": [
      {
        "hooks": [{ "type": "command", "command": "shipwitness gate --hook" }]
      }
    ]
  }
}

The hook checks the latest run's workspace fingerprint, report integrity, and mandatory statuses. It asks the agent to continue once when evidence is stale or insufficient. Use a mandatory GitHub check for enforcement at merge time.

Codex hook reference · Claude Code hook reference